proble using MCB2100 with lpc 2129
2004-04-26 by tengbat1980
Yahoo Groups archive
Index last updated: 2026-04-28 23:31 UTC
Thread
2004-04-26 by tengbat1980
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?
2004-04-26 by Michael Pont
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" <tengbat1980@...> > Date: 2004/04/26 Mon AM 08:47:05 GMT > To: lpc2000@yahoogroups.com > 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 +======================================+
2004-04-26 by embeddedjanitor
--- In lpc2000@yahoogroups.com, "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.
2004-04-27 by tengbat1980
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 lpc2000@yahoogroups.com, "embeddedjanitor" <manningc2@a...> wrote: > --- In lpc2000@yahoogroups.com, "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.
2004-04-27 by embeddedjanitor
--- In lpc2000@yahoogroups.com, "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? ....
2004-04-27 by tengbat1980
I use gnu c compiler.And can't return the interrupt.Have any way to solve it?thanks --- In lpc2000@yahoogroups.com, "embeddedjanitor" <manningc2@a...> wrote: > --- In lpc2000@yahoogroups.com, "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? ....
2004-04-27 by Charles Manning
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 lpc2000@yahoogroups.com, "embeddedjanitor" <manningc2@a...> > > wrote: > > --- In lpc2000@yahoogroups.com, "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 > > >
2004-04-27 by tengbat1980
Thanks,I would try it. best regards --- In lpc2000@yahoogroups.com, 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 lpc2000@yahoogroups.com, "embeddedjanitor" <manningc2@a...> > > > > wrote: > > > --- In lpc2000@yahoogroups.com, "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 > > > > > >