.:madworm:.'s photos with the keyword: debugging

Cured subject

08 Jul 2011 192
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.

Mental illness in microcontrollers

08 Jul 2011 211
The top signal shows the premature death of the ATtiny24's TIM1_COMPA_vect. In hindsight the explanation is trivial, but I didn't suspect that cause until very late in the debugging process - as usual.

The patient is well again !

08 Jul 2011 157
From top to bottom: a) Interrupt servicing the LED drivers with PWM pulses. It only runs when the edges need to change and takes very little time. But it is crucial that its timing is 100% spot on. b) LED driver enable signal produced by the ISR. c) pin-change interrupt that reads incoming serial data @9600. d) pulses indicate when the bit are sampled, which is tuned by inserting fixed delays. e) incoming serial data. f) status LED showing something I can't remember right now.

16 LEDs on purple

18 Jan 2013 179
After hours (perceived) of filing and cursing I got the header to fit. Damn tolerances. The latest revision comes with slightly larger holes, so the issue should be solved.

Preparations for brain surgery

08 Jul 2011 201
Remember: always, no ALWAYS add some means of getting signals out.

Preparations for brain surgery

08 Jul 2011 218
Remember: always, no ALWAYS add some means of getting signals out.

LED module

17 Jan 2013 312
Fed up with wiring up LEDs just for debugging code. Now it's just 'plug-n-play'. Shipping of the boards took 4 weeks again ;-( A few theories: 1) Mailing in December simply sucks 2) Someone at the customs office hates me 3) New regulations to pester people by delaying shipments 4) Extensive scanning of mail for illegal / hazardous substances 5) Some sort of conspiracy against purple PC-boards 6) All of the above A simple Arduino-library for the MBI5030 can be found on github .