English
Language : 

W921E840A Datasheet, PDF (21/58 Pages) Winbond – 4-BIT MICROCONTROLLER
W921E840A/W921C840
• PA, PB, PC, PD:
PABCDPH register: (address = 007H, default data = 0H)
b3
b2
b1
b0
0: PA (4 pins) without pull-high resistor
1: PA (4 pins) with pull-high resistor
0: PB (4 pins) without pull-high resistor
1: PB (4 pins) with pull-high resistor
0: PC (3 pins) without pull-high resistor
1: PC (3 pins) with pull-high resistor
0: PD (2 pins) without pull-high resistor
1: PD (2 pins) with pull-high resistor
PABCDTP register: (address = 008H, default data = 0H)
b3
b2
b1
b0
0: PA (4 pins) work as CMOS type
1: PA (4 pins) work as open-drain type
0: PB (4 pins) work as CMOS type
1: PB (4 pins) work as open-drain type
0: PC (3 pins) work as CMOS type
1: PC (3 pins) work as open-drain type
0: PD (2 pins) work as CMOS type
1: PD (2 pins) work as open-drain type
• P2:
P2TP register: (address = 00DH, default data = 0H)
b3
b2
b1
b0
Reserved
Reserved
6.6 Serial Port
0: P2 (4 pins) work as CMOS type
1: P2 (4 pins) work as open-drain type
0: PC.3 works as normal I/O port (CMOS type)
1: PC.3 works as 32.768KHz output buffer
(open-drain type) only for W921E841A,
843A, 844A
The W921E840A/W921C840 has a clock-synchronous serial interface which transmits and receives
8-bit data as default. User can program the P6IO register to select port P6 as the serial port. The
serial transmitter/receiver function can be operated with multi-nibble function and the LSB of every
nibble is transmitted/received first.
The serial transmitted/received data are come from or are stored into the serial buffer registers
(address 050H to 14EH); how many nibbles will be transmitted/received is decided by the serial MSB
nibble register (SRMNR, address = 00AH) and serial LSB nibble register (SRLNR, address = 009H).
- 21 -
Publication Release Date: July 1999
Revision A3