ZLP128ICE01ZEM Zilog, ZLP128ICE01ZEM Datasheet - Page 109

no-image

ZLP128ICE01ZEM

Manufacturer Part Number
ZLP128ICE01ZEM
Description
EMULATOR CRIMZON Z8 ZLP12840
Manufacturer
Zilog

Specifications of ZLP128ICE01ZEM

Interface Type
RS-232, Ethernet, USB
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
269-3829
PS024410-0108
SMR1 Register Events
The SMR1 register can be used to configure one or more Port 2 pins to be to be compared
to a written or sampled reference value and generate a SMR event when the pin state dif-
fers from the reference value.
To configure a Port 2 pin as an SMR1 event source, make sure it is configured as an input
in the P2M register, then set the corresponding SMR1 register bit. By default, a SMR
event occurs when the pin’s state is zero.
After a Port 2 pin is configured as an SMR1 source, any subsequent read from or write to
the P2 register latches the read or written value for reference. A SMR event occurs when
the pin’s state differs from the last reference value latched. The SMR1 source logic is dis-
played in
The program can read register bits SMR4[1:0] to determine whether the Port 2 pins trigger
a SMR on a change from the last read value (SMR4[1:0]=01), or on a change from the last
written value (SMR4[1:0]=10). Software can clear SMR4[1:0] to 00 to restore the default
behavior (configured pins trigger when their state is 0).
The SMR1 register is summarized in
After the following example code is executed, a 1 on P2 0 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
Figure 36
on page 104.
;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.
P R E L I M I N A R Y
Table 49
on page 105.
Resets and Power Management
Product Specification
ZLP12840 OTP MCU
103

Related parts for ZLP128ICE01ZEM