CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
100
(2) Registers
(a) Port register 2 (P2)
Port register 2 (P2) is an 8-bit register that controls reading the pin level and writing the output level. This
register can be read or written in 8-bit or 1-bit units.
0
Outputs 0.
Outputs 1.
P2n
0
1
Controls output data (in output mode) (n = 0 to 2)
P2
0
P22
P21
P20
After reset: Undefined
R/W
Address: FFFFF404H
Remarks 1. In input mode:
When port 2 (P2) is read, the pin level at that time is read. When written, the
data written to P2 is written. The input pin is not affected.
In output mode: When port 2 (P2) is read, the value of P2 is read. When a value is written to P2,
it is immediately output.
2. After reset, an undefined value (pin input level) is read from P2 in the input mode. When P2 is
read in the output mode, 00H (value of the output latch) is read.
(b) Port mode register 2 (PM2)
This is an 8-bit register that specifies the input or output mode.
This register can be read or written in 8-bit or 1-bit units.
1
Output mode
Input mode
PM2n
0
1
Controls input/output mode (n = 0 to 2)
PM2
1
PM22
PM21
PM20
After reset: FFH
R/W
Address: FFFFF424H
相关PDF资料
PIC16F1933-I/SO IC MCU 8BIT FLASH 28SOIC
PIC16C621A-04/P IC MCU OTP 1KX14 COMP 18DIP
PIC16C54C-20/SO IC MCU OTP 512X12 18SOIC
PIC18F23K20-I/SO IC PIC MCU FLASH 4KX16 28-SOIC
PIC16C54C-04/SS IC MCU OTP 512X12 20SSOP
PIC16F1828-I/P IC PIC MCU 8BIT 14KB FLSH 20PDIP
PIC16LF1828-I/P IC PIC MCU 8BIT 14KB FLSH 20PDIP
PIC24F08KL200-I/ST IC MCU 16BIT 8KB FLASH 14-TSSOP
相关代理商/技术参数
PIC24F04KL101-I/SS 功能描述:16位微控制器 - MCU 4KB FLASH 512B RAM RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F04KL101T-I/MQ 功能描述:16位微控制器 - MCU 4KB FLASH 512B RAM 18 I/O 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F04KL101T-I/SO 功能描述:16位微控制器 - MCU 4KB FLASH 512B RAM 18 I/O 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F04KL101T-I/SS 功能描述:16位微控制器 - MCU 4KB FLASH 512B RAM 18 I/O 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KA101 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Flash Programming Specifications
PIC24F08KA101-E/MQ 功能描述:16位微控制器 - MCU 8KB15KB RAM 512B EE SERIAL EE IND RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KA101-E/P 功能描述:16位微控制器 - MCU 8KB15KB RAM 512B EE SERIAL EE IND RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KA101-E/SO 功能描述:16位微控制器 - MCU 8KB15KB RAM 512B EE SERIAL EE IND RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT