Renesas M16C/6NK Laptop User Manual


 
Rev.1.10 Jul 01, 2005 page 307 of 318
REJ09B0124-0110
M16C/6N Group (M16C/6NK, M16C/6NM) 22. Usage Precaution
Under development
This document is under development and its contents are subject to change.
22.14 Programmable I/O Ports
_______
If a low-level signal is applied to the NMI pin when the IVPCR1 bit in the TB2SC register = 1 (three-phase
_______
output forcible cutoff by input on NMI pin enabled), the P7_2 to P7_5, P8_0 and P8_1 pins go to a high-
impedance state.
Setting the SM32 bit in the S3C register to 1 causes the P9_2 pin to go to a high-impedance state.
Setting the SM42 bit in the S4C register to 1 causes the P9_6 pin to go to a high-impedance state
(1)
.
Setting the SM52 bit in the S5C register to 1 causes the P11_2 pin to go to a high-impedance state
(2)
.
Setting the SM62 bit in the S6C register to 1 causes the P11_6 pin to go to a high-impedance state
(2)
.
NOTES:
1. When using SI/O4, set the SM43 bit in the S4C register to 1 (SOUT4 output, CLK4 function) and the
port direction bit corresponding for SOUT4 pin to 0 (input mode).
2. The S5C and S6C registers are only in the 128-pin version. When using these registers, set these
registers after setting the PU37 bit in the PUR3 registger to 1 (Pins P11 to P14 are usable).
The input threshold voltage of pins differs between programmable I/O ports and peripheral functions.
Therefore, if any pin is shared by a programmable I/O port and a peripheral function and the input level at
this pin is outside the range of recommended operating conditions VIH and VIL (neither high nor low),
the input level may be determined differently depending on which sidethe programmable I/O port or the
peripheral functionis currently selected.
When changing the PD14_i bit (i = 0, 1) in the PC14 register from 0 (input port) to 1 (output port), follow
the procedures below.
Setting Procedure
(1) Set P14_i bit :MOV.B #00000001b, PC14 ; P14_i bit setting
(2) Change PD14_i bit to 1 by MOV instruction :MOV.B #00110001b, PC14 ; Change to output port