Dec 18, 2014 #1 S 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
Dec 18, 2014 #2 betwixt Super Moderator Staff member Joined Jul 4, 2009 Messages 16,247 Helped 5,140 Reputation 10,309 Reaction score 5,123 Trophy points 1,393 Location Aberdyfi, West Wales, UK Activity points 137,489 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.
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.
Dec 19, 2014 #3 D david401040 Junior Member level 1 Joined Dec 4, 2004 Messages 16 Helped 3 Reputation 6 Reaction score 3 Trophy points 1,283 Activity points 106 Code: goto 00 just send pc back to zero