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

AN2131QC 参数 Datasheet PDF下载

AN2131QC图片预览
型号: AN2131QC
PDF下载: 下载PDF文件 查看货源
内容描述: 在EZ - USBTM集成电路 [The EZ-USBTM Integrated Circuit]
分类和应用:
文件页数/大小: 334 页 / 1468 K
品牌: CYPRESS [ CYPRESS ]
 浏览型号AN2131QC的Datasheet PDF文件第59页浏览型号AN2131QC的Datasheet PDF文件第60页浏览型号AN2131QC的Datasheet PDF文件第61页浏览型号AN2131QC的Datasheet PDF文件第62页浏览型号AN2131QC的Datasheet PDF文件第64页浏览型号AN2131QC的Datasheet PDF文件第65页浏览型号AN2131QC的Datasheet PDF文件第66页浏览型号AN2131QC的Datasheet PDF文件第67页  
4.2  
IO Ports  
OE  
OUT  
Pin  
reg  
PINS  
Figure 4-1. EZ-USB Input/Output Pin  
The EZ-USB family implements its IO ports using memory-mapped registers. This is in  
contrast to a standard, which uses SFR bits for input/output.  
Figure 4-1 shows the basic structure of an EZ-USB IO pin. Twenty-four IO pins are  
grouped into three 8-bit ports named PORTA, PORTB, and PORTC. The AN2131Q has  
all three ports, while the AN2131S has PORTB, PORTC, and two PORTA bits. The 8051  
accesses IO pins using the three control bits shown in Figure 4-1: OE, OUT, and PINS.  
The OUT bit writes output data to a register, the OE bit turns on the output buffer, and the  
PINS bit indicates the state of the pin.  
To configure a pin as an input, the 8051 sets OE=0 to turn off the output buffer. To config-  
ure a pin as an output, the 8051 sets OE=1 to turn on the output buffer, and writes data to  
the OUT register. The PINS bit reflects the actual pin value regardless of the value of OE.  
A fourth control bit (in PORTACFG, PORTBCFG, PORTCCFG registers) determines  
whether a port pin is general-purpose Input/Output (GPIO) as shown in Figure 4-1, or  
connected to an alternate 8051 or EZ-USB function. Table 4-1 lists the alternate functions  
available on the IO pins. Figure 4-1 shows the registers and bits associated with the IO  
ports.  
Page 4-2  
Chapter 4. EZ-USB CPU  
EZ-USB TRM v1.9  
 
 复制成功!