pic 16f877a time problme

Thread Starter

emad shaaban

Joined Apr 10, 2012
8
hi all
when i use flowcode to make simple programe for flasing LED ,the programe work good in FLC and Proteus .but in real the Led is Steady on, i try to make the command of LED off above the time and ON after the timer the resulit is the LED is steady off
note i use micro and mill second uints but i got the same resuilt.
all the configuration bit was disable save HS ,and WRT(no diable option)
 

Thread Starter

emad shaaban

Joined Apr 10, 2012
8
thank you very much fot your reply
i solve it by changing the configuration bit (WRT = wrt_half) and it start to be okay , but i do not understand why,
 

chrisw1990

Joined Oct 22, 2011
551
by half? what value is this actually translated into?
i would try set it to turn the write protection off, if you look in the datasheet, the wrt bits are used to set the write protection, by setting them, you protect the whole lot, so maybe you or it had accidentally enabled this?
 
Top