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资料
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
PIC16F883-I/SO IC PIC MCU FLASH 4KX14 28SOIC
PIC16F690-I/SS IC PIC MCU FLASH 4KX14 20SSOP
PIC16F723-E/SO IC PIC MCU FLASH 4KX14 28-SOIC
PIC18F24J10-I/SO IC PIC MCU FLASH 8KX16 28SOIC
PIC16F1933-I/SS IC MCU 8BIT FLASH 28SSOP
相关代理商/技术参数
PIC16C54C-04E/P 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz ExtTemp PDIP18 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
PIC16C54C-04E/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz Ext Temp SOIC18 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
PIC16C54C-04E/SS 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz Ext Temp SSOP20 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
PIC16C54C-04I/P 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz IndTemp PDIP18 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
PIC16C54C-04I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C54 DIP18
PIC16C54C-04I/P 制造商:Microchip Technology Inc 功能描述:18 Pin 0.75 KB OTP 25 RAM 12 I/O
PIC16C54C-04I/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz IndTemp SOIC18 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
PIC16C54C-04I/SO 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C54 SOIC18