#avr Logs

Oct 13 2017

#avr Calendar

12:04 AM day__ is now known as daey
04:50 AM Emil: hm?
05:50 AM NoHitWonder: hmm
05:51 AM NoHitWonder: i bought a communicator
05:51 AM polprog: what kind of?
05:51 AM polprog: communicator remids me of nokia e90
05:51 AM NoHitWonder: e90
05:51 AM polprog: haha
05:52 AM polprog: my dad had one when i was 7
05:52 AM polprog: it was awesome
05:52 AM NoHitWonder: yeah, i always wanted a communicator, now i have one
05:52 AM NoHitWonder: i might write some software for it, maybe some simple game
05:53 AM NoHitWonder: you can use java with this
05:53 AM polprog: yeah
05:53 AM polprog: the father of smart phone
05:54 AM polprog: watch out for the flip display connector. they tend to break often
05:54 AM NoHitWonder: yep
05:56 AM polprog: Evince pdf viewer supports vim style navigation, how cool is that
05:56 AM NoHitWonder: have you seen the new blade runner movie already?
05:56 AM NoHitWonder: i went to see it yesterday
05:56 AM polprog: no, i think we will go to the cinema this weekend
05:57 AM polprog: how was it?
05:57 AM NoHitWonder: it was good, not great but good
05:57 AM MrCircuitMatt: polprog: whoa I never noticed that
05:57 AM polprog: i noticed that this morning
05:58 AM polprog: my hand started to hurt from reaching the arrow keys, so i tried :D
05:59 AM MrCircuitMatt: that's cazy
05:59 AM MrCircuitMatt: crazy*. Now all they need to fix is to let me zoom in more and I'll kiss them or something
06:07 AM NoHitWonder: these screens are suprisingly hi def
06:08 AM NoHitWonder: icons look nice and sharp
06:16 AM NoHitWonder: the price was 40e, it think its reasonable
06:19 AM NoHitWonder: they have this thing called nokia ide http://developers.apps.opera.com/asha/java/get-started-nokia-ide
06:19 AM NoHitWonder: not maintained by nokia anymore, naturally
06:23 AM Haohmaru: polprog i tried evince, and a bunch of others, all of them were annoying in some way
06:23 AM Haohmaru: i use qpdfview
06:29 AM NoHitWonder: now i remember, i have to install some spesific version of jdk, otherwise it doesnt work
06:29 AM NoHitWonder: i did some jave me development some years ago
06:30 AM NoHitWonder: back when i was an ee student i took a course named "jave me mobile programming"
06:30 AM polprog: i tried jme, but i got hit by a registration page
06:31 AM polprog: didnt really bother, as it was already the dawn of java EE for mobiles.
06:31 AM NoHitWonder: yeah
06:33 AM NoHitWonder: i actually have a book called "j2me programming"
06:33 AM NoHitWonder: i always bought the books for courses
06:33 AM polprog: yiss, the FRAM handler code is ready
06:36 AM NoHitWonder: i dont remember if there was any fuss when google announced that they are gonna use java for android
06:37 AM NoHitWonder: but what other language they could have really used
06:38 AM NoHitWonder: only c# comes to mind but that's microsoft
06:39 AM polprog: i think they used java because it runs on a vm
06:39 AM polprog: that way they dont have to recompile an app for every architecture android runs on
06:39 AM NoHitWonder: yeah
06:39 AM polprog: they made their own compatible VM called dalvik
06:39 AM NoHitWonder: c#/.net can do that too
06:40 AM polprog: so they only need to port linux and the core to a new arch
06:40 AM polprog: didn't know that
06:40 AM NoHitWonder: that's what unity is using
06:40 AM NoHitWonder: or mono
06:40 AM NoHitWonder: which is the open source implementation of .net
06:42 AM Lambda_Aurigae: KSP is written in mono for portability like that.
06:44 AM thardin: there's a libre version of unity too I think
06:45 AM NoHitWonder: visual studio has xamarin built in these days, it allows you to write mobile apps to ios, android and windows mobile with the same codebase. i think it uses mono.
06:47 AM NoHitWonder: visual studio is actually not a bad ide
06:47 AM NoHitWonder: and its free for open source
06:48 AM polprog: i was positively surprised recently when i decided to try and write a gui program in visual c#
06:48 AM polprog: i think i made it in a day without any prior c# experience
06:48 AM NoHitWonder: yeah, writing serial terminals with it is cool
06:48 AM NoHitWonder: and easy
06:48 AM polprog: it was a serial terminal
06:49 AM polprog: or rather a window with several buttons and fields which acts as a serial terminal
06:49 AM NoHitWonder: yeah
06:53 AM NoHitWonder: i wrote one too recently
06:53 AM polprog: im doing so cool things here, shame i cant show ;/
06:54 AM NoHitWonder: at work?
06:54 AM polprog: yea
06:58 AM NoHitWonder: http://dancingclown.tech/midi.png
06:59 AM polprog: yeah, more buttons in mine :D
06:59 AM thardin: doesn't MIDI use a differet baudrate?
07:00 AM NoHitWonder: yes
07:00 AM NoHitWonder: but you can select the baudrate from that combobox
07:01 AM NoHitWonder: because the baudrate at the avr end isnt yet set to the correct one
07:01 AM polprog: com0com is a nice virtual serial port pair emulator
07:02 AM NoHitWonder: nice
07:02 AM polprog: one end connected to my program, another to putty, and we're testing!
07:04 AM Gerritjan: rue_mohr: Are you there
07:07 AM Haohmaru: i made this crap: http://picpaste.com/79EImWF1.png
07:08 AM Haohmaru: unlike a serial terminal, i can write strings (ASCII) or hexadecimals, and send them by selecting a chunk of text from the top two text boxes (the orange ones) and hitting the respective SEND button
07:09 AM Haohmaru: there are also those pre-set buttons in the middle which are loaded from external files
07:11 AM Haohmaru: made it with wxwidgets ;P~
07:12 AM NoHitWonder: i was just about to say that, that looks like native win32 app
07:12 AM Haohmaru: this is the win32 build ;P~
07:12 AM NoHitWonder: none of that managed shit
07:13 AM NoHitWonder: looks cool
07:14 AM Gerritjan: i know that this is a avr channel but is there sombody that can help me with a little code for in the interrupt on a gpio read because im realy stuck the code is for rpi https://pastebin.com/MVbb3TYX
07:15 AM polprog: Haohmaru: aesthetic
07:15 AM polprog: i like it
07:15 AM NoHitWonder: i looked into programming navite gui apps for windows and its just not worth it, so much easier using .net
07:15 AM Gerritjan: i need like between 2 and 20 ms timer that count the pulse
07:15 AM Haohmaru: NoHitWonder doesn't .net mean microsoft?
07:16 AM Haohmaru: i wanted to have this serial port tool on linux too
07:16 AM polprog: yeah, i would like such a tool on linux too. picocom is just tedious to use sometimes
07:16 AM NoHitWonder: did you write that in c?
07:17 AM NoHitWonder: *with
07:17 AM Gerritjan: NoHitWonder: me?
07:17 AM Haohmaru: the main difference between this and something like realterm, is that in realterm you press keys on your keyboard and they get sent right away as chars on the serial port
07:18 AM polprog: realterm, never knew about it
07:18 AM polprog: looks pumped
07:18 AM Haohmaru: with this you can send a bunch of stuff (text strings or hexadecimal blobs) as one thing
07:18 AM polprog: im adding this to my windows tool arsenal
07:18 AM Emil: Gerritjan: what is the point of the state variable?
07:19 AM Haohmaru: and the monitor (bottom half of the screen) shows hex and text simultaneously
07:19 AM Emil: you don't use it anywhere
07:19 AM Gerritjan: true
07:19 AM Haohmaru: NoHitWonder c++ wxwidgets
07:20 AM Gerritjan: Emil: but you know what i want to do?
07:20 AM NoHitWonder: nice
07:20 AM Haohmaru: the GUI was put together with wxSmith (visual)
07:20 AM Emil: Gerritjan: no
07:23 AM Gerritjan: i have a iinterrupt on the pin but when the sound comes i need to make sure that it is the right 1. the interrupt part works now i need like 4 ms of samples to calculate the freq. Thats why i need with the pin is HIGH to start the count.
07:24 AM Gerritjan: for 4ms
07:24 AM Emil: wat
07:24 AM Emil: You want to measure button press frequency?
07:24 AM Gerritjan: i need a timer when the interrupt is activated
07:25 AM Gerritjan: no sound
07:25 AM Emil: Gerritjan: stop with the AB problem
07:25 AM polprog: XY problem
07:25 AM Emil: Tell us what you are actually trying to accomplish
07:25 AM Gerritjan: to get the freq
07:25 AM Emil: polprog: no it's originally AB
07:25 AM thardin: what does the signal look like?
07:25 AM thardin: can you just measure the time between two rising edges on it?
07:25 AM Gerritjan: squere wave
07:26 AM Emil: Why would you need to debounce then?
07:26 AM thardin: ah well there you go. set up a timer and measure the time between two ISR calls
07:26 AM Gerritjan: thardin: then i can calc the freq?
07:27 AM Emil: Also you _cannot_ use a normal raspi except if you have a kernel driver to measure time between gpio events
07:27 AM thardin: frequency = 1/period
07:27 AM thardin: you probably need some low-level thing yes. with AVR it's simple of course, since you have no OS to deal with
07:28 AM Gerritjan: oke i did had the module on a arduino nano the get the freq an send it to the rpi with usb connections
07:28 AM Emil: Also depending on your frequency, the kernel driver might consume quite a lot of cpu time
07:29 AM Emil: Gerritjan: make sure to either use input capture or program your ISR well
07:30 AM Gerritjan: hmmm oke. i think im gooing to use arduino nano with adc on it
07:30 AM Gerritjan: and send it with rx and tx
07:31 AM Emil: ...
07:31 AM Emil: pls
07:31 AM thardin: why do you need to use the adc?
07:31 AM thardin: you already said it's a square wave
07:31 AM Emil: And you already trie to measure it with gpio
07:31 AM polprog: https://img.joemonster.org/mg/albums/new/150320/oscyloskop_prawde_ci_powie.jpg
07:31 AM Emil: polprog: that's a benis!
07:31 AM Gerritjan: yes but if it so cpu intense
07:32 AM thardin: :DDD
07:32 AM thardin: Gerritjan: not if you use an interrupt
07:32 AM thardin: but what else would you do on the nano?
07:34 AM Emil: Use ICP, get superb performance
07:34 AM Emil: and very simple code
07:35 AM thardin: oh yeah, input capture works too
07:35 AM Gerritjan: nothing
07:35 AM Emil: also you can't actually clear the ICP counter, you must calculate the rotating difference in software since otherwise you introduce errors
07:35 AM Emil: so you need to keep a memory of the last event
07:35 AM Emil: and capture overflows
07:35 AM thardin: can't you reset the relevant timer?
07:35 AM Emil: thardin: you can
07:35 AM NoHitWonder: polprog how did you solve the problem that the serialport data receive callback function is on the different thread than the ui thread?
07:35 AM Emil: thardin: but that introduces error
07:36 AM polprog: NoHitWonder: i did not actually
07:36 AM NoHitWonder: or did you even use that call back function
07:36 AM thardin: right. unless you account for the cycles taken to enter the ISR and reset the counter. which is a pain
07:36 AM Emil: yeah
07:36 AM Gerritjan: 24 22:09││Waiting ... Done. myCounter: 540 , 541, 542 is what im getting now
07:36 AM Emil: and not actually possibble unless you know exactly what the code is executing otherwise
07:36 AM polprog: NoHitWonder: keep in mind that the program was written before the prototype was constructed
07:36 AM Gerritjan: thats if i clap my hands
07:37 AM thardin: speaking of this stuff, is there a guide how to do say 24-bit or 32-bit time on AVR? I've had to deal with quite a lot of hair pulling to get decent timestamps for things, without overflows and crap happening in the middle of things
07:37 AM NoHitWonder: im just curious
07:37 AM Emil: thardin: you want a 32 timer?
07:37 AM Emil: you do it in software
07:37 AM NoHitWonder: since i had problems with it myself
07:37 AM Emil: 32 bit*
07:38 AM Emil: thardin: alternatively, add an external 64 bit counter? ;)
07:38 AM thardin: I believe the problem arises in an ISR which I don't want to be interrupted
07:38 AM thardin: so I can't just rely on the timer overflow isr to fix thigns
07:38 AM thardin: but yeah, say a 16-bit counter for counting overflows. so 32 bits in total
07:38 AM Emil: thardin: you sort of can
07:38 AM Emil: thardin: since interrupts are executed consequentially
07:39 AM Emil: of course
07:39 AM Emil: that assumes that your other interrupts don't fuck around and take ages
07:39 AM thardin: yeah priority is the same as the order the come in the interrupt vector
07:39 AM NoHitWonder: there are few ways to do it and they all seemed strage to me
07:39 AM thardin: ehh, time taken isn't so much a factor. I could have a super short ISR and still run into trouble if I don't deal with overflow properly
07:40 AM Emil: thardin: no
07:40 AM Emil: you don't understand
07:40 AM Emil: the timer interrupt will execute after your other interruåpt
07:41 AM Emil: and since it just increments a global counter
07:41 AM Emil: there is no issue
07:41 AM thardin: but then the timer will already have overflowed
07:41 AM Emil: ...
07:41 AM Emil: thardin:
07:41 AM Emil: please
07:42 AM thardin: unless I manually add OVF*65536 to the sum
07:42 AM thardin: or whatever the overflow flag is called
07:43 AM Gerritjan: im tring to add a if statement with state = 1 or 0 and use millis();
07:51 AM NoHitWonder: polprog i did it like this, i used a delegate https://pastebin.com/GjjXJnRf
07:52 AM polprog: i think i used a serialport.write() or someting like that
07:55 AM thardin: looks like I'll have to do some trickiness, especially when combining with input capture
07:56 AM polprog: look at this, lol
07:56 AM polprog: http://allegro.pl/show_item.php?item=6906278340
07:56 AM thardin: that or make use of the prescaler
07:56 AM polprog: im wondering why would you need an enable singal on a LED.
07:56 AM thardin: probably standard connector
07:57 AM thardin: vcc unused
07:57 AM thardin: 4 zloty? that's like.. 1€ for an LED
07:57 AM polprog: yeah
07:59 AM NoHitWonder: +resistor
08:00 AM thardin: there are LEDs with built-in resistors
08:00 AM thardin: I'd like them to use CRDs. that'd be convenient
08:00 AM polprog: crd?
08:01 AM thardin: current regulating diode
08:01 AM thardin: aka constant current diode
08:01 AM polprog: yeah that would be cool
08:02 AM thardin: you'd get the same intensity out regardless of input voltage (within reason)
08:02 AM polprog: a led with a cc source inside
08:02 AM polprog: yeah, that's cool
08:02 AM thardin: gotta send a mail to osram or something. "get on this!"
08:03 AM Emil: thardin: pls
08:04 AM polprog: i have some of those thingamybobs, if you replace the resistor with a crd you get what you want: https://puu.sh/xX6X2/96a227f58e.jpg
08:04 AM polprog: very useful for puttin on a GPIO header on the Pi for quick testing or indicators
08:08 AM polprog: you think this is worth 70 euros?
08:08 AM polprog: https://c.allegroimg.com/s512/06a5e1/6758ade74dfc8210c5548f60a03c
08:21 AM Emil: polprog: no
08:22 AM NoHitWonder: i got mine for free. not that fancy tho
08:24 AM polprog: i mean, free stuff is best stuff
08:24 AM polprog: ok, ill pass
08:24 AM polprog: i dont have bench or room space anyway :D
08:30 AM Gerritjan: thardin: this is what i now have
08:30 AM Gerritjan: https://pastebin.com/u1U1rADA
08:30 AM enh: Please, I need help. Is this a good way to sense if an AVR pin went to low? while (bit_is_set(PINB, PB0)) {
08:32 AM Emil: enh: wtf mate
08:32 AM Emil: haven't you been programming avrs for quite some time now? :D
08:32 AM Emil: and what's with those parentheses?
08:32 AM enh: Usually setting pins, not reading them.
08:33 AM Emil: bit_is_set(register, bit) is a good macro you can use, yes
08:33 AM enh: While condition is in parenthesis
08:33 AM polprog: if a pn is low then PINB & (1<<pin) = 0
08:33 AM Emil: enh: lol I missed the while
08:33 AM polprog: pin*
08:33 AM enh: :) happens, Emil
08:34 AM Emil: I just do while(PINx&MASK){...}
08:34 AM Emil: no reason to use the bit_is_set macro imho
08:34 AM Emil: enh: but
08:34 AM Emil: you asked "went to low"
08:34 AM enh: yep
08:34 AM Emil: if you want to know if a pin goes low
08:35 AM Emil: you need either interrupts
08:35 AM Emil: or poll the state
08:35 AM enh: If I leave the while empty wouldn't it leave the loop when the pin go to low?
08:36 AM Haohmaru: mycounter = 1 / total; o_O
08:38 AM Gerritjan: Haohmaru: ?
08:39 AM Haohmaru: that would be 1 when total=1, and 0 when total > 1
08:39 AM enh: polprog, while (PINB & (1<<pin) == 0) {} will leave the loop if pin goes to low?
08:39 AM Haohmaru: assuming it rounds down or towards zero
08:40 AM LeoNerd: Stylistic point: it's common in AVR code to make use of the _BV(...) macro instead of (1<<...)
08:40 AM enh: I'm asking this because the mcu is not leaving the loop...
08:40 AM enh: Leonerd, #define bit_is_set(sfr, bit) (inb(sfr) & _BV(bit))
08:41 AM enh: #define inb(sfr) _SFR_BYTE(sfr)
08:41 AM enh: #define _BV(bit) (1 << (bit))
08:41 AM LeoNerd: Those really aren't needed these days. gcc is advanced enough to know when it should use the INB instruction directly
08:41 AM LeoNerd: You can just test PINB & _BV(pin)
08:42 AM enh: I'm doing this: while (bit_is_set(PINB, PB0)) {};
08:43 AM enh: But the mcu is hanging there.
08:43 AM LeoNerd: Perhapst he pin never goes low
08:43 AM LeoNerd: Consider using an interrupt, also
08:43 AM LeoNerd: That sounds like a potential task for PCINT
08:43 AM Gerritjan: well im checking if the total is higher then 0 ms
08:43 AM enh: I have many pins being sensed. Not enough interrupts
08:43 AM LeoNerd: You can mux out the PCINTs in the ISR
08:44 AM LeoNerd: I often do that
08:44 AM Haohmaru: yes, and that's fine, otherwise you'd get division by zero
08:44 AM enh: If the pin is connected to another AVR where I am attaching or detaching a pull-up resistor. Detaching is is enought to bring the line low?
08:45 AM enh: enough
08:45 AM Gerritjan: but still doesnt it work im getting 0ms when i see the total in the cout
08:45 AM Haohmaru: why not rewrite that to the equivalent "mycounter = (total == 0 ? mycounter : (total == 1));
08:46 AM Haohmaru: and get rid of the division ;P~
08:47 AM Gerritjan: no my counter must be freq from it
08:47 AM Gerritjan: so freq = 1 / total
08:47 AM Haohmaru: oh?
08:47 AM Haohmaru: with integer math? ;]
08:48 AM Haohmaru: 1/2 = 0
08:48 AM Haohmaru: 1/3=0
08:48 AM Haohmaru: 1/1=1
08:48 AM cehteh: eh
08:49 AM Gerritjan: i have 1 pulse and i need the ms to calc the freq
08:49 AM cehteh: fix the math first, and stay with integers
08:49 AM enh: Gerritjan: can't you use a timer?
08:49 AM Haohmaru: if "total" in in milliseconds then you should do 1000/period
08:50 AM cehteh: or count in milliseconds in the first place
08:50 AM cehteh: counter += 1000; .. and later calculate fractions and add/sunstract
08:50 AM cehteh: divisions are expensive
08:52 AM enh: Set a timer with a prescaler. Use timer interrupt to increase a counter every 1 ms.
08:53 AM cehteh: something like while(counter >1000) counter-=1000; to get a fractional part once a second is still faster than division (hanvent looked what your code does exactly)
08:53 AM enh: Emil, I'm trying to use the SPI SS pull-up to signal to the SPI master that the slave is ready to communicate.
08:53 AM LeoNerd: SSACK
08:54 AM LeoNerd: Yah, you can't do that with just one pin
08:54 AM LeoNerd: I'd suggest using the MISO line for that purpose
08:54 AM enh: MISO can be set as output, indeed.
08:54 AM LeoNerd: Normally, slaves should all leave their MISO line deassrted, so a weak pullup in the master will hold the line high
08:55 AM Gerritjan: Haohmaru: im think that the ms is to slow because im getting 0ms back as total
08:55 AM LeoNerd: When master selects a slave by sending it SS, the slave should enable its MISO driver. If it ensures to always enable it low, the master can poll the digital state of the pin to know when it's ready
08:55 AM Haohmaru: in your pasted code, "total" will be 1 or mostly 0
08:55 AM Haohmaru: i already told you
08:55 AM LeoNerd: On the master, you can read the digital state independently of the SPI module
08:55 AM Haohmaru: ehm, i meant "mycounter"
08:56 AM LeoNerd: On the slave, just use the right clocking mode and ensure SPDR contains 0x00
08:56 AM Gerritjan: yes
08:56 AM Gerritjan: total to
08:57 AM enh: Thanks, LeoNerd
08:57 AM Gerritjan: can it be that i need to use mircosec?
08:57 AM Gerritjan: in the code
08:58 AM Haohmaru: how much time does that cout << take?
08:58 AM Haohmaru: ;P~
08:58 AM enh: Gerritjan: http://www.avrfreaks.net/forum/tut-c-newbies-guide-avr-timers?page=all
08:58 AM Gerritjan: nanosec?
08:59 AM Haohmaru: instant?
09:00 AM Gerritjan: ehn: how can i use it ther because im using interrupt so i need to interrupt and then use a timer and use the count when the pin is high
09:00 AM enh: LeoNerd: Sorry. I did not understand why SPDR should be 0x00
09:00 AM Gerritjan: Haohmaru: dont know real
09:00 AM Gerritjan: realy*
09:00 AM LeoNerd: enh: I forget quite which SPI mode means what, but there's various ways for the SPI slave to influence what the digital state of MISO is
09:01 AM enh: Ok
09:01 AM Tom_L: CPOL CPHA
09:01 AM LeoNerd: If you're using the before-first-clock time for SSACK, you need to not be sending data during that time
09:01 AM Tom_L: polarity and phase
09:01 AM LeoNerd: Yesyes - I forget which one means "in this mode, the slave sends its data late"
09:02 AM LeoNerd: You have to be using a mode wherein the slave outputs data *after* a clock transition, such that there's idle time before the very first one, as it's this time you're using to implement the ready signal
09:02 AM enh: ok
09:02 AM LeoNerd: Alternatively, your signalling protocol can't use the top bit of the first byte out
09:02 AM LeoNerd: Which also works too, as typically that's either dead time, or maybe some sort of status code
09:02 AM enh: I thought about that, but it will increase protocol complexity and message length
09:03 AM enh: Using MISO is a good idea. MISO DDR is not set by slave SPI
09:03 AM LeoNerd: Yah; depends on the slave and what it's doing. Often I find I don't have much of interest to say in that first byte as I don't yet know what the master will be asking
09:04 AM Gerritjan: Haohmaru: i did use a generate a freq 2407 and check the ms but im getting 1ms as total output and i geusss thats not right
09:04 AM LeoNerd: The other advantage of using MISO for SSACK is that it's transparent to things like digital isolators used on SPI buses, as it only drives each pin in the same direction it would normally anyway
09:04 AM enh: My problem now is that master is sending too fast and slave is not having time to follow the protocol.
09:04 AM LeoNerd: If you need more processing time there, you might consider using I²C instead
09:05 AM Haohmaru: Gerritjan what are you trying to do exactly?
09:05 AM LeoNerd: I²C has ways for slaves to implement flow-control and slow the master down so they can keep up
09:05 AM Gerritjan: get freq from interrupt on pi
09:05 AM Gerritjan: pin
09:05 AM Gerritjan: so i need the pulses to calculate it only the sound is like 1 - 2 sec
09:06 AM Haohmaru: what is the range of the frequency and what's your sampling rate?
09:06 AM Gerritjan: and i never know when its comming
09:06 AM Gerritjan: betweek 2407 / 2600 hz
09:06 AM Gerritjan: between*
09:07 AM Haohmaru: sampling rate?
09:08 AM Gerritjan: dont know its like a alarm sounf
09:08 AM Gerritjan: sound :S
09:08 AM enh: LeoNerd: Can't change that now.
09:08 AM LeoNerd: Ah
09:08 AM Gerritjan: i did use on the arduino nano 44.1kz
09:09 AM LeoNerd: When do you need to implement flow-control timing though? Is it just at the start of the transaction, or between every byte?
09:09 AM enh: Probably between every byte.
09:09 AM LeoNerd: Ah, that's trickier. There isn't some dead-time in there
09:09 AM enh: The protocol has 3 states on the slave and 5 on the master
09:10 AM enh: one of the slave states has to select what to answer and fill the protocol buffer with data. This takes some time.
09:11 AM enh: Currently, the slave is not being able to process beyonf option 13 when master is at full speed.
09:11 AM Gerritjan: Haohmaru: almost this sound https://www.zedge.net/ringtone/1369372/
09:11 AM LeoNerd: Hmmm
09:11 AM LeoNerd: Coudl you split that transaction in two pices/
09:23 AM enh: Thanks, LeoNerd.
09:34 AM rue_mohr: enh, you want to generate a 'tone' for a set amount of time?
09:35 AM rue_mohr: I set a pin up for pwm with the tone I want, and toggle the pin type (input/output) to turn it on and off
09:35 AM rue_mohr: which you can do with manual or interrupt timing
09:36 AM rue_mohr: if you know how many cycles you want, put it in some overflow code to turn itself off
01:33 PM hetii: Hello :)
02:53 PM NoHitWonder: hi
04:23 PM enh: Hi rue_mohr. Nope. Not a tone. It is all about communicating data between AVRs.
06:04 PM polprog: https://i.redd.it/ah5bg33qymrz.png
06:05 PM Lambda_Aurigae: polprog, I don't get it.
06:06 PM polprog: it's a forkbomb in bash
06:07 PM polprog: it can be pretty hermetic i know :/
06:07 PM Lambda_Aurigae: oh...I was looking at the forkyboi and had no clue what that would be.
06:08 PM Lambda_Aurigae: but, I never did understand idiotspeak.
06:09 PM polprog: it's a bit silly
06:09 PM polprog: stylized
06:09 PM Lambda_Aurigae: idiotized
06:11 PM polprog: but, that's what they call memes now, amirite?
06:16 PM Lambda_Aurigae: huh?
06:17 PM * Lambda_Aurigae is just an old fart
06:30 PM polprog: i found some port of the bastard operator from hell game
06:30 PM polprog: hotline miami style
06:37 PM Lambda_Aurigae: BOFH is my bible.
06:38 PM Lambda_Aurigae: I learned a lot from him.
06:38 PM Lambda_Aurigae: mostly about blackmail,,,but,,,
06:59 PM polprog: i like the stories too
06:59 PM polprog: night
07:10 PM NoHitWonder: nite
07:11 PM NoHitWonder: i opened a sol
07:11 PM NoHitWonder: best beer in the world
07:13 PM Lambda_Aurigae: VB, Green can.
09:51 PM enh: hi
10:39 PM Lambda_Aurigae: iH
10:42 PM Dragoneye: Ih to you too
10:49 PM enh: LeoNerd: I fixed the protocol bug using a timer on the master. It liberates the master to transmit only at a minimum interval of FCPU/64.
11:20 PM enh: All right, Lambda_Aurigae?
11:21 PM enh: Hi polprog!
11:25 PM Lambda_Aurigae: I'm fine.
11:25 PM Lambda_Aurigae: up late
11:25 PM Lambda_Aurigae: kinda tipsy
11:25 PM Lambda_Aurigae: but alright.
11:26 PM enh: 1 am here... I can only find time to work this late
11:29 PM Lambda_Aurigae: watching the movie "Kong: Skull Island"
11:30 PM Lambda_Aurigae: and imbibing in a bit of liquid painkiller.
11:30 PM Tom_itx: going for pickled liver?
11:32 PM enh: Too much pain?
11:32 PM Lambda_Aurigae: 3rd day of migrane
11:33 PM Lambda_Aurigae: figured a little alcohol might help me sleep.
11:36 PM enh: migraine is soo bad
11:36 PM enh: hope you get better soon
11:36 PM enh: do you know the cause?
11:51 PM Lambda_Aurigae: tied to motion sickness.
11:54 PM Tom_itx: vertigo?
11:55 PM Lambda_Aurigae: kinda
11:55 PM Lambda_Aurigae: I always got motion sickness easily as a kid.
11:55 PM Tom_itx: i had a day of that a couple days ago but it went away
11:55 PM Lambda_Aurigae: as I got older I got migraines that duplicated the motion sickness feeling along with headache.
11:56 PM Lambda_Aurigae: these days I get it three or four times a year.
11:56 PM Tom_itx: this was just a 'drunk' feeling of the room spinning
11:56 PM Lambda_Aurigae: splitting headache, dizzy, drunk feeling, nausea, etc.
11:56 PM Tom_itx: mine was milder i think
11:56 PM Lambda_Aurigae: lasts 4 to 8 days give or take.
11:56 PM Tom_itx: but it really sucks
11:57 PM Lambda_Aurigae: the good migraine meds I can't really take,,,well, I can but won't
11:57 PM Lambda_Aurigae: they make me hallucinate
11:57 PM Lambda_Aurigae: which, to me, is worse than the headache.
11:57 PM Tom_itx: yeah i seldom take anything unless i just can't stand it
11:58 PM Lambda_Aurigae: so, it's either tylenol, aspirin, and caffeine combo,,,,,narcotics(which I hate),,,,or a touch of alcohol.
11:58 PM Lambda_Aurigae: so started with the otc migraine meds today and just had 3 good mixed drinks...and no going to bed.