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.3 Port C (PC0~PC3)<br />

Under development<br />

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

The port C is a 4-bit input port. Besides the general-purpose input function, the port C functions as the<br />

analog input port of the A/D converter.<br />

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

disable mode.<br />

Set the input enable control register when you use the port C as an input port. The setting is not<br />

required when you use it as an analog input port of the A/D converter.<br />

Port C register<br />

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

PC Bit Symbol - - - - PC3 PC2 PC1 PC0<br />

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

After reset “0” is read. “0”<br />

Port C pull-up control register<br />

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

PCPUP Bit Symbol - - - - PC3UP PC2UP PC1UP PC0UP<br />

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

After reset 0 0 0 0 0<br />

Function “0” is read. Pull-up Pull-up Pull-up Pull-up<br />

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

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

Port C input enable control register<br />

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

PCIE Bit Symbol - - - - PC3IE PC2IE PC1IE PC0IE<br />

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

After reset 0 0 1 1 0<br />

Function “0” is read. Input Input Input Input<br />

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

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

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

Input/Output Ports

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

Saved successfully!

Ooh no, something went wrong!