7 seg LED display and Delay
Posted: Sun Feb 10, 2008 12:45 pm
I was 'playing' with the 4 digits 7 segment LED display and have noticed some strange behaviour. I use the multiprogrammer with PIC16F88 and flowcode 3 (prof). In attachments there are 2 files, they look the same only the delay is different.
It is a testprogram that uses the Macro LED7seg4. The program should display one digit at a time. In DEMO everything goes as it should but when you change the delay from 1 msec to more then 4 msec (like 1 sec in 7segment2.fcf) then the live version of the program only displays the last digit.
Now I have different test programs like with nested while loops and they are all the same ; strange behaviour when the delay is greater then 4 msec.
In the C-code of these programs, I don't see anything strange. Bye the way, can I use nested while loops ?
It is a testprogram that uses the Macro LED7seg4. The program should display one digit at a time. In DEMO everything goes as it should but when you change the delay from 1 msec to more then 4 msec (like 1 sec in 7segment2.fcf) then the live version of the program only displays the last digit.
Now I have different test programs like with nested while loops and they are all the same ; strange behaviour when the delay is greater then 4 msec.
In the C-code of these programs, I don't see anything strange. Bye the way, can I use nested while loops ?