P. 1
Class 9

Class 9

|Views: 0|Likes:
Published by Karthik_Nallap_6853

More info:

Published by: Karthik_Nallap_6853 on Jul 26, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

05/13/2014

pdf

text

original

Registers of LPC2148(ARM7) Microcontroller

PIN Select Register
 The

PINSEL register's controls the functions of the pins

Registers: PINSEL0 PINSEL1 PINSEL2

PINSEL0

PINSEL1

PINSEL2

IODIR GPIO Port Direction control register.  This register individually controls the direction of each port pin.

Registers:
GPIO port 0 Direction register GPIO port 1 Direction register Fast GPIO port 0 Direction register Fast GPIO port 1 Direction register

"the slow" GPIO
GPIO port 0 Direction register

GPIO port 1 Direction register

"the fast" GPIO
Fast GPIO port 0 Direction register

Fast GPIO port 1 Direction register

IOPIN
(Used while performing digital functions)‫‏‬
 GPIO Port Pin value register.  The current state of the GPIO configured port pins can

always be read from this register, regardless of pin direction.
This register provides the value of port pins that are configured to perform only digital functions Registers

GPIO port 0 Pin value register GPIO port 1 Pin value register Fast GPIO port 0 Pin value register Fast GPIO port 1 Pin value register

IOSET
GPIO Port Output Set register.  This register controls the state of output pins.  Writing ones produces highs at the corresponding port pins. Writing zero's has no effect.

Registers GPIO port 0 output Set register GPIO port 1 output Set register Fast GPIO port 0 output Set register Fast GPIO port 1 output Set register

IOCLR
GPIO Port Output Clear register.  This register controls the state of output pins.  Writing ones produces lows at the corresponding port pins and clears the corresponding bits in the IOSET register.  Writing zero's has no effect.

Registers

GPIO port 0 output Clear register 0 GPIO port 1 output Clear register 1 Fast GPIO port 0 output Clear register 0 Fast GPIO port 1 output Clear register 1

: NOTES :

IOPIN-->To read the current state of the GPIO pin

IODIR-->Individually control the state of each pin (writing 0 makes particular pin acts as input,
writing 1 makes particular pin as output)‫‏‬

IOSET-->To control the state of the output pins
(writing 1 to particular pin makes it as output port high, writing 0 has no effect)‫‏‬


IOCLR-->To control the state of the output pins
(writing 1 to particular pin makes it as low,writing 0 has no effect) NOTE: this is register used to clear the pins that are set using IOSET

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->