PIC17C752 Datasheet

  • PIC17C752

  • High-Performance 8-bit CMOS EPROM Microcontrollers with 10-b...

  • 3053.02KB

  • 304页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC17C75X
10.6
PORTF and DDRF Registers
PORTF is an 8-bit wide bi-directional port. The corre-
sponding data direction register is DDRF. A '1' in DDRF
con铿乬ures the corresponding port pin as an input. A '0'
in the DDRF register con铿乬ures the corresponding port
pin as an output. Reading PORTF reads the status of
the pins, whereas writing to them will write to the
respective port latch.
All eight bits of PORTF are multiplexed with 8 of the 12
channels of the 10-bit A/D converter.
Upon reset the entire Port is automatically con铿乬ured
as analog inputs, and must be con铿乬ured in software to
be a digital I/O.
Example 10-6 shows an instruction sequence to initial-
ize PORTF. The Bank Select Register (BSR) must be
selected to Bank 5 for the port to be initialized. The fol-
lowing example uses the
MOVLB
instruction to load the
BSR register for bank selection.
EXAMPLE 10-6: INITIALIZING PORTF
MOVLB
MOVLW
MOVPF
CLRF
5
0x0E
ADCON1
PORTF
;
;
;
;
;
;
;
;
;
;
;
Select Bank 5
Configure PORTF as
Digital
Initialize PORTF data
latches before setting
the data direction
register
Value used to initialize
data direction
Set RF<1:0> as inputs
RF<7:2> as outputs
MOVLW
MOVWF
0x03
DDRF
FIGURE 10-13: BLOCK DIAGRAM OF RF7:RF0
Data bus
WR PORTF
D
Q
V
DD
CK
Q
P
Data Latch
I/O pin
D
Q
Q
N
V
SS
WR DDRF
CK
DDRF Latch
ST
input
buffer
Q
D
EN
EN
RD DDRF
RD PORT
PCFG3:PCFG0
V
AN
To other pads
CHS3:CHS0
To other pads
DS30264A-page 78
Preliminary
1997 Microchip Technology Inc.

PIC17C752相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!