Post Created date
Moving on, to assembly. But a manual would be nice.
Simonetta wrote: In the modern world, I can recommend AVR assembler only for programming devices with 1K of flash or less.   AVR assembler is complex and is not a useful...
Tuesday, 1 December 2020 - 04:10
[Atmega32] Why PINx registers cannot be directly compared?
totesnochill wrote: I will try to pull the pins down (externally), and see if the approach works again. Then your code will break again when you use any of those other pins....
Thursday, 26 November 2020 - 16:48
4 encoders - is 8mhz not fast enough?
chriscalandro wrote: Oh, I see what you are saying.  These have a detent, and I have verified the detent positions are all decoupled.   But yeah, if they weren't and it...
Sunday, 22 November 2020 - 04:51
4 encoders - is 8mhz not fast enough?
chriscalandro wrote:I'm not seeing how this would end with one encoder controlling the variable for another.   Using your original code as an example,   ISR(PCINT2_vect...
Sunday, 22 November 2020 - 04:24
4 encoders - is 8mhz not fast enough?
I think you have another serious problem when you start reading multiple encoders.  If encoder #1 changes and generates an interrupt, you will adjust e.g RedValue up or down...
Sunday, 22 November 2020 - 03:20
4 encoders - is 8mhz not fast enough?
chriscalandro wrote: if (PORTD = 0b11111110)     No x2   First, you're using = when I assume you mean ==   Second, you don't care what the other bits are for...
Saturday, 21 November 2020 - 23:35
4 encoders - is 8mhz not fast enough?
balisong42 wrote: The ISR will run faster with four sets of if/else-if. You know RedValue++ and RedValue-- won't happen at the same time. Right.   Also, the same test is...
Saturday, 21 November 2020 - 22:00
Simple timer with 20mHz clock
Simonetta wrote: I would also recommend using an 8-bit timer with a prescaler of 256.   I always use the overflow interrupt with timers, for no other reason than it...
Friday, 20 November 2020 - 21:43
Simple timer with 20mHz clock
nikm wrote: I might be wrong, but with a clock speed of 20mHz, I don't think an 8bit timer would work would it? Note: mHz is milliHertz.  MHz is MegaHertz. :)   The...
Friday, 20 November 2020 - 21:39
Simple timer with 20mHz clock
Since you said (roughly) every 2ms, don't waste a valuable 16-bit timer.  Use an 8-bit timer that gets you close enough.  You can use either a prescale of 256 and a...
Friday, 20 November 2020 - 19:44
Timers: enabling interrupt, yet still using poling?
skeeve wrote:I recommend against conflating polling with busy waiting.   You're right.  The OP wrote "Yet, we ended up still needing a busy-waiting/spinning; I...
Monday, 16 November 2020 - 16:12
Timers: enabling interrupt, yet still using poling?
I would distinguish between "busy waiting" (I had said polling, but I'm changing my wording) and "polling" (I had said "monitoring, but I'm changing my wording) as follows...
Monday, 16 November 2020 - 03:00

Pages