Page 1 of 1

Please help me ! I can't use Timer 0 with Pic 16F877

Posted: Wed Oct 01, 2008 5:54 pm
by dinhchithanh
Hello anyone 8)
I'am Vietnammese and i only starter learn PIC :arrow: . I have a problem with Pic 16f877. When i used Flowcode for PIC to programming LED flasher on RB port, i used timer0 interrupt. It seem very well with Flowcode simulation , but when i used Proteus and opened file PICDEM2+ with PIC16F877 (C:\Program Files\Labcenter Electronics\Proteus 7 Professional\SAMPLES\VSM MPLAB Viewer\Eval Boards\PICDEM2+ with PIC16F877), a problem happen. It is not true. :?:

My teacher have kit PICDEM2 Plus but i want test my code first with Proteus. Can you help me why differrent Flowode vs Proteus.

My file here.
Thank you advance.

Re: Please help me ! I can't use Timer 0 with Pic 16F877

Posted: Thu Oct 02, 2008 10:38 am
by Benj
Hello

Firstly make sure that you are setting the clock speed correctly in Proteus. Are other Flowcode programs simulating ok in Proteus?

Secondly check that your timer interrupt enable properties use the CLKI and not the T0CKI input for the clock.

Other then this it may be worth downloading to hardware and trying it there, If Flowcode is working and the hardware is working then the problem is likely to be Proteus.

Re: Please help me ! I can't use Timer 0 with Pic 16F877

Posted: Fri Oct 03, 2008 6:18 pm
by dinhchithanh
Oh, yes sir, thank you very much.
i say that both Proteus end Flowcode are powerful. :P