We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I am a newbie to micro controllers. I am using a LPC2146 board and I am unable to understand what startup.s is actually doing, especially the vector table initializations. Is there any book where I can learn the assembly opcodes? (Google search isn't too helpful)
I have the document by hitex(Introduction to LPC2000), but I think even that requires some basic understanding.
Thanks in advance.
http://www.keil.com/support/man/docs/gsac/GSAC_StrtupCodeARM7.htm
The startup-code executes immediately upon reset of the target system and performs the following operations:
1. Defines interrupt and exception vectors. 2. Configures the CPU clock source (on some devices). 3. Initializes the external bus controller. 4. Copies the exception vectors from ROM to RAM for systems with memory remapping. 5. Initializes other low level peripherals, if necessary. 6. Reserves and initializes the stack for all modes. 7. Reserves the heap. 8. Transfers control to the main C function.