欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F4431-I/P 参数 Datasheet PDF下载

PIC18F4431-I/P图片预览
型号: PIC18F4431-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器采用纳瓦技术,高性能PWM和A / D [28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 3127 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4431-I/P的Datasheet PDF文件第118页浏览型号PIC18F4431-I/P的Datasheet PDF文件第119页浏览型号PIC18F4431-I/P的Datasheet PDF文件第120页浏览型号PIC18F4431-I/P的Datasheet PDF文件第121页浏览型号PIC18F4431-I/P的Datasheet PDF文件第123页浏览型号PIC18F4431-I/P的Datasheet PDF文件第124页浏览型号PIC18F4431-I/P的Datasheet PDF文件第125页浏览型号PIC18F4431-I/P的Datasheet PDF文件第126页  
PIC18F2331/2431/4331/4431  
PORTD includes PWM<7:6> complementary fourth  
11.4 PORTD, TRISD and LATD  
Registers  
channel PWM outputs. PWM4 is the complementary  
output of PWM5 (the third channel), which is multi-  
plexed with the RB5 pin. This output can be used as the  
alternate output using the PWM4MX Configuration bit  
in CONFIG3H when the Single-Supply Programming  
pin (PGM) is used on RB5.  
Note: PORTD is only available on PIC18F4331/  
4431 devices.  
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).  
RD1, RD2 and RD3 can be used as the alternate out-  
put for SDO, SDI/SDA and SCK/SCL using the SSPMX  
Configuration bit in CONFIG3H.  
RD4 an be used as the alternate output for FLTA using  
the FLTAMX Configuration bit in CONFIG3H.  
EXAMPLE 11-4:  
INITIALIZING PORTD  
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.  
CLRF  
PORTD  
; Initialize PORTD by  
; clearing output  
; data latches  
; Alternate method  
; to clear output  
; data latches  
; Value used to  
; initialize data  
; direction  
CLRF  
LATD  
All pins on PORTD are implemented with Schmitt  
Trigger input buffers. Each pin is individually  
configurable as an input or output.  
MOVLW  
MOVWF  
0xCF  
Note: On a Power-on Reset, these pins are  
configured as digital inputs.  
TRISD  
; Set RD<3:0> as inputs  
; RD<5:4> as outputs  
; RD<7:6> as inputs  
DS39616D-page 122  
2010 Microchip Technology Inc.  
 复制成功!