Arm Pin
Arm Pin
Arm Pin
comARM7TutorialsBasicRegistersPINSEL,IOSET,IODIR,IOPIN,IOCLR
ARM7 @ electroons.com
HOME8051AVRARMBUYCDsQUERIESC2051
Basic Registers
DownloadUserManualforLPC2148Chapter7,PAGE75
PINSEL Registers
MostofthepinsonLPC2148aremultifunctional,everypincanbeusedtoperformoneoftheassigned
functiontoitdependonthesettingofPINSELregisterofthespecificporttowhichthatpinbelongs.
ForexampleintheLPC214Xpindiagramabove,pinnumber1islabeledas"P0.21/PWM5/AD1.6/CAP1.3",itmeans
thispincanfunctionin4modes.Itcanbeeither...
PORT0.21(GPIO)or
PWMOut5or
ADC1inputforchannel6thatisAD1.6or
CAP1.3TimerCapturepin
Outofthelisted4possiblefunctionalityPin1canfunctionasanyoneatonce.Currentfunctionofanypin
canbeconfiguredusingcorrespondingPINSELregisterinthiscasePINSEL0orPINSEL1(havetocheckin
datasheet),foreverymultifunctionalpindefaultfunctionalityisalwaysGPIOprovidedGPIOisoneofthe
functions.
forLPC2148thereare3PINSELregisters,PINSELx(x:0,1,2),refertodatasheetformoredetailscheck
table60onwards.
GPIO Registers
http://www.electroons.com/ARM/basic_registers.html 1/3
7/7/2017 electroons.comARM7TutorialsBasicRegistersPINSEL,IOSET,IODIR,IOPIN,IOCLR
ToenableFastInputOutput,SystemControlandStatusregister(SCS)shouldbegivenvalue3.
REFERtoUserManualformoredetailsonIODIR,IOSET,IOCLRcheckonPagenumber81onwards,itsChapter8
http://www.electroons.com/ARM/basic_registers.html 2/3
7/7/2017 electroons.comARM7TutorialsBasicRegistersPINSEL,IOSET,IODIR,IOPIN,IOCLR
IhopeyoucanintuitivelydeducethedifferencebetweenFastGPIOandGenerelPurposeInputOutput.Fast
inputoutputcontrollerblockisconnectedtotheARMlocalbuswhileGPIOblockisconnectedwithPeripheral
Busofthecontrollersystem.
askaQuestion
NOcopyrights!Share,Copy,Modifyasmuchasyoucan.DigiTallyYourshttp://www.electroons.com
http://www.electroons.com/ARM/basic_registers.html 3/3