23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.1.2 Port B (PB0~PB7)<br />

Under development<br />

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

The port B 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 input/output function, the port B performs debug<br />

communication function.<br />

A reset allows PB0, PB1 and PB2 to perform the debug communication function and the other bits<br />

perform as the general-purpose port with input/output disabled. When PB0 functions as the TDO or<br />

SWV port, output is enabled. When PB1 functions as the TDI port, input and pull-up are enabled. When<br />

PB2 functions as the TRST port, input and pull-up are enabled.<br />

Port B register<br />

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

PB Bit Symbol PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0<br />

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

After reset “0”<br />

Port B control register<br />

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

PBCR Bit Symbol PB7C PB6C PB5C PB4C PB3C PB2C PB1C PB0C<br />

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

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

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

Port B function register 1<br />

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

PBFR1 Bit Symbol - - - - - PB2F1 PB1F1 PB0F1<br />

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

After reset 0 1 1 1<br />

Function “0” is read. 0:PORT 0:PORT 0:PORT<br />

1: TRST 1: TDI 1:<br />

TDO/SWV<br />

Port B pull-up control register<br />

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

PBPUP Bit Symbol PB7UP PB6UP PB5UP PB4UP PB3UP PB2UP PB1UP PB0UP<br />

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

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

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

PBIE Bit Symbol PB7IE PB6IE PB5IE PB4IE PB3IE PB2IE PB1IE PB0IE<br />

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

After reset 0 0 0 0 0 1 1 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-4<br />

Input/Output Ports

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

Saved successfully!

Ooh no, something went wrong!