04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

(26) Port mode registers 0, 6, 7, 13 (PM0, PM6, PM7, PM13)<br />

The PM0, PM6, PM7 and PM13 registers are used to set ports 0, 6, 7 and 13 to input or output in 1-bit units.<br />

When using the P00/CTxD0 or P71/CTxD0 pins for serial data output, clear the PM00 or PM71 bits to “0”, and set<br />

the output latches of P00 or P71 to “1”. When using the P62/CTxD1 or P134/CTxD1 pins for serial data output,<br />

clear the PM62 or PM134 bits to “0”, and set the output latches of P62 or P134 to “1”.<br />

When using the P01/CRxD0 or P70/CRxD0 pins for serial data input, set the PM01 or PM70 bits to “1”. At this time,<br />

the output latches of P01 or P70 may be “0” or “1”. When using the P63/CRxD1 or P135/CRxD1 pins for serial<br />

data input, set the PM63 or PM135 bits to “1”. At this time, the output latches of P63 or P135 may be “0” or “1”.<br />

The PM1, PM6, PM7, PM13 registers can be set by using a 1-bit or 8-bit memory manipulation instruction.<br />

Reset signal generation sets these registers to FFH.<br />

Caution The serial data output and serial data input are provided at two ports per channel. Select either port by<br />

using the corresponding register.<br />

Remark The pins mounted depend on the product. See 1.4 Pin Configuration and 2.1 Pin Function List.<br />

Figure 14-52. Format of Port Mode Registers 0, 6, 7, 13 (PM0, PM6, PM7, PM13)<br />

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

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

PM0 PM07 PM06 PM05 PM04 PM03 PM02 PM01 PM00<br />

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

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

PM6 1 PM66 PM65 PM64 PM63 PM62 PM61 PM60<br />

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

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

PM7 1 1 PM75 PM74 PM73 PM72 PM71 PM70<br />

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

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

PM13 1 PM136 PM135 PM134 PM133 PM132 PM131 0<br />

PMmn PMmn pin I/O mode selection (m = 1, 6, 7, 13 ; n = 0 to 7)<br />

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

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

R01UH0317EJ0004 Rev. 0.04 881<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!