70 of 318
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 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 Register.SLEEP_CTRL