⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lpc2300pincfg.h

📁 LPC2300系列的ARM7单片机上FAT文件系统源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define    P1_25_MAT11       0x03                  //定时器1匹配输出,通道1

#define    P1_25_FNUC        P1_25_GPIO

//P1.26
#define    P1_26_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P1_26_PWM16       0x02                  //PWM-1输出,通道6
#define    P1_26_CAP00       0x03                  //定时器0捕获输入,通道0

#define    P1_26_FNUC        P1_26_PWM16

//P1.27
#define    P1_27_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
//...      Reserved          0x02
#define    P1_27_CAP01       0x03                  //定时器0捕获输入,通道1

#define    P1_27_FNUC        P1_27_GPIO

//P1.28
#define    P1_28_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P1_28_PCAP10      0x02                  //PWM-1捕获输入,通道0
#define    P1_28_MAT00       0x03                  //定时器0匹配输出,通道0

#define    P1_28_FNUC        P1_28_GPIO

//P1.29
#define    P1_29_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P1_29_PCAP11      0x02                  //PWM-1捕获输入,通道1
#define    P1_29_MAT01       0x03                  //定时器0匹配输出,通道1

#define    P1_29_FNUC        P1_29_GPIO

//P1.31
#define    P1_31_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P1_31_SCK1        0x02                  //SSP-1时钟线
#define    P1_31_AD05        (0x03U)               //ADC-0输入,通道5

#define    P1_31_FNUC        P1_31_AD05

/*********************************************************************************************************
                                            P2
*********************************************************************************************************/
//P2.00
#define    P2_00_GPIO        0x00                  //GPIO
#define    P2_00_PWM11       0x01                  //PWM-1,通道1
#define    P2_00_TXD1        0x02                  //UART1数据发送引脚
#define    P2_00_TRACECLK    0x03                  //跟踪时钟

#define    P2_00_FNUC        P2_00_TXD1

//P2.01
#define    P2_01_GPIO        0x00                  //GPIO
#define    P2_01_PWM12       0x01                  //PWM-1,通道2
#define    P2_01_RXD1        0x02                  //UART1数据接收引脚
#define    P2_01_PIPESTAT0   0x03                  //流水线状态,位0

#define    P2_01_FNUC        P2_01_RXD1

//P2.02
#define    P2_02_GPIO        0x00                  //GPIO
#define    P2_02_PWM13       0x01                  //PWM-1,通道3
#define    P2_02_CTS1        0x02                  //UART1清零发送线
#define    P2_02_PIPESTAT1   0x03                  //流水线状态,位1

#define    P2_02_FNUC        P2_02_CTS1

//P2.03
#define    P2_03_GPIO        0x00                  //GPIO
#define    P2_03_PWM14       0x01                  //PWM-1,通道4
#define    P2_03_DCD1        0x02                  //UART1数据载波检测线
#define    P2_03_PIPESTAT2   0x03                  //流水线状态,位2

#define    P2_03_FNUC        P2_03_DCD1

//P2.04
#define    P2_04_GPIO        0x00                  //GPIO
#define    P2_04_PWM15       0x01                  //PWM-1,通道5
#define    P2_04_DSR1        0x02                  //UART1数据设置就绪线
#define    P2_04_TRACESYNC   0x03                  //跟踪同步

#define    P2_04_FNUC        P2_04_DSR1

//P2.05
#define    P2_05_GPIO        0x00                  //GPIO
#define    P2_05_PWM16       0x01                  //PWM-1,通道6
#define    P2_05_DTR1        0x02                  //UART1数据终端就绪线
#define    P2_05_TRACEPKT0   0x03                  //跟踪包,位0

#define    P2_05_FNUC        P2_05_DTR1

//P2.06
#define    P2_06_GPIO        0x00                  //GPIO
#define    P2_06_PCAP10      0x01                  //PWM-1捕获输入,通道0
#define    P2_06_RI1         0x02                  //UART1振铃输入
#define    P2_06_TRACEPKT1   0x03                  //跟踪包,位1

#define    P2_06_FNUC        P2_06_RI1

//P2.07
#define    P2_07_GPIO        0x00                  //GPIO
#define    P2_07_RD2         0x01                  //CAN-2接收线
#define    P2_07_RTS1        0x02                  //UART1请求发送输出
#define    P2_07_TRACEPKT2   0x03                  //跟踪包,位2

