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 | proble using MCB2100 with lpc 2129

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

proble using MCB2100 with lpc 2129 - tengbat1980 - Apr 26 3:47:00 2004

When I use the MCB2100,i found i cant make the Switch 2 working.
I couldn't find the memory address,and When I pressed Switch 2, any
change have not be found .

anybody can help me with that how to enable the swtich 2 ?
And any function do it?





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


Re: proble using MCB2100 with lpc 2129 - Michael Pont - Apr 26 4:04:00 2004


Dear "tengbat",

I don't have a board or documents in front of me, and can't give you a precise answer, but this - from memory - may help.

One of the jumpers (the third one?) needs to be in place if you want to read the S2 settings. There are no functions, etc, require (beyond your basic switch interface code).

Michael.
>
> From: "tengbat1980" <>
> Date: 2004/04/26 Mon AM 08:47:05 GMT
> To:
> Subject: [lpc2000] proble using MCB2100 with lpc 2129
>
> When I use the MCB2100,i found i cant make the Switch 2 working.
> I couldn't find the memory address,and When I pressed Switch 2, any
> change have not be found .
>
> anybody can help me with that how to enable the swtich 2 ?
> And any function do it? > Yahoo! Groups Links >

+======================================+

Michael J. Pont, PhD
Embedded Systems Laboratory,
University of Leicester

http://www.le.ac.uk/eg/embedded

+======================================+




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

Re: proble using MCB2100 with lpc 2129 - embeddedjanitor - Apr 26 18:34:00 2004

--- In , "tengbat1980" <tengbat1980@y...>
wrote:
> When I use the MCB2100,i found i cant make the Switch 2 working.
> I couldn't find the memory address,and When I pressed Switch 2, any
> change have not be found .
>
> anybody can help me with that how to enable the swtich 2 ?
> And any function do it?

Switch 2 is connected to P0.14, but you need to have the jumper J7 in
place for it to work.

Then, how do you want to access it?

If you want to use it as a GPIO, then you need to configure the GPIO
and pin matrix to enable this pin as a GPIO input. You can then
access it via the GPIO pins registers.

If you want to use this as EINT1, you will need to also set up the
interrupt controller.





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

Re: proble using MCB2100 with lpc 2129 - tengbat1980 - Apr 26 22:57:00 2004

thanks and i have use some fuction to solve this proglem and enable
the switch2 interrupt.

VICIntSelect=0x00008000;
VICIntEnable=0x00008000;
VICFIQStatus=0x00008000;
PINSEL0=0x20000000;

But now when i entry interrupt,couldnt out,And I have not found the
return instruction.how i can solve this problem.
--- In , "embeddedjanitor" <manningc2@a...>
wrote:
> --- In , "tengbat1980" <tengbat1980@y...>
> wrote:
> > When I use the MCB2100,i found i cant make the Switch 2 working.
> > I couldn't find the memory address,and When I pressed Switch 2,
any
> > change have not be found .
> >
> > anybody can help me with that how to enable the swtich 2 ?
> > And any function do it?
>
> Switch 2 is connected to P0.14, but you need to have the jumper J7
in
> place for it to work.
>
> Then, how do you want to access it?
>
> If you want to use it as a GPIO, then you need to configure the
GPIO
> and pin matrix to enable this pin as a GPIO input. You can then
> access it via the GPIO pins registers.
>
> If you want to use this as EINT1, you will need to also set up the
> interrupt controller.





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

Re: proble using MCB2100 with lpc 2129 - embeddedjanitor - Apr 27 1:58:00 2004

--- In , "tengbat1980" <tengbat1980@y...>
wrote:
> thanks and i have use some fuction to solve this proglem and enable
> the switch2 interrupt.
>
> VICIntSelect=0x00008000;
> VICIntEnable=0x00008000;
> VICFIQStatus=0x00008000;
> PINSEL0=0x20000000;
>
> But now when i entry interrupt,couldnt out,And I have not found the
> return instruction.how i can solve this problem.

