Hi Steve,
This is the configuration:
As for Vdd, It slowly goes down as the Super Cap bleeds down (The program needs to perform a couple of other things when the power goes out and the Super Cap is still holding voltage) I don't have this part written yet. When the power comes back on, Vdd comes back while charging the Super Cap up.Code:NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F4550, r = dec, w = -311, f = inhx32 INCLUDE "P18F4550.INC" ; MPASM Header ;CONFIG PLLDIV = 1 CONFIG FOSC = INTOSCIO_EC CONFIG WDT = OFF CONFIG PBADEN = OFF CONFIG LVP = off CONFIG WRTB = ON CONFIG CPB = off CONFIG MCLRE = On NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 32
Thanks, Don




Bookmarks