29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

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.

CHAPTER 7 8-BIT TIMER/EVENT COUNTER<br />

(3) Port mode register 2 (PM2)<br />

This register sets port 2 input/output in 1-bit units.<br />

When using the P22/TO50/TI50 and P23/TI51/TO51 pins for timer output, set PM22, PM23, and output latches<br />

of P22 and P23 to 0.<br />

PM2 is set with a 1-bit or 8-bit memory manipulation instruction.<br />

RESET input sets PM2 to FFH.<br />

Figure 7-6. Format of Port Mode Register 2 (PM2)<br />

Address: FF22H After reset: FFH R/W<br />

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

PM2 PM27 PM26 PM25 PM24 PM23 PM22 PM21 PM20<br />

PM2n P2n pin input/output mode selection (n = 0 to 7)<br />

0 Output mode (output buffer ON)<br />

1 Input mode (output buffer OFF)<br />

Preliminary User’s Manual U13420EJ2V0UM00<br />

141

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

Saved successfully!

Ooh no, something went wrong!