Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Autoshutdown in xx minutes

Status
Not open for further replies.

unkn0wn

Junior Member level 3
Joined
Sep 5, 2006
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,482
For PIC microcontroller or general alogrithm, can anyone please assist me with

- I want the microcontroller to shutdown or goto sleep mode after XX minutes.

OR (more preferrably)

- I want the microcontroller to point to a specific subroutine, after XX minutes.

??
 

pre scale a timer and start it at the beginning of the program.
read the overflow bit in the ISR.once overflow happens jump to your subroutine.if the timer value loaded is not enough, write a logic in the ISR such a way that it makes up the delay you wanted.
 

user a timer

Added after 1 minutes:

user a timer setting function to set the callback function after your operation ends
 

Any example of the coding?? used in powering down or anyother???
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top