
34
You can also go to our website for more information:
http://www.coocox.org/CoIDE/CoIDE_QuickStart.htm
http://www.coocox.org/CooCox_CoIDE.htm
6.2 CoIDE Example Description
6.2.1
Blinky
The example shows how to use the LPC111x PIO API to drive a LED.
This example mainly uses the SYSCON and GPIO components. It enable GPIO block
clock and set PIO2_9 to be output and blinking. You can see the D4 Blinking when you
load the project to board.
6.2.2
UART_Print
A simple example shows how to use the UART to print a string.
It sends a
“
Hello, World!
”
to UART Interface. After using the Serial line to connect J8 to the
DB9 COM on the computer, you can see the result in HyperTerminal.
The HyperTerminal
’s configuration must be:
Baud rate:
115200
Parity: NONE
Data bits: 8 bits
Stop bits: 1 bit
You can see
“Hello, World!” in the HyperTerminal screen after you press the reset button
BP2.
6.2.3
Master_Transfer
This example describes how to configure I2C working in master mode, and Read/Write
EEPROM using I2C bus. The example sends some data to EEPROM and then read back.
To use this example, you need to connect LPC11C14 board with an EEPROM: M24C64.
Here is the recommended connection:
Summary of Contents for CoLinkEx_LPC11C14
Page 2: ...2 Revision history Rev Date Description 1 0 2012 05 07 Initial version...
Page 5: ...5 6 2 8 Semihosting 35 6 2 9 CoOS_App_Framework 37...
Page 16: ...16...
Page 22: ...22 Click Debug button to debug the program 5...
Page 24: ...24 2 Switch to Download page to execute Download Erase Verify Blank Check etc...
Page 25: ...25...
Page 31: ...31 6 Examples 6 1 Use CoIDE to develop a project...
Page 32: ...32...
Page 33: ...33...