reset for pic16f877a

Status
Not open for further replies.

SABRAMANSOUR

Junior Member level 2
Joined
Dec 16, 2014
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
127
what's the code for reset for pic16F877A using mikro C
 

I don't think there is one but there are several methods to force a reset:

1. If the watchdog timer is enabled, go into a loop that does not reset the watchdog so it eventually times out and performs a hardware reset.

2. Use a direct call to the reset vector, you may have to do this using an assembly statement.

Note that both these methods will leave the PCON register showing that a power-on reset has not ocurred.

Brian.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…