zlf645e0s2832g ZiLOG Semiconductor, zlf645e0s2832g Datasheet - Page 151

no-image

zlf645e0s2832g

Manufacturer Part Number
zlf645e0s2832g
Description
Crimzon Infrared Microcontrollers Zlf645 Series Flash Mcus With Learning Amplification
Manufacturer
ZiLOG Semiconductor
Datasheet
PS026407-0408
After the following example code is executed, a 1 on P20 will wake the part from
STOP mode:
After the following example code is executed when the value of P2 is 00h, a 1 on P20
will wake the part from STOP mode:
LD P2M, #%FF
SRP #%0F
LD SMR1, #%01
SRP #%00
LD P2, #%00
NOP
STOP
LD P2M, #%FF
SRP #%0F
LD SMR1, #%01
SRP #%00
LD R6, P2
NOP
STOP
;Set Port 2 to inputs.
;Point to expanded bank F
;Select P20 for SMR1.
;Point to bank 0
;Write 00h to Port 2, so the P20 reference
;value is 0, and a 1 on P20 wakes the part.
;Set ports to inputs.
;Point to expanded bank F
;Select P20 for SMR1.
;Point to bank 0
;If a 0 is read from Port 2, the P20 reference
;value is 0, so a 1 on P20 wakes the part.
ZLF645 Series Flash MCUs
Reset/Stop Mode Recovery Status
Product Specification
143

Related parts for zlf645e0s2832g