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.8 Port H (PH0~PH7)<br />

Under development<br />

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

The port H 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 H performs the functions of<br />

the 16-bit timer input and the operation mode setting.<br />

While a reset signal is in “0”state, the PH0 input is enabled. At the rising edge of the reset signal, if PI0<br />

is “1”, it enters single mode and executes boot from the on-board flash memory. If PI0 is “0”, it enters<br />

single boot mode and executes boot from the stored boot program. For details of single boot mode,<br />

refer to “Chapter 17 Flash Memory Operation”.<br />

Releasing a reset allows all bits to perform as the general-purpose port and the port H to be put in<br />

input/ output disable mode.<br />

Port H register<br />

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

PH Bit Symbol PH7 PH6 PH5 PH4 PH3 PH2 PH1 PH0<br />

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

After reset “0”<br />

Port H control register<br />

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

PHCR Bit Symbol PH7C PH6C PH5C PH4C PH3C PH2C PH1C PH0C<br />

(0x4000_01C4) 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 H function register 1<br />

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

PHFR1 Bit Symbol PH7F1 PH6F1 PH5F1 PH4F1 PH3F1 PH2F1 PH1F1 PH0F1<br />

(0x4000_01C8) 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: TB3IN1 1: TB3IN0 1: TB2IN1 1: TB2IN0 1: TB1IN1 1: TB1IN0 1: TB0IN1 1: TB0IN0<br />

Port H pull-up control register<br />

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

PHPUP Bit Symbol PH7UP PH6UP PH5UP PH4UP PH3UP PH2UP PH1UP PH0UP<br />

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

After reset 0 0 0 0 0 0 0 1<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 H input enable control register<br />

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

PHIE Bit Symbol PH7IE PH6IE PH5IE PH4IE PH3IE PH2IE PH1IE PH0IE<br />

(0x4000_01F8) 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-13<br />

Input/Output Ports

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

Saved successfully!

Ooh no, something went wrong!