Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
i use keil for arm
and this code not work
int i;
i=5;
printf("%d",i);
it give me
000000000000000000000
and i use lpc2124
#include <stdio.h> /* prototype declarations for I/O functions */
#include <LPC21xx.H> /* LPC21xx definitions */
/****************/
/* main program */
/****************/
int i;
int main (void) { /* execution starts here */
/* initialize the serial interface */
[COLOR=#0000ff]PINSEL0 = 0x00050000; /* Enable RxD1 and TxD1 */
U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */
U1DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */
U1LCR = 0x03; /* DLAB = 0 */
[/COLOR][COLOR=#ff0000]
i=5;
printf("%d",i); [/COLOR]
}
Here it is:
LPC2114/LPC2124 Datasheet
BigDog
---------- Post added at 12:11 ---------- Previous post was at 12:06 ----------
Download for all documentation for the LPC2124:
LPC2124 Product Page
Click on the "Download all documentation" link in the top left hand corner of the page.
hiii
i want lpc2124 datasheet i can't find it in the internet
NXP datasheets don't have a complete description of the device peripheral and registers, they mainly have the pinout, pin desctiption and electrical characteristics.
What you probably need is the user manual
this is the direct link
http://ics.nxp.com/support/document...2.lpc2214.lpc2220.lpc2290.lpc2292.lpc2294.pdf
Alex
The complete description exists but the manual that includes them has a different name, Microchip or Atmel etc call it datasheet but NXP calls it a user manual, everything you need is in there, just download it from the links of my previous post.
As an additional note you might want to try ARMwizard, UART is not included at the moment but you can set many other peripherals https://www.edaboard.com/threads/196143/
Alex
PS. I just checked and your mcu LPC2124 is not incuded in the models that exist in the application so it is probably not usable in your case, sorry