English
Language : 

W921E840A Datasheet, PDF (35/58 Pages) Winbond – 4-BIT MICROCONTROLLER
W921E840A/W921C840
6.11.5 Arbitrary Waveform Generator
The TM1 and TM2 have the arbitrary waveform generator circuit. Both have the same function as the
following description.
Type 0:
NT
256T
N = 0 will keep the waveform in the high state
Type 1:
T
NT
N = 1 will keep the waveform in the low state
Note: N is the value stored in the TM1 Set Reg. (TM1MSB, TM1LSB) or TM2 Set Reg. (TM2MSB, TM2LSB)
6.12 Interrupt
There are ten interrupt sources (four external and six internal sources) in the
W921E840A/W921C840. All the pins of external sourcesÄINT0 (P4.3) and port P4 (P4.0 to P4.2)Äare
falling edge active. The priority of those interrupts is INT0 > TM0 > TM1 > TM2 > ( Comparator / TM3
) > P4.0 to P4.2 > SERIAL.
6.12.1 Interrupt Control Register
Which interrupt is enabled is controlled by the interrupt control register1 to 3 (INTCT1 to INTCT3).
The formats are shown below:
INTCT1 register: (address = 039H, default data = 0H)
b3
b2
b1
b0
0: TM0 interrupt disable
1: TM0 interrupt enable
0: TM1 interrupt disable
1: TM1 interrupt enable
0: TM2 interrupt disable
1: TM2 interrupt enable
0: TM3 interrupt disable
1: TM3 interrupt enable
- 35 -
Publication Release Date: July 1999
Revision A3