Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
I would to write assembly code for the LPC812 and the LPC1114. Template to use?
Hi,
I have number of questions.
1) I would like write assembly code for the LPC812 or LPC1114. And assembly code can call C code or vice versa. I would like to know the format of how to do that. Any pointer to examples is appreciated.
2) I bought a couple pieces of LPC1114, which can go up to 50Mhz. If I use a 25Mhz crystal, I would like to find out how to setup the PLL to have the system clock go up to 50Mhz. Likewise, the LPC812 can go up to 30Mhz. If I use 12Mhz and PLL, I would like find out how to set this up to boost it to 24Mhz.
3) I would like also to setup an interrupt to be called every XX micro-seconds. Pointers to sample code are appreciated.
Thanks!
1 Answer
10 years, 6 months ago.
You should better to read User Manual and startup code of LPC1114. If you read those, your question 2 will be solved.
http://www.nxp.com/documents/user_manual/UM10398.pdf
http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso
This blog is assembly development on LPC17xx but it may very helpful document.
http://pygmy.utoh.org/riscy/cortex/led-lpc17xx.html
About assembly language on mbed, you can find the document on here.
https://mbed.org/cookbook/Assembly-Language