beautypg.com

Chapter 5 port functions – NEC PD78214 User Manual

Page 96

background image

67

Chapter 5 Port Functions

5

Table 5-4 Port 3 Operating Modes (n = 0 through 7)

Condition

P30

P31

P32

P33

P34

P35

P36

P37

Mode

Control signal I/O mode

PMC3n = 1

RxD input

TxD output

SCK I/O

SO output or SB0 I/O

TO0 output

TO1 output

TO2 output

TO3 output

Port mode

PMC3n = 0

I/O port

(a) Port mode

If a port is put in a port mode by the PMC3 register, the port mode register (PM3) can put each bit of the port
in either the input or output mode independently of the other bits.

(b) Control signal I/O mode

The PMC3 register can specify each pin of port 3 as a control pin independently of the other pins, as described
below.

(i) RxD (receive data)

The RxD pin receives serial data from the asynchronous serial interface.

(ii) TxD (transmit data)

The TxD pin outputs serial data to the asynchronous serial interface.

(iii) SCK (serial clock)

The SCK pin is a serial clock I/O pin for the clock-synchronized serial interface.

(iv) SO (serial output)/SB0 (serial bus)

The SO pin outputs serial data (during three-wire serial I/O mode). The SB0 pin is a serial bus I/O pin
(during the SBI mode).

Remark For bit 3 (P33) of port 3, “SB0” is a reserved word in the NEC assembly program package. The bit is also defined in a header

file named sfrbit.h by the C compiler.

(v) TO0 through TO3 (timer output)

The TO0 through TO3 pins are timer output pins.

This manual is related to the following products: