Uridan
Newbie level 4
Hi
I programmed the micro to read some analogue data from sensors and switch some relays and send data via Uart to a RF module .
All I need now is to set the micro in Power down mode since I am running the system on solar and batties.
I set the PCON register to
PCON |= 0x02 // sets the micro to PD (Power down) mode
Now Is there a way to reset the program from the start by using watchdog or doesn't watchdog work on PD mode ?
I have no clue on how to work with interupts so can you help me program the micro to go on PD mode once it sends the data via UART, and waits for 60sec until the interupt invokes the PD mode and resets the program of the micro to start again from the begining ?
I am using C language via :µVision 2 (keil) and the AT89C51AC2.
N.B I have read the datasheet but I got pretty much lost !
Thanks
Regards
Edmund
I programmed the micro to read some analogue data from sensors and switch some relays and send data via Uart to a RF module .
All I need now is to set the micro in Power down mode since I am running the system on solar and batties.
I set the PCON register to
PCON |= 0x02 // sets the micro to PD (Power down) mode
Now Is there a way to reset the program from the start by using watchdog or doesn't watchdog work on PD mode ?
I have no clue on how to work with interupts so can you help me program the micro to go on PD mode once it sends the data via UART, and waits for 60sec until the interupt invokes the PD mode and resets the program of the micro to start again from the begining ?
I am using C language via :µVision 2 (keil) and the AT89C51AC2.
N.B I have read the datasheet but I got pretty much lost !
Thanks
Regards
Edmund