How does the "delay" mechanism work in atmega328p avrcandies wrote:Waiting and sleeping can be entirely diffeent things.
This is the word everyone took the wrong way in this post.
by sleep i meant "delay this process" from...
Tuesday, 7 July 2020 - 16:26
How does the "delay" mechanism work in atmega328p Brian Fairchild wrote:But that whole section has nothing to do with code running on the chip.
Yes aware of that, but brain went like "how would this be done anyways?....".
Tuesday, 7 July 2020 - 15:38
How does the "delay" mechanism work in atmega328p clawson wrote:Or were you really asking "where is yield()? and what does it do?"
No, I was reading the "27.8.2 Serial Programming Algorithm" section under the data sheet and it...
Tuesday, 7 July 2020 - 15:15
How does the "delay" mechanism work in atmega328p MrKendo wrote:
A couple of examples.
Thank you so much.
So to summarize; On a regular OS, "sleep" usually sets a timer, remove your process from the scheduler...
Tuesday, 7 July 2020 - 14:03
How does the "delay" mechanism work in atmega328p Kartman wrote:
Errr....how does Linux, Windows and just about any known OS do it? There's a hardware timer in there.
We are going in circles here, so let's clarify...
Tuesday, 7 July 2020 - 02:56
How does the "delay" mechanism work in atmega328p Right, my source of confusions was how this is done in Arduino's core. It's done with a fully blocking infinite loop, not this method which you have...
Tuesday, 7 July 2020 - 02:12
How does the "delay" mechanism work in atmega328p js wrote:or are you just wasting everyone's time?
Sir i think we are talking abut 2 different sleeps. I'm talking about the C sleep function, not the Sleep Mode in AVR.
...
Tuesday, 7 July 2020 - 01:28
How does the "delay" mechanism work in atmega328p So use it like a callback? C doesn't have this natively if i'm not mistaking, you have to use threads on normal OS's, "sleep" would just block the thread. How is this done an...
Monday, 6 July 2020 - 23:56
How does the "delay" mechanism work in atmega328p ka7ehk wrote:It is not blocking because the MCU can continue to execute code while the timer runs
atmega328p is single threaded, so while sleeping, what other code could...
avrcandies wrote:Waiting and sleeping can be entirely diffeent things. This is the word everyone took the wrong way in this post. by sleep i meant "delay this process" from...
Brian Fairchild wrote:But that whole section has nothing to do with code running on the chip. Yes aware of that, but brain went like "how would this be done anyways?....".
clawson wrote:Or were you really asking "where is yield()? and what does it do?" No, I was reading the "27.8.2 Serial Programming Algorithm" section under the data sheet and it...
MrKendo wrote: A couple of examples. Thank you so much. So to summarize; On a regular OS, "sleep" usually sets a timer, remove your process from the scheduler...
Kartman wrote: Errr....how does Linux, Windows and just about any known OS do it? There's a hardware timer in there. We are going in circles here, so let's clarify...
Right, my source of confusions was how this is done in Arduino's core. It's done with a fully blocking infinite loop, not this method which you have...
js wrote:or are you just wasting everyone's time? Sir i think we are talking abut 2 different sleeps. I'm talking about the C sleep function, not the Sleep Mode in AVR. ...
So use it like a callback? C doesn't have this natively if i'm not mistaking, you have to use threads on normal OS's, "sleep" would just block the thread. How is this done an...
ka7ehk wrote:It is not blocking because the MCU can continue to execute code while the timer runs atmega328p is single threaded, so while sleeping, what other code could...
clawson wrote: If you knew that where are you seeing the "bit bang", "emulated" code you referred to? I thought there had to be an instruction like "ssnd" (serial send) or...
clawson wrote:then you have missed some detail of the above. thanks, I know c++. All the things you mentioned are memory addresses/registers. they have nothing to do with...
It's clearing up for me now that, there are no "specific instructions" to let say send a UART byte, you just write to a register/mem address using regular "load/store"...
Pages