RL78/G13
CHAPTER 4 PORT FUNCTIONS
R01UH0146EJ0100 Rev.1.00
249
Sep 22, 2011
4.2.16 Port 15
Port 15 is an I/O port with an output latch. Port 15 can be set to the input mode or output mode in 1-bit units using port
mode register 15 (PM15).
This port can also be used for A/D converter analog input.
To use P150/ANI8 to P156/ANI4 as digital input pins, set them in the digital I/O mode by using the A/D port
configuration register (ADPC) and in the input mode by using the PM15 register. Use these pins starting from the upper
bit.
To use 150/ANI8 to P156/ANI4 as digital output pins, set them in the digital I/O mode by using the ADPC register and
in the output mode by using the PM15 register.
To use 150/ANI8 to P156/ANI4 as analog input pins, set them in the analog input mode by using the A/D port
configuration register (ADPC) and in the input mode by using the PM15 register. Use these pins starting from the lower bit.
Table 4-19. Settings of Registers When Using Port 15
Pin Name
Name
I/O
PM15
×
ADPC
Alternate Function Setting
Remark
Input
1
P15n
Output
0
01H to
n+9H
To use P15n as a port, use these
pins from a higher bit.
Remarks 1.
×:
don’t care
PM15
×:
Port mode register 15
ADPC:
A/D port configuration register
2.
n = 0 to 6
Table 4-20. Setting Functions of P150/ANI8 to P156/ANI14 Pins
ADPC Register
PM15 Register
ADS Register
P150/ANI8 to P156/ANI14 Pins
Input mode
Digital input
Digital I/O selection
Output mode
Digital output
Selects ANI.
Analog input (to be converted)
Input mode
Does not select ANI.
Analog input (not to be converted)
Selects ANI.
Analog input selection
Output mode
Does not select ANI.
Setting prohibited
All P150/ANI8 to P156/ANI14 are set in the analog input mode when the reset signal is generated.
Figure 4-64 shows a block diagram of port 15.
<R>
相关PDF资料
DSPIC30F3013-30I/SP IC DSPIC MCU/DSP 24K 28DIP
DSPIC33FJ32MC202-E/SO IC DSPIC MCU/DSP 32K 28SOIC
52745-0896 CONN FFC 8POS .5MM R/A ZIF SMD
52745-0496 CONN FFC 4POS .5MM R/A ZIF SMD
TS87C58X2-LCE IC MCU 8BIT 32K OTP 30MHZ 44VQFP
TS87C54X2-VCE IC MCU 8BIT 16K OTP 40MHZ 44VQFP
TS87C54X2-VIE IC MCU 8BIT 16K OTP 40MHZ 44VQFP
52746-1670 CONN FFC 16POS .5MM R/A ZIF SMD
相关代理商/技术参数
PIC18LF6390T-I/PT 功能描述:8位微控制器 -MCU 8 KB FL 768 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6393-I/PT 功能描述:8位微控制器 -MCU 128 Segmnt LCD DRVR 12B ADC 8KB 768BRAM RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6393T-I/PT 功能描述:8位微控制器 -MCU 128 Segmnt LCD DRVR 12B ADC 8KB 768BRAM RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6410-I/PT 功能描述:8位微控制器 -MCU 16kBF 768RM 68 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6410T-I/PT 功能描述:8位微控制器 -MCU 16 KB FL 768 RAM 68 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6490-I/PT 功能描述:8位微控制器 -MCU 16kBF 768RM 68 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6490T-I/PT 功能描述:8位微控制器 -MCU 16 KB FL 768 RAM 68 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF6493-I/PT 功能描述:8位微控制器 -MCU 128 Segmnt LCD DRVR 12B ADC 16KB 768BRAM RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT