Resetting PIC Via Software

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Resetting PIC Via Software

Post by Ron »

Hello,

I was wondering if it is possible to reset a PIC via software command.

I am having a bootloader developed for me, original specification was that resetting the PIC from PC application be available, programmer says not possible because he is using Visual C# express edition, he says it can only be done if he has access to hardwire pin in COM port.

Can code be written in a bootloader that can issue a reset command to some type of register in a PIC 16F886/7 and 18F2620/4620?

PC application sends command via RS232 port to PIC/bootloader, bootloader resets PIC?

Thanks

Ron

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Resetting PIC Via Software

Post by Steve »

I think there is a RESET command in the 18F series PICs.

For the 16F PICs, you could simple jump to location zero - but remember that the registers will not be at their default settings (e.g. TRIS registers will not necessarily be 0xFF).

Post Reply