Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi guys, so i tried the pointers that you gave me and this does not work :(
This works
if(!(IOPIN0 & (0x00000080))) // When button is pressed => IOPIN0 7 =1;
{
IOCLR1 = (1<<16)|(1<<18);
}
else
{
IOSET1 = (1<<16)|(1<<18);
}
But this does not work!!
if(!(IOPIN0 &...
Oki guys, so you are telling me that insted of using
IO1SET |= (1<<16); I should use
IO1SET = 0x00010000;
I Think I tryed this but with the same results!
Im going to try this again when I get home and let you know!
Thanks for all the help guys
Hi guys and thanks for all the replies
I don't get it, so your telling me that Im not able to write to the register and clear the register at the same time?
I have done this same exercise on other processors and it allays works!?
Hi Braw, I wrote the code from memory and did not coppy the real code so therefore i wrote wrong on IOCLR1 <=(1<<18), My code already has IOCLR1 |=(1<<18);
My compiler woldent had accepted <=(1<<18);
But!! this still does not WORK!!!
Thanks anyway
Hi all, I have a Little problem getting my LPC2119 to work as I want it to.
This is a very basic thing that I'm trying to do but I can't get it working
Im running a ET-ARM et-arm stamp lpc2119 with GNU arm compiler in µVision3
Im trying to interface a push button with 2LEDs. Using one LED works...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.