文档介绍:9 I/O PORTS(247-284)
OVERVIEW
S3C2440A has 130 multi-functional input/output port pins and there are eight ports as shown below:
- Port A(GPA): 25-output port
- Port B(GPB): 11-input/out port
- Port C(GPC): 16-input/output port
- Port D(GPD): 16-input/output port
- Port E(GPE): 16-input/output port
- Port F(GPF): 8-input/output port
- Port G(GPG): 16-input/output port
- Port H(GPH): 9-input/output port
- Port J(GPJ): 13-input/output port
Each port can be easily configured by software to meet various system configurations and design requirements.
You have to define which function of each pin is used before starting the main program. If a pin is not used for multiplexed functions, the pin can be configured as I/O ports.
Initial pin states are configured seamlessly to avoid problems.
I/O端口
概述
S3C2440A有130个多功能输入/输出引脚,其中如下所示8个端口:
—端口A(GPA):25个输出端口
- 端口B(GPB):11个输入输出端口(可任意设置为输入端口或是输出端口)
- 端口C(GPC):16个输入输出端口
- 端口D(GPD):16个输入输出端口
- 端口E(GPE):16个输入输出端口
- 端口F(GPF):8个输入输出端口
- 端口G(GPG):16个输入输出端口
- 端口H(GPH):9个输入输出端口
- 端口J(GPJ):13个输入输出端口
每个端口可以很容易地通过软件配置,以满足不同的系统配置和设计要求。
在编写主程序之前,必须对使用的引脚进行设置。如果引脚不使用复用功能,引脚可配置为I/O端口。必须在初始化时配置好引脚的状态以避免出现问题。
PORT CONTROL DESCRIPTIONS
PORT CONFIGURATION REGISTER(GPACON-GPJCON)
In S3C2440A, most of the pins are multiplexed pins. So, It is determined which function is selected for each pins.
The PnCON(port control register) determin