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

MC908AP32CFAE 参数 Datasheet PDF下载

MC908AP32CFAE图片预览
型号: MC908AP32CFAE
PDF下载: 下载PDF文件 查看货源
内容描述: [MC908AP32CFAE]
分类和应用:
文件页数/大小: 325 页 / 4102 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC908AP32CFAE的Datasheet PDF文件第265页浏览型号MC908AP32CFAE的Datasheet PDF文件第266页浏览型号MC908AP32CFAE的Datasheet PDF文件第267页浏览型号MC908AP32CFAE的Datasheet PDF文件第268页浏览型号MC908AP32CFAE的Datasheet PDF文件第270页浏览型号MC908AP32CFAE的Datasheet PDF文件第271页浏览型号MC908AP32CFAE的Datasheet PDF文件第272页浏览型号MC908AP32CFAE的Datasheet PDF文件第273页  
Input/Output (I/O) Ports  
PTC[7:0] — Port C Data Bits  
These read/write bits are software-programmable. Data direction of each port C pin is under the control  
of the corresponding bit in data direction register C. Reset has no effect on port C data.  
IRQ2 — IRQ2 input pin  
The PTC0/IRQ2 pin is always available as input pin to the IRQ2 module. Care must be taken to  
available unwanted interrupts when this pin is used as general purpose I/O. PTC0/IRQ2 pin has an  
internal pullup, and can be disabled by setting the PUC0ENB bit in the IRQ2 status and control register  
(INTSCR2).  
MISO, MOSI, SS, and SPSCK — SPI Data I/O, Select, and Clock Pins  
These pins are the SPI data in/out, select, and clock pins. Setting the SPE bit in the SPI control register  
(SPCR) configures PTC2/MISO, PTC3/MOSI, PTC4/SS, and PTC5/SPSCK pins for SPI function and  
overrides any control from the port I/O logic.  
SCTxD and SCRxD — IrSCI Transmit and Receive Data  
The SCTxD and SCRxD pins are IRSCI transmit and receive data pins. Setting the ENSCI bit in the  
IRSCI control register 1 (IRSCC1) configures the PTC6/SCTxD and PTC7/SCRxD pins for IRSCI  
function and overrides any control from the port I/O logic.  
16.4.2 Data Direction Register C (DDRC)  
Data direction register C determines whether each port C pin is an input or an output. Writing a logic 1 to  
a DDRC bit enables the output buffer for the corresponding port C pin; a logic 0 disables the output buffer.  
Address:  
$0006  
Bit 7  
6
DDRC6  
0
5
DDRC5  
0
4
DDRC4  
0
3
DDRC3  
0
2
DDRC2  
0
1
DDRC1  
0
Bit 0  
DDRC0  
0
Read:  
Write:  
Reset:  
DDRC7  
0
Figure 16-10. Data Direction Register C (DDRC)  
DDRC[7:0] — Data Direction Register C Bits  
These read/write bits control port C data direction. Reset clears DDRC[7:0], configuring all port C pins  
as inputs.  
1 = Corresponding port C pin configured as output  
0 = Corresponding port C pin configured as input  
NOTE  
Avoid glitches on port C pins by writing to the port C data register before  
changing data direction register C bits from 0 to 1.  
Figure 16-11 shows the port C I/O logic.  
NOTE  
For those devices packaged in a 42-pin shrink dual in-line package, PTC0  
and PTC1 are not connected. DDRC0 and DDRC1 should be set to a 1 to  
configure PTC0 and PTC1 as outputs.  
MC68HC908AP Family Data Sheet, Rev. 4  
266  
Freescale Semiconductor  
 复制成功!