📄 pinconfig.h
字号:
/***********************************************Copyright (c)*********************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
** http://www.zlgmcu.com
**
**--------------File Info---------------------------------------------------------------------------------
** File name: pinconfig.h
** Last modified Date: 2007-11-14
** Last Version: 1.1
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Created by: Lixiaocheng
** Created date: 2007-11-14
** Version: 1.1
** Descriptions: 该管脚链接配置文件仅适用于213x和214x系列芯片,其他系列芯片需参考手册进行适当修改
**
**--------------------------------------------------------------------------------------------------------
** Modified by: liuzhaofu
** Modified Date: 2008-03-31
** Version:
** Descriptions: LPC2103的引脚配置文件,仅适用于LPC2103
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified Date:
** Version:
** Descriptions:
**
*********************************************************************************************************/
#ifndef __PINCONFIG_H
#define __PINCONFIG_H
/*********************************************************************************************************
P0.00
*********************************************************************************************************/
#define P0_00_GPIO 0x00 /* GPIO */
#define P0_00_TXD0 0x01 /* UART0发送引脚 */
#define P0_00_MAT31 0x02 /* 定时器3匹配输出,通道1 */
//... Reserved 0x03
#define P0_00_FNUC P0_00_GPIO
/*********************************************************************************************************
P0.01
*********************************************************************************************************/
#define P0_01_GPIO 0x00 /* GPIO */
#define P0_01_RXD0 0x01 /* UART0接收引脚 */
#define P0_01_MAT32 0x02 /* 定时器3匹配输出,通道2 */
//... Reserved 0x03
#define P0_01_FNUC P0_01_GPIO
/*********************************************************************************************************
P0.02
*********************************************************************************************************/
#define P0_02_GPIO 0x00 /* GPIO */
#define P0_02_SCL0 0x01 /* I2C-0时钟脚(开漏) */
#define P0_02_CAP00 0x02 /* 定时器0捕获输入,通道0 */
//... Reserved 0x03
#define P0_02_FNUC P0_02_GPIO
/*********************************************************************************************************
P0.03
*********************************************************************************************************/
#define P0_03_GPIO 0x00 /* GPIO */
#define P0_03_SDA0 0x01 /* I2C-0数据线(开漏) */
#define P0_03_MAT00 0x02 /* 定时器0匹配输出,通道0 */
//... Reserved 0x03
#define P0_03_FNUC P0_03_GPIO
/*********************************************************************************************************
P0.04
*********************************************************************************************************/
#define P0_04_GPIO 0x00 /* GPIO */
#define P0_04_SCK0 0x01 /* SSP-0时钟线 */
#define P0_04_CAP01 0x02 /* 定时器0捕获输入,通道1 */
//... Reserved 0x03
#define P0_04_FNUC P0_04_GPIO
/*********************************************************************************************************
P0.05
*********************************************************************************************************/
#define P0_05_GPIO 0x00 /* GPIO */
#define P0_05_MISO0 0x01 /* SSP-0主机输入从机输出数据线 */
#define P0_05_MAT01 0x02 /* 定时器0匹配输出,通道1 */
//... Reserved 0x03
#define P0_05_FNUC P0_05_GPIO
/*********************************************************************************************************
P0.06
*********************************************************************************************************/
#define P0_06_GPIO 0x00 /* GPIO */
#define P0_06_MOSI0 0x01 /* SSP-0主机输出从机输入数据线 */
#define P0_06_CAP02 0x02 /* 定时器0捕获输入,通道2 */
//... Reserved 0x03
#define P0_06_FNUC P0_06_GPIO
/*********************************************************************************************************
P0.07
*********************************************************************************************************/
#define P0_07_GPIO 0x00 /* GPIO */
#define P0_07_SSEL0 0x01 /* SSP-0从机选择 */
#define P0_07_MAT20 0x02 /* 定时器3匹配输出,通道0 */
//... Reserved 0x03
#define P0_07_FNUC P0_07_GPIO
/*********************************************************************************************************
P0.08
*********************************************************************************************************/
#define P0_08_GPIO 0x00 /* GPIO */
#define P0_08_TXD1 0x01 /* UART1发送引脚 */
#define P0_08_MAT21 0x02 /* 定时器2匹配输出,通道1 */
//... Reserved 0x03
#define P0_08_FNUC P0_08_GPIO
/*********************************************************************************************************
P0.09
*********************************************************************************************************/
#define P0_09_GPIO 0x00 /* GPIO */
#define P0_09_RXD1 0x01 /* UART1接收引脚 */
#define P0_09_MAT22 0x02 /* 定时器2匹配输出,通道2 */
//... Reserved 0x03
#define P0_09_FNUC P0_09_GPIO
/*********************************************************************************************************
P0.10
*********************************************************************************************************/
#define P0_10_GPIO 0x00 /* GPIO */
#define P0_10_RTS1 0x01 /* Modem请求发送输出引脚 */
#define P0_10_CAP10 0x02 /* 定时器1捕获输入,通道0 */
#define P0_10_AIN3 0x03 /* AD输入引脚,通道3 */
#define P0_10_FNUC P0_10_GPIO
/*********************************************************************************************************
P0.11
*********************************************************************************************************/
#define P0_11_GPIO 0x00 /* GPIO */
#define P0_11_CTS1 0x01 /* Modem清除发送输入引脚 */
#define P0_11_CAP11 0x02 /* 定时器1捕获输入,通道1 */
#define P0_11_AIN4 0x03 /* AD输入引脚,通道4 */
#define P0_11_FNUC P0_11_GPIO
/*********************************************************************************************************
P0.12
*********************************************************************************************************/
#define P0_12_GPIO 0x00 /* GPIO */
#define P0_12_DSR1 0x01 /* Modem数据设置就绪引脚 */
#define P0_12_MAT10 0x02 /* 定时器1匹配输出,通道0 */
#define P0_12_AIN5 0x03 /* AD输入引脚,通道5 */
#define P0_12_FNUC P0_12_GPIO
/*********************************************************************************************************
P0.13
*********************************************************************************************************/
#define P0_13_GPIO 0x00 /* GPIO */
//... Reserved 0x01
#define P0_13_MAT11 0x02 /* 定时器1匹配输出,通道1 */
#define P0_13_DTR1 0x03 /* DTR1,UART1 */
#define P0_13_FNUC P0_13_GPIO
/*********************************************************************************************************
P0.14
*********************************************************************************************************/
#define P0_14_GPIO 0x00 /* GPIO */
#define P0_14_EINT1 0x01 /* 外部中断输入1 */
#define P0_14_SCK1 0x02 /* SCK1(SSP1) */
#define P0_14_DCD1 0x03 /* Modem数据载波检测输入引脚 */
#define P0_14_FNUC P0_14_SCK1
/*********************************************************************************************************
P0.15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -