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

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
dinhchithanh
Posts: 12
Joined: Wed Oct 01, 2008 5:49 pm
Location: Da Nang University of Technology-VietNam
Contact:

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

Post 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.
Attachments
Helpme.rar
(18.76 KiB) Downloaded 275 times
Thank in advanced

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

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

Post 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.

dinhchithanh
Posts: 12
Joined: Wed Oct 01, 2008 5:49 pm
Location: Da Nang University of Technology-VietNam
Contact:

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

Post by dinhchithanh »

Oh, yes sir, thank you very much.
i say that both Proteus end Flowcode are powerful. :P
Thank in advanced

Post Reply