PDA

View Full Version : How to reset the pic by software ?



Shamir
- 18th October 2006, 13:58
Hi

I'm using pic 18f2455 and I want to reset the pic (goto 0) by software,
I'm also using bootloader (microchip) and:
DEFINE LOADER_USED 1 ' Bootlader is used
DEFINE RESET_ORG 800h ' For Microchip USB Bootloader
DEFINE INTERRUPT_ORG 808h

When I use goto 0 (in asm) the program stack and I don’t know where,
I tried to clr the PCL, PCLATH and PCLATU , but it didn’t work.

Dose any one know hot to do this?

Thanks
Shamir

dman776
- 18th October 2006, 15:44
You can use:

@ RESET

Shamir
- 18th October 2006, 16:43
Thanks you