PIC18F2450/4450
2006 Microchip Technology Inc.
Advance Information
DS39760A-page 107
9.4
PORTD, TRISD and LATD
Registers
PORTD is an 8-bit wide, bidirectional port. The
corresponding data direction register is TRISD. Setting
a TRISD bit (= 1) will make the corresponding PORTD
pin an input (i.e., put the corresponding output driver in
a high-impedance mode). Clearing a TRISD bit (= 0)
will make the corresponding PORTD pin an output (i.e.,
put the contents of the output latch on the selected pin).
The Data Latch register (LATD) is also memory
mapped. Read-modify-write operations on the LATD
register read and write the latched output value for
PORTD.
All pins on PORTD are implemented with Schmitt
Trigger
input
buffers.
Each
pin
is
individually
configurable as an input or output.
EXAMPLE 9-4:
INITIALIZING PORTD
Note:
PORTD is only available on 40/44-pin
devices.
Note:
On a Power-on Reset, these pins are
configured as digital inputs.
CLRF
PORTD
; Initialize PORTD by
; clearing output
; data latches
CLRF
LATD
; Alternate method
; to clear output
; data latches
MOVLW
0CFh
; Value used to
; initialize data
; direction
MOVWF
TRISD
; Set RD<3:0> as inputs
; RD<5:4> as outputs
; RD<7:6> as inputs
相关PDF资料
DSPIC30F3014T-20I/PT IC DSPIC MCU/DSP 24K 44TQFP
DSPIC30F3014T-20I/ML IC DSPIC MCU/DSP 24K 44QFN
PIC16LF819T-I/MLTSL IC PIC MCU FLASH 2KX14 28QFN
PIC16LF819T-I/SOTSL IC PIC MCU FLASH 2KX14 18SOIC
PIC18LF8410T-I/PT IC PIC MCU FLASH 8KX16 80TQFP
PIC18F2410T-I/ML IC PIC MCU FLASH 8KX16 28QFN
PIC18F2331T-E/SOG IC PIC MCU FLASH 4KX16 28SOIC
PIC18F4331T-I/ML IC MCU FLASH 4KX16 44QFN
相关代理商/技术参数
PIC16C55A-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C55 DIP28
PIC16C55A-04/P 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:20
PIC16C55A-04/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4MHz SOIC-28 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
PIC16C55A-04/SO 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C55 SOIC28
PIC16C55A-04/SP 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4MHz SPDIP-28 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
PIC16C55A-04/SS 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4 MHz SSOP-28 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
PIC16C55A-04E/P 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 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
PIC16C55A-04E/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 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