23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.1.9 Port I (PI0~PI7)<br />

Under development<br />

<strong>TMPM330</strong><br />

The port I is a general-purpose, 8-bit input/output port. For this port, inputs and outputs can be<br />

specified in units of bits. Besides the general-purpose port function, the port I performs the 16-bit timer<br />

input/output function.<br />

A reset allows all bits to perform as the general-purpose port and the port I to be put in input/ output<br />

disable mode.<br />

Port I register<br />

7 6 5 4 3 2 1 0<br />

PI Bit Symbol PI7 PI6 PI5 PI4 PI3 PI2 PI1 PI0<br />

(0x4000_0200) Read/Write R/W<br />

After reset “0”<br />

Port I control register<br />

7 6 5 4 3 2 1 0<br />

PICR Bit Symbol PI7C PI6C PI5C PI4C PI3C PI2C PI1C PI0C<br />

(0x4000_0204) Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Function 0: Output disabled 1: Output enabled<br />

Port I function register 1<br />

7 6 5 4 3 2 1 0<br />

PIFR1 Bit Symbol PI7F1 PI6F1 PI5F1 PI4F1 PI3F1 PI2F1 PI1F1 PI0F1<br />

(0x4000_0208) Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Function 0:PORT 0:PORT 0:PORT 0:PORT 0:PORT 0:PORT 0:PORT 0:PORT<br />

1: TB4IN1 1: TB4IN0 1: TB5OUT 1: TB4OUT 1: TB3OUT 1: TB2OUT 1: TB1OUT 1: TB0OUT<br />

Port I pull-up control register<br />

7 6 5 4 3 2 1 0<br />

PIPUP Bit Symbol PI7UP PI6UP PI5UP PI4UP PI3UP PI2UP PI1UP PI0UP<br />

(0x4000_022C) Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Function Pull-up Pull-up Pull-up Pull-up Pull-up Pull-up Pull-up Pull-up<br />

0:off 0:off 0:off 0:off 0:off 0:off 0:off 0:off<br />

1:on 1:on 1:on 1:on 1:on 1:on 1:on 1:on<br />

Port I input enable control register<br />

7 6 5 4 3 2 1 0<br />

PIIE Bit Symbol PI7IE PI6IE PI5IE PI4IE PI3IE PI2IE PI1IE PI0IE<br />

(0x4000_0238) Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Function Input Input Input Input Input Input Input Input<br />

0:disabled 0:disabled 0:disabled 0:disabled 0:disabled 0:disabled 0:disabled 0:disabled<br />

1:enabled 1:enabled 1:enabled 1:enabled 1:enabled 1:enabled 1:enabled 1:enabled<br />

<strong>TMPM330</strong>(rev0.4) 7-14<br />

Input/Output Ports

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!