LCD Controller 7/25 Issue date: 2 April, 1999
Syntek Semiconductor Co., Ltd.
STK55C1500
= 1 For 4 KHz base frequency
2-1 : = 0x Sound off
= 10 For alarm envelope
= 11 Sound always on
* The default value for each bit is zeros.
Alarm envelope waveform: (unit = second)
2003 IRQ flag register; read & write.
* Read : Bit 0 : if 1, timer interrupt, IRQ1.
Bit 1 : if 1, port 3 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.
Bit 5 : if 1, Port 5 interrupt, IRQ6. This flag will be read as ‘1’ if
any pin of port 5 generates interrupt.
* Write : Bit 0 : if 1, clear the flag of IRQ1.
Bit 1 : if 1, clear the flag of IRQ2.
Bit 2 : if 1, clear the flag of IRQ3.
Bit 3 : if 1, clear the flag of IRQ4.
Bit 4 : if 1, clear the flag of IRQ5.
* Before firmware exits the interrupt routine, the interrupt flag must be cleared.
Otherwise, the IC will get into interrupt again.
* Write 1 to clear the corresponding IRQ but do not write 0FFH to clear all
interrupts at the same time.
* Do NOT use TSB to test and clear this register. Following instructions are
recommended.
LDA $2003
AND #1 ;Check IRQ 1