dsPIC30F3012 Datasheet

  • dsPIC30F3012

  • High-Performance,16-bit Digital Signal Controllers

  • 1759.49KB

  • 210页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

dsPIC30F2011/2012/3012/3013
7.2
Configuring Analog Port Pins
7.2.1
I/O PORT WRITE/READ TIMING
The use of the ADPCFG and TRIS registers control the
operation of the A/D port pins. The port pins that are
desired as analog inputs must have their correspond-
ing TRIS bit set (input). If the TRIS bit is cleared
(output), the digital output level (V
OH
or V
OL
) will be
converted.
When reading the Port register, all pins configured as
analog input channels will read as cleared (a low level).
Pins configured as digital inputs will not convert an ana-
log input. Analog levels on any pin that is defined as a
digital input (including the ANx pins) may cause the
input buffer to consume current that exceeds the
device specifications.
One instruction cycle is required between a port
direction change or port write operation and a read
operation of the same port. Typically this instruction
would be a
NOP.
EXAMPLE 7-1:
#0xF0, W0;
;
MOV W0, TRISB;
NOP
;
btss PORTB, #7;
MOV
PORT WRITE/READ
EXAMPLE
Configure PORTB<7:4>
as inputs
and PORTB<3:0> as outputs
additional instruction cycle
bit test RB7 and skip if set
DS70139C-page 58
Preliminary
2005 Microchip Technology Inc.

dsPIC30F3012相关型号PDF文件下载

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

热门IC型号推荐

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

在线人工客服

买家服务:
卖家服务:
技术客服:

0571-85317607

网站技术支持

13606545031

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

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

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

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