CooCox CoLinkEx_LPC11C14 User manual

2
Revision history
Rev
Date
Description
1.0
2012-05-07
Initial version

3
1. Catalog
1. Catalog.........................................................................................................................3
1. CoLinkEx_LPC11C14 EVB Kit Overview ....................................................................6
1.1 The Microcontroller Introduction ...........................................................................6
1.2 Evaluation Boards Introduction.............................................................................6
1.3 Hardware resources list ........................................................................................7
1.4 Software resources list..........................................................................................7
2. CoLinkEx_LPC11C14 EVB Kit Introduction.................................................................9
2.1 Board Interface Overview......................................................................................9
2.2 Jumpers settings...................................................................................................9
2.3 SW/JTAG Debug Interface..................................................................................10
2.4 UART...................................................................................................................10
2.5 CAN.....................................................................................................................10
2.6 Mini USB Port......................................................................................................10
2.7 LM75 Temperature Sensor.................................................................................11
2.8 LED......................................................................................................................11
3. Getting Started...........................................................................................................12
3.1 Version Information.............................................................................................12
3.2 Hardware Source Requirement ..........................................................................12
3.3 Preparation..........................................................................................................12
3.4 Use the default factory program..........................................................................13
4. CoLinkEx Installation and Use...................................................................................14

4
Installation ...........................................................................................................144.1
Update the firmware.....................................................................................144.1.1
Install the Driver of CoLinkEx ......................................................................154.1.2
Connect CoLinkEx to PC.............................................................................184.1.3
Use CoLinkEx......................................................................................................194.2
4.2.1 How to use CoLinkEx in CoIDE...................................................................20
4.2.1 How to use CoLinkEx in CoFlash................................................................23
4.2.2 How to use CoLinkEx in MDK......................................................................26
5. How to use CoLinkEx to debug other devices...........................................................29
5.1 CoLinkEx Debug Pin Description:.......................................................................29
5.2 Standard 20-PIN SW/JTAG Interface:................................................................29
5.3 Connection method used in SW Debug:.............................................................29
5.4 Connection method used in JTAG Debug:.........................................................30
6. Examples....................................................................................................................31
6.1 Use CoIDE to develop a project..........................................................................31
6.2 CoIDE Example Description................................................................................34
6.2.1 Blinky............................................................................................................34
6.2.2 UART_Print..................................................................................................34
6.2.3 Master_Transfer...........................................................................................34
6.2.4 WDT_Reset..................................................................................................35
6.2.5 Simple_ADC.................................................................................................35
6.2.6 Capture ........................................................................................................35
6.2.7 Printchar for NXP.........................................................................................35

6
1. CoLinkEx_LPC11C14 EVB Kit Overview
1.1 The Microcontroller Introduction
CoLinkEx_LPC11C14 EVB Kit uses the LPC11C14x301FBD48 for NXP. The LPC11Cxx
are ARM Cortex-M0 based microcontrollers for embedded applications featuring a high
level of integration and low power consumption.
The LPC11xx operate at CPU frequencies of up to 50 MHz, the peripheral complement of
the LPC11xx series includes up to 32KB of flash memory, up to 8 KB of data memory, one
Fast-mode Plus I2C-bus interface, one RS-485/EIA-485 UART, up to two SPI interfaces
with SSP features, four general purpose timers, a 10-bit ADC, and up to 42 general
purpose I/O pins. It integrated ARM Cortex-M0 built-in Nested Vectored Interrupt
Controller (NVIC), integrated PMU (Power Management Unit) to minimize power
consumption during Sleep, Deep-sleep, and Deep power-down modes.
The LPC11Cxx operates in the -40 to +85 °C temperature range, from a 1.8 to 3.6 V
power supply. A comprehensive set of power-saving mode allows the design of low-power
applications. It includes:
Emetering
Lighting
Industrial networking
Alarm systems
White goods
1.2 Evaluation Boards Introduction
CooCox’s CoLinkEx_LPC11C14 EVB Kit is a brand new, cost-effective but
high-performance evaluation tool of the ARM Cortex-M0 based LPC11xx controller family
from NXP, allowing you to create and test working programs for this advanced
architecture. The board has UART Interface which support RS-485 and EIA-485 modes, 8
channel 10 bit ADC Converter, 2 16bit timer and 2 32bit timer, includes a wide range of
interfaces such as SPI, I2C, integrates PMU(Power Manage Unit). It supports IO
extensions, which is compatible with LPCXpresso Base Board, making it a great starting
point for your next Cortex-M0 project. The onboard adapter: CoLinkEx support MDK and
IAR, help you execute download and debug the project.
You can use the CoLinkEx_LPC11C14 EVB Kit to generate and test application programs
for the NXP LPC11xx microcontroller family. The example and source in the CD will help
you quickly start project development and personal learning.

7
1.3 Hardware resources list
CoLinkEx_LPC11C14 EVB Kit contains CoLinkEx and LPC11C14 board:
On board CoLinkEx
LPC11C14_Dev_Board
A mini-type USB socket, power supply
and communicate with PC
CAN Interface
2mm*10pin Debug Interface, can debug
other devices
An Serial connection socket ( support RS-485
/ EIA-485)
a power supply LED
1 LED(P2.9)
3 CoLinkEx Status LED: D1~D3
Full function IO extension, support I2C, SPI,
ADC
The suite contains the CoLinkEx_LPC11C14 EVB Kit and the following issues:
MiniUSB Line
2mm*10pin to DB9 serial line
Two 2.54mm Jumper cap
A CD and Publicity Color Pages
1.4 Software resources list
Example Name
Function Description
Default factory program
LED4 Blink, UART Send data, I2C Read Temperature
sensor
Blinky
LED4 Blink
UART_Print
UART Send data
Master_Transfer
Read data though I2C (Need to connect EEPROM)
WDT_Reset
Watchdog application example.

9
2. CoLinkEx_LPC11C14 EVB Kit Introduction
2.1 Board Interface Overview
Micro
USB
LPC11C14
FBD48
RESET
SWD
Power
Led
Temp
Sensor
GPIO CAN
Interface
LED1
RESET
UART
Interface
JP1
JP2
ID
Description
ID
Description
BP1
CoLinkEx Reset Button
J6
GPIO IO Extension Interface
BP2
LPC11C14 Board Reset Button
J8
UART232 Serial Socket
D1
Red LED, CoLinkEx Error status
J9
CAN Interface
D2
Yellow LED, CoLinkEx Connection
JP1
CoLinkEx Update Pin
D3
Blue LED, CoLinkEx Busy status
JP2
LPC11C14board ISP Pin
D4
LPC11C14 Board LED
U6
LPC11C14x301FBD48
J1
CoLinkEx Micro-USB Interface
U7
RS232 Transceiver
J2
CoLinkEx SWD Interface
U8
Temperature Sensor (Though I2C)
J4
CoLinkEx Debug Interface, connect
with LPC11C14
U9
CAN Controller
2.2 Jumpers settings
ID
Name
Default Settings
Note
JP1
UPDATE
Open
Allow user to update the firmware of CoLinkEx
when this jumper is closed.
JP2
ISP
Open
Allow user to download the code using ISP
software when this jumper is closed.

10
2.3 SW/JTAG Debug Interface
CoLinkEx_LPC11C14 EVB Kit use ARM standard 2mm*10 pin SW/JTAG Interface.
You can use this interface to debug other devices. See: How to use CoLinkEx to debug
other devices. You can also use other adapter to debug the LPC11C14board, such as
ULink2, J-Link.
2.4 UART
The Universal Asynchronous Receiver Transmitter features a 9-pin UART that can be
used for communication and trace purposes. It offers an ideal channel for ISP
downloading. Use the following line to connect the board and PC.
2.5 CAN
CAN Interface, use TJA1040 Controller, can connect through J9. It offers an ideal
channel for ISP downloading, too.
2.6 Mini USB Port
A Mini USB AB interface supplies 5V voltage to the Board. CoLinkEx communicate
with the PC through this port.

11
2.7 LM75 Temperature Sensor
A LM75 Temperature Sensor is connected to the I2C bus in CoLinkEx_LPC11C14 EVB
Kit.
2.8 LED
CoLinkEx+LPC11C14_Dev Board provide LEDs D4, it respectively connect with
PIO2.9 IO pins, and can be used for user output.

12
3. Getting Started
3.1 Version Information
Firmware: 0.4
Driver: 1.2.0(or 1.2.1)
Software:
CoIDE 1.4.0 or higher
CoFlash 1.4.0 or higher
MDK 4.03(or higher) plus CoMDKPlugin1.4.0 or higher
3.2 Hardware Source Requirement
When you use CoLinkEx_LPC11C14 EVB Kit, The PC is required to use the following
sources:
CPU: 2.0GHz (at least)
Memory: 512M (at least)
USB Interface: 1 (at least)
Serial Line interface use COM1
Operation System: Windows XP/Windows Vista/Win 7
Software need: CoIDE, MDK, IAR(with CoMDKPlugin, CoIARPlugin)
3.3 Preparation
Install CoIDE or the corresponding Plugin
Update the firmware and install the driver, Refer to: CoLinkEx Installation and
Use
Jumpers’ setting: JP1, JP2 both OFF.
USB Connection: Using USB cable, one end plugged into the Mini USB port on
the board CoLinkEx (J1), the other end connected to PC.
If serial communication is needed:
Serial Connection: Connect com of board and the COM of PC through serial port
cable.
Serial Port Receive Settings: In the PC, run HyperTerminal serial communication
program, select the serial port used and set the following parameters (to set
status: Baud rate (115200), data bits (8 bits), stop bits (1 bit), parity bit (no ), data
flow control (no)).
If CAN Communication is needed:

13
Connect J9 (CAN Interface) with PC or other devices.
3.4 Use the default factory program
The board has load the following program by default. You can use it to test the hardware.
You can also get the code through CooCox CoFlash.
1. Test Objective: The onboard hardware: Adapter, LPC11C14 chip, LED, UART and
Temperature sensor can work normally.
2. Test Hardware Resources: MiniUSB Line, 2mm*10 pin to COM serial line,
CoLinkEx_LPC11C14 EVB (all included in the CoLinkEx_LPC11C14 EVB Kit )
3. Test Prepareation: Connect the lines and set the HyperTerminal, you can refer to 3.3
4. procedure:
1)Power on the board and press the Reset button.
2)HyperTerminal will display “Welcome to use CooCox!”the tests begin.
3)LED Blink Test: The board execute blinky test, D4 will light 5 times, means test
OK. When the execute end, HyperTerminal will display “LED Blink Test OK!”
4)UART Test: HyperTerminal will display “UART Print Test OK!”
5)Temperature sensor and I2C Test: HyperTerminal will display the temperature
value, and “I2C Temperature Sensor Test OK!”when the test ends.
6)When the entire test ends, you will see “All test ended!”on the screen. If your
board works normally, you will see the following lines on the HyperTerminal.
5. If you need to reload the default factory program to the board, you can use CoFlash.
Refer to: How to use CoLinkEx in CoFlash. Just load the “LPC11CxxTest.bin”to your
board.

14
4. CoLinkEx Installation and Use
Installation4.1
To install CoLinkEx, you need to do the following:
Update the firmware
Install the Driver of CoLinkEx
Connect CoLinkEx to PC
Update the firmware4.1.1
If you are using CoMDKPlugin V1.4.0, CoIDE V1.4.0, or CoFlash V1.4.0, you need to update
CoLinkEx driver and firmware before using CooCox CoLinkEx.
The firmware can be found in the disk: Tools\ColinkEx_Driver\ColinkEx_firmware_v0.4.bin
How to update the firmware:
1)Short-circuit JP1.
2)Connect CoLinkEx to the PC.
Wait for the PC enumerates the removable disk whose label is "CRP2 ENABLD" or "CRP
DISABLD". If it does not, you could press the reset button (BP1) for several times or power
on again.
Delete the firmware.bin file in removable disk.
3)Copy the downloaded firmware: ColinkEx_firmware_v0.4.bin into the removable disk.
4)Disconnect JP1, power on again, then CoLinkEx will work normally.

15
Install the Driver of CoLinkEx4.1.2
You need to select the version of CoLinkExUSBDriver according to your Windows OS first.
1)If you're using the 32 bit windows system, for example:
Windows XP/Windows Vista 32bit/Windows 7 32bit.
Installation file: Tools\ColinkEx_Driver\CoLinkExUsbDriver-1.1.0.exe
Do the operations shown in the following picture.

16

17
2)If you are using Windows Vista 64bit or Windows 7 64bit.
Installation file: Tools\ColinkEx_Driver \ColinkExUsbDriver-1.1.1.exe
Please connect CoLinkEx to the computer before you start installing this driver.

18
Connect CoLinkEx to PC4.1.3
When you connect CoLinkEx to PC, it will ask you to install the driver to system for the
new detected devices. Then you may need to specify the path for CoLinkEx Driver:

19
When you install the driver, in devicemanager, you will found CooCox(COM x)under Port
and CooCox CoLinkEx Debug Interface under USB Controller.
If there “?”in front of the two devices, it means that the driver have not been installed to
the system or install failed; if there isn’t CooCox Port, it means that your CoLinkEx
firmware and driver is old version.
Use CoLinkEx4.2
Now CoLinkEx support CoIDE, CoFlash 和CoMDKPlugin. The following is the
configuration to use CoLinkEx in this software.

20
4.2.1 How to use CoLinkEx in CoIDE
After create CoIDE Project, click Debug Configuration button:1)
In “debug configuration”page, select CoLinkEx, and set other parameters.2)
Table of contents