Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

reset instruction of pic18f4585

Status
Not open for further replies.

deepa.malagi

New Member
Hi,

please help me how to do software reset of pic18f4585 using reset instruction ,or is there any other method of software resetting please explain me.

if possible please give me the example source code for this.
 
From datasheet DS39625C-page 391

Syntax: RESET
Operands: None
Operation: Reset all registers and flags that are
affected by a MCLR Reset.
Status Affected: All
Encoding: 0000 0000 1111 1111
Description: This instruction provides a way to
execute a MCLR Reset in software.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Start
Reset
No
operation
No
operation
Example: RESET
After Instruction
Registers = Reset Value
Flags* = Reset Value
 
I suspect that you left out a vital bit of information in your original post:

If you are using C18 compiler, then reset is acheived using:

Code:
         Reset();
... exactly as listed in the C18 compiler user manual
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top