资源简介
CS5532的评估版及其源程序,很有价值
代码片段和文件信息
//This config is for CDB5550 and CDB5463 printed boards
#include // Register definition file.
void config(void)
{
// NOTE: The crossbar register should be configured before any
// of the digital peripherals are enabled.
XBR0 = 0x07; // Crossbar Register 1
XBR1 = 0x78; // Crossbar Register 2
P0MDOUT = 0x19; // Output configuration for P0
P1MDOUT = 0x1B; // Output configuration for P1
P2MDOUT = 0x01; // Output configuration for P2
P3MDOUT = 0x00; // Output configuration for P3
P0MDIN = 0xFF; // Input configuration for P0
P1MDIN = 0xFF; // Input configuration for P1
P2MDIN = 0xFF; // Input configuration for P2
P3MDIN = 0xFF; // Input configuration for P3
P0SKIP = 0xCF; // Port 0 Crossbar Skip Register
P1SKIP = 0x81; // Port 1 Crossbar Skip Register
P2SKIP = 0x07; // Port 2 Crossbar Skip Register
// Port 0
// P0.0 = Skipped CS\ (Push-Pull Output)(Digital)
// P0.1 = Skipped INT\ (Open-Drain Output/Input)(Digital)
// P0.2 = Skipped XIN (Open-Drain Output/Input)(Digital)
// P0.3 = Skipped XOUT (Push-Pull Output)(Digital)
// P0.4 = UART0 TX (Push-Pull Output)(Digital)
// P0.5 = UART0 RX (Open-Drain Output/Input)(Digital)
// P0.6 = Skipped convst (Open-Drain Output/Input)(Digital)
// P0.7 = Skipped vref (Open-Drain Output/Input)(Digital)
// Port 1
// P1.0 = Skipped RESET\ (Push-Pull Output)(Digital)
// P1.1 = SPI Bus SCK SPI (Push-Pull Output)(Digital)
// P1.2 = SPI Bus MISO (Open-Drain Output/Input)(Digital)
// P1.3 = SPI Bus MOSI (Push-Pull Output)(Digital)
// P1.4 = SPI Bus NSS SPI (Push-Pull Output)(Digital)
// P1.5 = SMBus SDA I2C (Open-Drain Output/Input)(Digital)
// P1.6 = SMBus SCL I2C (Open-Drain Output/Input)(Digital)
// P1.7 = Skipped SPARE (Open-Drain Output/Input)(Digital)
// Port 2
// P2.0 = Skipped LED (Push-Pull Output)(Digital)
// P2.1 = Skipped SPARE (Open-Drain Output/Input)(Digital)
// P2.2 = Skipped SPARE (Open-Drain Output/Input)(Digital)
// P2.3 = PCA ECI FOUT (Open-Drain Output/Input)(Digital)
// P2.4 = T0 EOUT (Open-Drain Output/Input)(Digital)
// P2.5 = T1 EDIR (Open-Drain Output/Input)(Digital)
// P2.6 = GP I/O SPARE (Open-Drain Output/Input)(Digital)
// P2.7 = GP I/O SPARE (Open-Drain Output/Input)(Digital)
// Port 3
// P3.0 = GP I/O PROGRAM (Open-Drain Output/Input)(Digital)
//----------------------------------------------------------------
// Comparator Register Configuration NOT SET UP
//----------------------------------------------------------------
CPT0MX = 0x00; // Comparator 0 MUX Selection Register
CPT0MD = 0x02; // Comparator 0 Mode Selection Register
CPT0CN = 0x00; // Comparator 0 Control Register
CPT1MX = 0x00; // Comparator 1 MUX Selection Register
CPT1MD = 0x02; // C
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17835 2006-02-16 08:14 USB_MAIN.c
文件 8539 2006-02-16 08:19 best.c
文件 368 2006-02-16 13:34 readme.txt
文件 881 2006-02-16 08:19 USB_API.h
评论
共有 条评论