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

C8051F502-IM 参数 Datasheet PDF下载

C8051F502-IM图片预览
型号: C8051F502-IM
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用: 微控制器和处理器外围集成电路PC时钟
文件页数/大小: 312 页 / 2813 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F502-IM的Datasheet PDF文件第174页浏览型号C8051F502-IM的Datasheet PDF文件第175页浏览型号C8051F502-IM的Datasheet PDF文件第176页浏览型号C8051F502-IM的Datasheet PDF文件第177页浏览型号C8051F502-IM的Datasheet PDF文件第179页浏览型号C8051F502-IM的Datasheet PDF文件第180页浏览型号C8051F502-IM的Datasheet PDF文件第181页浏览型号C8051F502-IM的Datasheet PDF文件第182页  
C8051F50x-F51x  
20.1. Port I/O Modes of Operation  
Port pins P0.0–P4.7 use the Port I/O cell shown in Figure 20.2. Each Port I/O cell can be configured by  
software for analog I/O or digital I/O using the PnMDIN registers. On reset, all Port I/O cells default to a  
high impedance state with weak pull-ups enabled until the Crossbar is enabled (XBARE = 1).  
20.1.1. Port Pins Configured for Analog I/O  
Any pins to be used as Comparator or ADC inputs, external oscillator inputs, or VREF should be config-  
ured for analog I/O (PnMDIN.n = 0). When a pin is configured for analog I/O, its weak pullup, digital driver,  
and digital receiver are disabled. Port pins configured for analog I/O will always read back a value of 0.  
Configuring pins as analog I/O saves power and isolates the Port pin from digital interference. Port pins  
configured as digital inputs may still be used by analog peripherals; however, this practice is not recom-  
mended and may result in measurement errors.  
20.1.2. Port Pins Configured For Digital I/O  
Any pins to be used by digital peripherals (UART, SPI, SMBus, etc.), external digital event capture func-  
tions, or as GPIO should be configured as digital I/O (PnMDIN.n = 1). For digital I/O pins, one of two output  
modes (push-pull or open-drain) must be selected using the PnMDOUT registers.  
Push-pull outputs (PnMDOUT.n = 1) drive the Port pad to the VIO or GND supply rails based on the output  
logic value of the Port pin. Open-drain outputs have the high side driver disabled; therefore, they only drive  
the Port pad to GND when the output logic value is 0 and become high impedance inputs (both high low  
drivers turned off) when the output logic value is 1.  
When a digital I/O cell is placed in the high impedance state, a weak pull-up transistor pulls the Port pad to  
the VIO supply voltage to ensure the digital input is at a defined logic state. Weak pull-ups are disabled  
when the I/O cell is driven to GND to minimize power consumption and may be globally disabled by setting  
WEAKPUD to 1. The user should ensure that digital I/O are always internally or externally pulled or driven  
to a valid logic state to minimize power consumption. Port pins configured for digital I/O always read back  
the logic state of the Port pad, regardless of the output logic value of the Port pin.  
WEAKPUD  
(Weak Pull-Up Disable)  
PxMDOUT.x  
(1 for push-pull)  
(0 for open-drain)  
VIO  
VIO  
XBARE  
(Crossbar  
Enable)  
(WEAK)  
PORT  
PAD  
Px.x – Output  
Logic Value  
(Port Latch or  
Crossbar)  
PxMDIN.x  
(1 for digital)  
(0 for analog)  
GND  
To/From Analog  
Peripheral  
Px.x – Input Logic Value  
(Reads 0 when pin is configured as an analog I/O)  
Figure 20.2. Port I/O Cell Block Diagram  
178  
Rev. 1.1  
 复制成功!