Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | LPC2292: GPIO-output on P3.29 possible ???

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Re: LPC2292: GPIO-output on P3.29 possible ??? - Anton Erasmus - Jun 1 11:15:00 2005

On 1 Jun 2005 at 13:43, alipowsky wrote:

> I want to use P3.29 (Pin 27, P3.29/BLS2/AIN6) as GPIO (output)
> The manual says it can be done by setting Bit 6 of PINSEL2 to zero.
>
> my testcode:
>
> PINSEL2 &= 0xffffffbf; // Reset PINSEL2.6 to config P3.29 as GPIO
> IO3DIR |= 0x20000000; // Set P2.29 as output IO3SET = 0x20000000;
> // Set portpin high
>
> But the pin does not go high ??
>
> Did anybody use this pin as GPIO output already ?

Which header files are you using ? (i.e. where do you define PINSEL2, IO3DIR etc.)
I used the header files from aeolus development, and there was a mistake with one of
definitions doe IO Port 3. (Copy/Paste mistake - same value for port 2 and port 3)

Regards
Anton Erasmus --
A J Erasmus




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


LPC2292: GPIO-output on P3.29 possible ??? - alipowsky - Jun 1 13:43:00 2005

I want to use P3.29 (Pin 27, P3.29/BLS2/AIN6) as GPIO (output)
The manual says it can be done by setting Bit 6 of PINSEL2 to zero.

my testcode:

PINSEL2 &= 0xffffffbf; // Reset PINSEL2.6 to config P3.29 as GPIO
IO3DIR |= 0x20000000; // Set P2.29 as output
IO3SET = 0x20000000; // Set portpin high

But the pin does not go high ??

Did anybody use this pin as GPIO output already ?

regards
Andreas




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC2292: GPIO-output on P3.29 possible ??? - alipowsky - Jun 2 1:39:00 2005

--- In lpc2000@lpc2..., "Anton Erasmus" <antone@s...> wrote:
> On 1 Jun 2005 at 13:43, alipowsky wrote:
>
> > I want to use P3.29 (Pin 27, P3.29/BLS2/AIN6) as GPIO (output)
> > The manual says it can be done by setting Bit 6 of PINSEL2 to zero.
> >
> > my testcode:
> >
> > PINSEL2 &= 0xffffffbf; // Reset PINSEL2.6 to config P3.29 as GPIO
> > IO3DIR |= 0x20000000; // Set P2.29 as output IO3SET = 0x20000000;
> > // Set portpin high
> >
> > But the pin does not go high ??
> >
> > Did anybody use this pin as GPIO output already ?
>
> Which header files are you using ? (i.e. where do you define
PINSEL2, IO3DIR etc.)
> I used the header files from aeolus development, and there was a
mistake with one of
> definitions doe IO Port 3. (Copy/Paste mistake - same value for port
2 and port 3)
>
> Regards
> Anton Erasmus > --
> A J Erasmus

I use the Rowley header files. (Crossworks for ARM v.1.4)
Thea are okay. I also checked the assembler code and the adresses
there are as expected:

PINSEL2: 0xe002c014
IO3DIR: 0xe0028038
IO3SET: 0xe0028034

regards
Andreas





(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )