Posted on July 12, 2004 at 00:28I've changed C compiler (COSMIC) to an old version and the problem seemed to get resolved. I am so worried about those compilers.
Posted on July 10, 2004 at 06:22I have a lite timer 1 interrupt to control pulse width. But after several pulse are produced the interrupt is disabled unexpected. If I add ''_asm(''nop'')'' or any other codes to ISR this is not going to happen. Why ...
Posted on June 11, 2004 at 00:27 _luca, thanks, I had had my problem solved. ''- when testing a multibyte variable (int) that is modified in an interrupt routine you should disable interrupts, otherwise you could have the variable incremented...
Posted on June 10, 2004 at 23:38 Problem still remains ! But the waveform becomes more regular. It is supposed to be: PB5 400(low) 400(high) 400(low) 400(high) 400(low) 400(high) ... PB6 400(high)400(low) 400(high)400(low) 400(high)400(low) ...
Posted on June 09, 2004 at 01:03Below is my program. I want to do something every 400ms. So I use Timebase 1 interrupt(1ms) and increase a flag variable by 1 in ISR. When the variable exceeds 400 then do something. But sometimes IF judgement also su...