17 port p (pp1 to pp7) – Toshiba H1 Series User Manual

Page 160

Advertising
background image

TMP92CZ26A

92CZ26A-157

3.7.17 Port P (PP1 to PP7)

Port P1 to P5 are 6-bit general-purpose I/O ports. Each bit can be set individually for

input or output. Resetting sets port P1 to P5 to input port and output latch to “0”. In

addition to functioning as general-purpose I/O port pins, P0 to P5 can also function as

output pin for timers (TA3OUT, TA5OUT, TA7OUT), input pin for timers (TB0IN0,

TB1IN0), input pin for external interruption (INT5 to INT7).

Port P6 and P7 are 2-bit output port. Resetting sets output latch to “0”.In addition to

functioning as output port, PP6 and PP7 can also function as output pin for timers

(TB0OUT0, TB1OUT1).

Above setting is used the control register PPCR and function register PPFC.

Edge select of external interruption establishes it with IIMC register, which there is in

interruption controller.

In port setting, if 16 bit timer input is selected and capture control is executed, INT6 and

INT7 don’t depend on IIMC1 register setting. INT6 and INT7 operate by setting

TBnMOD<TBnCPM1:0>.

Figure 3.7.44 Port P1, P2

Internal dat

a

bus

Selector

A

B

S

Selector

A

B

S

PP1 (TA3OUT)
PP2 (TA5OUT)

TA3OUT output
TA5OUT output

PP read

Direction

control

(on bit basis)

PPCR write

Function

control

(on bit basis)

R

Output latch

PP write

Reset

PPFC write

Advertising
This manual is related to the following products: