Start working with c #include <lpc213x. h> tell the compiler to use the header file "pc213x,h" pc2. h defines all the register address for the devices in LPC213x family lOPINO for gPloo. UoThR for UaRtO CES arm board v 14.7
Start working with C • #include <lpc213x.h> – tell the compiler to use the header file "lpc213x.h" – lpc213x.h defines all the register address for the devices in LPC213x family • IOPIN0 for GPIO0, U0THR for UART0 CES arm board v.14.7 11
Start working with c int main(i While(1) return a the function "main"is the entry point of your program after the running the instructions in Startup. s While(1);is an infinite loop which keeps the processor busy CES arm board v 14.7
Start working with C • int main(){ while(1); return 0; } – the function "main" is the entry point of your program after the running the instructions in "Startup.s" – "while(1);" is an infinite loop which keeps the processor busy CES arm board v.14.7 12
Introduction to the cuhk arm7 board 2012 Hardware CES arm board v 14.7
Hardware Introduction to the CUHK ARM7 board 2012 CES arm board v.14.7 13
CUHK ARM Board 2012 The latest version of the board CES arm board v
CUHK ARM Board 2012 • The latest version of the board CES arm board v.14.7 14
CUHK ARM7 board 2012 Serial) USB IC Connect to computer 8。0858 Power° NXP LPC2131 A simple prototype board 000000 Reset Sarm-00aRlM4
CUHK ARM7 board 2012 15 A simple prototype board Serial ↔ USB IC NXP LPC2131 Connect to computer Power Reset CES arm board v.14.7