Navigation bar
  Start Previous page
 70 of 323 
Next page End  

ZBasic System Library
60
ZX Microcontroller Family
CPUSleep
Type
Subroutine
Invocation
CPUSleep()
Discussion
This routine puts the processor into a special sleep mode in which activity and power consumption are
reduced.  The nature of the sleep mode is controlled by certain bits in one of the CPU registers (see table
below).  For more information about the sleep mode, consult the Atmel documentation for the ATmega or
ATxmega processor on which your ZX device is based.
Register Containing the Sleep Mode Bits
ZX Model
Register
ZX-24, ZX-40, ZX-44, ZX-24e
Register.MCUCR
ZX-24a, ZX-40a, ZX-44a, ZX-24ae
Register.SMCR
ZX-24p, ZX-40p, ZX-44p, ZX-24pe, ZX-24pu
Register.SMCR
ZX-24n, ZX-40n, ZX-44n, ZX-24ne, ZX-24nu
Register.SMCR
ZX-24r, ZX-40r, ZX-44r, ZX-24s, ZX-40s, ZX-44s, ZX-24ru, ZX-24su
Register.SMCR
ZX-328n, ZX-328l, ZX-32n, ZX-32l, ZX-328nu
Register.SMCR
ZX-1281, ZX-1281n, ZX-1280, ZX-1280n, ZX-1281e, ZX-1281ne
Register.SMCR
ZX-128e, ZX-128ne
Register.MCUCR
ZX-24x, ZX-32a4, ZX-128a1, ZX-24xu
Register.SLEEP_CTRL
Previous page Top Next page