2440 IO

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
RT,很多port都是多功能复用的,所以要在使用前初始化,指定其功能。
@Port Control
Port Configuration Reg
【GPACON-GPJCON】
PnCON(port control register) determines which function is used for each pin
PORT DATA REGISTER 【GPADAT-GPJDAT】
In/output data.
PORT PULL-UP REGISTER 【GPBUP-GPJUP】
控制每组的上拉电阻
MISCELLANEOUS CONTROL REGISTER
EXTERNAL INTERRUPT CONTROL REGISTER
The 24 external interrupts are requested by various signaling methods. The EXTINT register configures the signaling method among the low level trigger, high level trigger, falling edge trigger, rising edge trigger, and both edge triggerfor the external interrupt request.
EINT[15:0] are used for wakeup sources.

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment