Mental illness in microcontrollers
The patient is well again !
Preparations for brain surgery
Preparations for brain surgery
Battery compartment mod
Bleeplabs Nebulophone
6.3mm headphone jack
Added spacers to make it fit
Bleep Labs Nebulophone
9mm round
Why do I have to
Dumped its load
9mm round
9mm round
I know where I would shove it!
Stereo adapter... yeah right!
Can't get it up
The ugly
Definitely a quality product
Say no more!
The good
The bad
Debugging avrdude - arduino.c
Sniffing SPI traffic - RLE enabled
Sniffing SPI traffic - RLE enabled
Sniffing SPI traffic - RLE enabled
Sniffing SPI traffic - RLE enabled
Testing the soft-uart receiver on an ATtiny24
OLS - UART sniffing
Openbench logic sniffer
OLS - UART sniffing
OLS - UART decoding
Mr. Poop
Mr. Poop
CFL - a lamp of the past
CFL - closeup
CFL - ever wondered why many of them stink ?
Blackbird activity
Essence of Chicken
Lousy 'constant' current source
Lousy 'constant' current source
What am I?
My VW got abused by a motor scooter
My VW got abused by a motor scooter
My VW got abused by a motor scooter
See also...
Keywords
Authorizations, license
-
Visible by: Everyone -
All rights reserved
-
191 visits
Cured subject


No more hick-ups to be found. The solution is 'dirty', but works in this case. As the soft-uart only deals with 9600bps, which is rather slow, I made the pin-change interrupt that samples the byte interruptible. The delays introduced by all the other ISRs are minuscule and don't matter ;-)
The other way around would be lethal.
What happened:
The ISR that deals with the LEDs runs in CTC mode, that is the timer value is reset to zero, once a compare match has occurred. Now if other interrupts delay the invocation of said ISR, the timer will have advanced beyond the usual compare match value and will have to wrap around completely. A 16bit timer will need quite a while in this case (2s). In practice the LEDs will shut off for that period. Ouch.
The other way around would be lethal.
What happened:
The ISR that deals with the LEDs runs in CTC mode, that is the timer value is reset to zero, once a compare match has occurred. Now if other interrupts delay the invocation of said ISR, the timer will have advanced beyond the usual compare match value and will have to wrap around completely. A 16bit timer will need quite a while in this case (2s). In practice the LEDs will shut off for that period. Ouch.
- Keyboard shortcuts:
Jump to top
RSS feed- Latest comments - Subscribe to the comment feeds of this photo
- ipernity © 2007-2025
- Help & Contact
|
Club news
|
About ipernity
|
History |
ipernity Club & Prices |
Guide of good conduct
Donate | Group guidelines | Privacy policy | Terms of use | Statutes | In memoria -
Facebook
Twitter
Sign-in to write a comment.