Moderator: ericb




if (CPU_Sleep != 0) CPU_Sleep = CPU_Sleep-1
Or in asm
tst [CPU_Sleep],0
jz NoDec
dec [CPU_Sleep]
NoDec:
and F,~01h
or F,01h
and reg[CPU_SCR0],F7h ; Set Bit Sleep in reg[CPU_SCR0]
or reg[CPU_SCR0],08h

cmp [CPU_sleep],0
jz NoDec
dec [CPU_sleep]
NoDec:

duongimi wrote:I measure is 95mA in normal mode and 85mA in sleep mode.




graaja wrote:2. Switch off any analog buffers if enabled
3. Make all the pins HighZ Analog before putting PSoC to sleep


Users browsing this forum: No registered users and 3 guests