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

C8051F336 参数 Datasheet PDF下载

C8051F336图片预览
型号: C8051F336
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用: 微控制器和处理器外围集成电路
文件页数/大小: 234 页 / 3348 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F336的Datasheet PDF文件第134页浏览型号C8051F336的Datasheet PDF文件第135页浏览型号C8051F336的Datasheet PDF文件第136页浏览型号C8051F336的Datasheet PDF文件第137页浏览型号C8051F336的Datasheet PDF文件第139页浏览型号C8051F336的Datasheet PDF文件第140页浏览型号C8051F336的Datasheet PDF文件第141页浏览型号C8051F336的Datasheet PDF文件第142页  
C8051F336/7/8/9  
20.6. Special Function Registers for Accessing and Configuring Port I/O  
All Port I/O are accessed through corresponding special function registers (SFRs) that are both byte  
addressable and bit addressable. When writing to a Port, the value written to the SFR is latched to  
maintain the output data value at each pin. When reading, the logic levels of the Port's input pins are  
returned regardless of the XBRn settings (i.e., even when the pin is assigned to another signal by the  
Crossbar, the Port register can always read its corresponding Port I/O pin). The exception to this is the  
execution of the read-modify-write instructions that target a Port Latch register as the destination. The  
read-modify-write instructions when operating on a Port SFR are the following: ANL, ORL, XRL, JBC, CPL,  
INC, DEC, DJNZ and MOV, CLR or SETB, when the destination is an individual bit in a Port SFR. For  
these instructions, the value of the latch register (not the pin) is read, modified, and written back to the  
SFR.  
Each Port has a corresponding PnSKIP register which allows its individual Port pins to be assigned to  
digital functions or skipped by the Crossbar. All Port pins used for analog functions, GPIO, or dedicated  
digital functions such as the EMIF should have their PnSKIP bit set to ‘1’.  
The Port input mode of the I/O pins is defined using the Port Input Mode registers (PnMDIN). Each Port  
cell can be configured for analog or digital I/O. This selection is required even for the digital resources  
selected in the XBRn registers, and is not automatic. The only exception to this is P2.4, which can only be  
used for digital I/O.  
The output driver characteristics of the I/O pins are defined using the Port Output Mode registers (PnMD-  
OUT). Each Port Output driver can be configured as either open drain or push-pull. This selection is  
required even for the digital resources selected in the XBRn registers, and is not automatic. The only  
exception to this is the SMBus (SDA, SCL) pins, which are configured as open-drain regardless of the  
PnMDOUT settings.  
SFR Definition 20.7. P0: Port 0  
Bit  
7
6
5
4
3
2
1
0
Name  
Type  
Reset  
P0[7:0]  
R/W  
1
1
1
1
1
1
1
1
SFR Address = 0x80  
Bit  
Name  
P0[7:0] Port 0 Data.  
Sets the Port latch logic  
Description  
Write  
0: Set output latch to logic 0: P0.n Port pin is logic  
LOW. LOW.  
1: Set output latch to logic 1: P0.n Port pin is logic  
Read  
7:0  
value or reads the Port pin  
logic state in Port cells con-  
figured for digital I/O.  
HIGH.  
HIGH.  
138  
Rev. 0.2  
 复制成功!