#define    P2_07_FNUC        P2_07_RTS1

//P2.08
#define    P2_08_GPIO        0x00                  //GPIO
#define    P2_08_TD2         0x01                  //CAN-2发送线
#define    P2_08_TXD2        0x02                  //UART2发送引脚
#define    P2_08_TRACEPKT3   0x03                  //跟踪包,位3

#define    P2_08_FNUC        P2_08_GPIO

//P2.09
#define    P2_09_GPIO        0x00                  //GPIO
#define    P2_09_U1CONNECT   0x01                  //USB1软连接控制
#define    P2_09_RXD2        0x02                  //UART2接收引脚
#define    P2_09_EXTIN0      0x03                  //外部触发器输入

#define    P2_09_FNUC        P2_09_GPIO

//P2.10(ISP)
#define    P2_10_GPIO        0x00                  //GPIO
#define    P2_10_EINT0       0x01                  //外部中断0输入
//...      Reserved          0x02                  //保留
//...      Reserved          0x03

#define    P2_10_FNUC        P2_10_GPIO

//P2.11
#define    P2_11_GPIO        0x00                  //GPIO
#define    P2_11_EINT1       0x01                  //外部中断1输入
#define    P2_11_MCIDAT1     0x02                  //SD、MMC接口数据线1
#define    P2_11_I2STX_CLK   0x03                  //I2S发送时钟SCK,由主机驱动,从机接收

#define    P2_11_FNUC        P2_11_EINT1

//P2.12
#define    P2_12_GPIO        0x00                  //GPIO
#define    P2_12_EINT2       0x01                  //外部中断2输入
#define    P2_12_MCIDAT2     0x02                  //SD、MMC接口数据线2
#define    P2_12_I2STX_WS    0x03                  //I2S发送字选择WS,由主机驱动,从机接收

#define    P2_12_FNUC        P2_12_EINT2

//P2.13
#define    P2_13_GPIO        0x00                  //GPIO
#define    P2_13_EINT3       0x01
#define    P2_13_MCIDAT3     0x02                  //SD、MMC接口数据线3
#define    P2_13_I2STX_SDA   0x03                  //I2S发送数据SD,由主机驱动,从机接收

#define    P2_13_FNUC        P2_13_EINT3

/*********************************************************************************************************
                                            P3
*********************************************************************************************************/
//P3.23
#define    P3_23_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P3_23_CAP00       0x02                  //定时器0捕获输入,通道0
#define    P3_23_PCAP10      0x03                  //PWM-1捕获输入,通道0

#define    P3_23_FNUC        P3_23_GPIO

//P3.24
#define    P3_24_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P3_24_CAP01       0x02                  //定时器0捕获输入,通道1
#define    P3_24_PWM11       0x03                  //PWM-1输出,通道1

#define    P3_24_FNUC        P3_24_GPIO

//P3.25
#define    P3_25_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P3_25_MAT00       0x02                  //定时器0匹配输出,通道0
#define    P3_25_PWM12       0x03                  //PWM-1输出,通道2

#define    P3_25_FNUC        P3_25_GPIO

//P3.26
#define    P3_26_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P3_26_MAT01       0x02                  //定时器0匹配输出,通道1
#define    P3_26_PWM13       0x03                  //PWM-1输出,通道3

#define    P3_26_FNUC        P3_26_GPIO


/*********************************************************************************************************
                                            P4
*********************************************************************************************************/
//P4.28
#define    P4_28_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P4_28_MAT20       0x02                  //定时器2匹配输出,通道0
#define    P4_28_TXD3        0x03                  //UART3发送引脚

#define    P4_28_FNUC        P4_28_GPIO

//P4.29
#define    P4_29_GPIO        0x00                  //GPIO
//...      Reserved          0x01                  //保留
#define    P4_29_MAT21       0x02                  //定时器2匹配输出,通道1
#define    P4_29_RXD3        0x03                  //UART3接收引脚

#define    P4_29_FNUC        P4_29_GPIO

/*********************************************************************************************************
                                            引脚内部上下拉电阻配置
*********************************************************************************************************/
#define    PIN_PULL_UP       0x00                  //引脚内部上拉
#define    PIN_NO_PULL       0x02                  //引脚既不上拉,也不下拉
#define    PIN_PULL_DOWN     0x03                  //引脚内部下拉

//P0
#define    P0_00_MODE        PIN_PULL_UP
#define    P0_01_MODE        PIN_PULL_UP
#define    P0_02_MODE        PIN_PULL_UP
#define    P0_03_MODE        PIN_PULL_UP
#define    P0_04_MODE        PIN_PULL_UP
#define    P0_05_MODE        PIN_PULL_UP
#define    P0_06_MODE        PIN_PULL_UP
#define    P0_07_MODE        PIN_PULL_UP
#define    P0_08_MODE        PIN_PULL_UP
#define    P0_09_MODE        PIN_PULL_UP
#define    P0_10_MODE        PIN_PULL_UP
#define    P0_11_MODE        PIN_PULL_UP
#define    P0_12_MODE        PIN_PULL_UP
#define    P0_13_MODE        PIN_PULL_UP
#define    P0_14_MODE        PIN_PULL_UP
#define    P0_15_MODE        PIN_PULL_UP

#define    P0_16_MODE        PIN_PULL_UP
#define    P0_17_MODE        PIN_PULL_UP
#define    P0_18_MODE        PIN_PULL_UP
#define    P0_19_MODE        PIN_PULL_UP
#define    P0_20_MODE        PIN_PULL_UP
#define    P0_21_MODE        PIN_PULL_UP
#define    P0_22_MODE        PIN_PULL_UP
#define    P0_23_MODE        PIN_PULL_UP
#define    P0_24_MODE        PIN_PULL_UP
#define    P0_25_MODE        PIN_PULL_UP
#define    P0_26_MODE        PIN_PULL_UP

#define    P0_31_MODE        PIN_PULL_UP

//P1
#define    P1_18_MODE        PIN_PULL_UP
#define    P1_19_MODE        PIN_PULL_UP
#define    P1_20_MODE        PIN_PULL_UP
#define    P1_21_MODE        PIN_PULL_UP
#define    P1_22_MODE        PIN_PULL_UP
#define    P1_23_MODE        PIN_PULL_UP
#define    P1_24_MODE        PIN_PULL_UP
#define    P1_25_MODE        PIN_PULL_UP
#define    P1_26_MODE        PIN_PULL_UP
#define    P1_27_MODE        PIN_PULL_UP     
#define    P1_28_MODE        PIN_PULL_UP     
#define    P1_29_MODE        PIN_PULL_UP     
#define    P1_30_MODE        PIN_PULL_UP     
#define    P1_31_MODE        PIN_PULL_UP     

//P2
#define    P2_00_MODE        PIN_PULL_UP
#define    P2_01_MODE        PIN_PULL_UP
#define    P2_02_MODE        PIN_PULL_UP
#define    P2_03_MODE        PIN_PULL_UP
#define    P2_04_MODE        PIN_PULL_UP
#define    P2_05_MODE        PIN_PULL_UP
#define    P2_06_MODE        PIN_PULL_UP
#define    P2_07_MODE        PIN_PULL_UP
#define    P2_08_MODE        PIN_PULL_UP
#define    P2_09_MODE        PIN_PULL_UP
#define    P2_10_MODE        PIN_PULL_UP
#define    P2_11_MODE        PIN_PULL_UP
#define    P2_12_MODE        PIN_PULL_UP
#define    P2_13_MODE        PIN_PULL_UP

//P3
#define    P3_23_MODE        PIN_PULL_UP
#define    P3_24_MODE        PIN_PULL_UP
#define    P3_25_MODE        PIN_PULL_UP
#define    P3_26_MODE        PIN_PULL_UP
#define    P3_27_MODE        PIN_PULL_UP    

//P4
#define    P4_28_MODE        PIN_PULL_UP     
#define    P4_29_MODE        PIN_PULL_UP     

/*********************************************************************************************************
                                            ETM 仿真接口
*********************************************************************************************************/
#define    ETM_DISABLE       0x00                                       /*  禁止ETM仿真接口             */

/*********************************************************************************************************
** 函数名称: void PinInit(void)
** 函数功能: 引脚初始化
** 入口参数: 无
** 返 回 值: 无
** 说    明: 函数将初始化所有的引脚配置,完成引脚连接、上下拉电阻设置
*********************************************************************************************************/
extern void PinInit(void);

#endif                                                                  /*  __LPC2300PINCFG_H           */

/*********************************************************************************************************
    End Of File
*********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -