= 1 Enable sleep mode
In sleep mode, whole chip will be stopped. That is, the system and 32768 Hz crystal oscillator
will be stopped. The bit 1 of $120D will be reset. Only reset and IRQ2 will wake up this chip.
1202 Sound output control
Bit 0 : = 0 For 1 KHz base frequency
= 1 For 2 KHz base frequency
2-1 : = 0x Sound off
= 10 For alarm envelope
= 11 Sound always on
* The default value for each bit is zero.
Alarm envelope waveform: (unit = second)
1203 IRQ flag register; read & write.
* Read : Bit 0 : if 1, timer interrupt, IRQ1.
Bit 1 : if 1, port 2 interrupt, IRQ2.
Bit 2 : if 1, 0.5 sec. timer interrupt, IRQ3.
Bit 3 : if 1, transmit data complete interrupt, IRQ4.
Bit 4 : if 1, receiver data ready interrupt, IRQ5.
* Write : Bit 0 : if 0, clear the flag of IRQ1.
Bit 1 : if 0, clear the flag of IRQ2.
Bit 2 : if 0, clear the flag of IRQ3.
Bit 3 : if 0, clear the flag of IRQ4.
Bit 4 : if 0, clear the flag of IRQ5.
* When the system is in IRQ mode, the IRQ flag register must be cleared before having another
interrupt request; otherwise, the system will always be in IRQ mode.
1204 Low byte data for port 1; write only.
The output data pins are shared with A0-A7.
1205 High byte data for port 1; write only.
Bit 5-0 : Output data. The output data pins are shared with A8-A13.