This depends on how you have written your interrupt handler. Is it in
C or assembler? gcc or ADS or what compiler? ....





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

Re: proble using MCB2100 with lpc 2129 - tengbat1980 - Apr 27 3:21:00 2004

I use gnu c compiler.And can't return the interrupt.Have any way to
solve it?thanks

--- In , "embeddedjanitor" <manningc2@a...>
wrote:
> --- In , "tengbat1980" <tengbat1980@y...>
> wrote:
> > thanks and i have use some fuction to solve this proglem and
enable
> > the switch2 interrupt.
> >
> > VICIntSelect=0x00008000;
> > VICIntEnable=0x00008000;
> > VICFIQStatus=0x00008000;
> > PINSEL0=0x20000000;
> >
> > But now when i entry interrupt,couldnt out,And I have not found
the
> > return instruction.how i can solve this problem.
>
> This depends on how you have written your interrupt handler. Is it
in
> C or assembler? gcc or ADS or what compiler? ....





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

Re: Re: proble using MCB2100 with lpc 2129 - Charles Manning - Apr 27 4:01:00 2004

On Tuesday 27 April 2004 20:21, tengbat1980 wrote:
> I use gnu c compiler.And can't return the interrupt.Have any way to
> solve it?thanks

Have a look at the BLINKEYIRQ.ZIP example in the download area of the Keil
website. THis shows how you can write a C function with an interrupt
attribute. This will apply the appropriate interrupt wrappers.

I personally prefer to do my own interrupt wrappers in assembler, which might
themselves call C functions. THis allows more flexibility and control.

-- Charles > --- In , "embeddedjanitor" <manningc2@a...>
>
> wrote:
> > --- In , "tengbat1980" <tengbat1980@y...>
> >
> > wrote:
> > > thanks and i have use some fuction to solve this proglem and
>
> enable
>
> > > the switch2 interrupt.
> > >
> > > VICIntSelect=0x00008000;
> > > VICIntEnable=0x00008000;
> > > VICFIQStatus=0x00008000;
> > > PINSEL0=0x20000000;
> > >
> > > But now when i entry interrupt,couldnt out,And I have not found
>
> the
>
> > > return instruction.how i can solve this problem.
> >
> > This depends on how you have written your interrupt handler. Is it
>
> in
>
> > C or assembler? gcc or ADS or what compiler? .... >
> Yahoo! Groups Links >






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

Re: proble using MCB2100 with lpc 2129 - tengbat1980 - Apr 27 5:09:00 2004

Thanks,I would try it.
best regards

--- In , Charles Manning <manningc2@a...>
wrote:
> On Tuesday 27 April 2004 20:21, tengbat1980 wrote:
> > I use gnu c compiler.And can't return the interrupt.Have any way
to
> > solve it?thanks
>
> Have a look at the BLINKEYIRQ.ZIP example in the download area of
the Keil
> website. THis shows how you can write a C function with an
interrupt
> attribute. This will apply the appropriate interrupt wrappers.
>
> I personally prefer to do my own interrupt wrappers in assembler,
which might
> themselves call C functions. THis allows more flexibility and
control.
>
> -- Charles
>
> >
> > --- In , "embeddedjanitor"
<manningc2@a...>
> >
> > wrote:
> > > --- In , "tengbat1980"
<tengbat1980@y...>
> > >
> > > wrote:
> > > > thanks and i have use some fuction to solve this proglem and
> >
> > enable
> >
> > > > the switch2 interrupt.
> > > >
> > > > VICIntSelect=0x00008000;
> > > > VICIntEnable=0x00008000;
> > > > VICFIQStatus=0x00008000;
> > > > PINSEL0=0x20000000;
> > > >
> > > > But now when i entry interrupt,couldnt out,And I have not
found
> >
> > the
> >
> > > > return instruction.how i can solve this problem.
> > >
> > > This depends on how you have written your interrupt handler.
Is it
> >
> > in
> >
> > > C or assembler? gcc or ADS or what compiler? ....
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
>




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