eCOG1X Development Kit Version 1.4 Cyan Technology eCOG1X Development Kit User Manual V1.
eCOG1X Development Kit Version 1.4 Confidential and Proprietary Information © Cyan Technology Ltd., 2007-2008 This document contains confidential and proprietary information of Cyan Technology Ltd. and is protected by copyright laws. Its receipt or possession does not convey any rights to reproduce, manufacture, use or sell anything based on information contained within this document. Cyan TechnologyTM, the Cyan Technology logo and Max-eICETM are trademarks of Cyan Holdings Ltd.
eCOG1X Development Kit Version 1.4 Revision History Version Date Notes V1.0 05/04/2007 First release. V1.1 16/04/2007 Changed J2 to P3 in section 2.1. Added more information on USB eICE adaptors. V1.2 17/04/2007 Corrected error in J29 port connections. V1.3 19/10/2007 Corrected error in J29 port connections for pins 12, 14. V1.4 23/01/2008 Changed front page.
eCOG1X Development Kit Version 1.4 Contents List of Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 1.2 1.3 1.4 2 Development Kit Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Additional Documents .
eCOG1X Development Kit 8 Version 1.4 Connections and Pin Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 J18: Power Supply. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 P3: eICE Debug Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Serial Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Analogue Inputs and Outputs . . . . . .
eCOG1X Development Kit Version 1.4 List of Tables 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 23 January 2008 J18: Power supply configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 P3: eICE connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 P1: Serial port 1A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 P2: Serial port 2B . . . . .
eCOG1X Development Kit 1 Introduction 1.1 Development Kit Contents • eCOG1X development board • eCOG1X14Z5 daughter board • USB eICE adaptor • USB cable (A to mini-B) • 10 way ribbon cable • Null modem serial cable • CD-ROM containing CyanIDE development software and documentation • Universal input 9V d.c. power supply with country-specific mains cable 1.2 Requirements • A Windows-based PC system. (minimum 1GHz CPU speed, higher speed recommended).
eCOG1X Development Kit 2 Version 1.4 Quick Start Please also read Appendix A Important Notes. 2.1 Set Up System • Unpack and check contents of kit. • Install CyanIDE development software and USB device drivers. See section 4 Installing CyanIDE for more details. • Check setting of jumper J18 on the development board is correct. Link J18 pins 1-2 to power the board from the external 9V d.c. power supply. See section 8.1 J18: Power Supply for other options. • Connect the 9V d.c.
eCOG1X Development Kit 3 3.1 Version 1.4 Software CyanIDE The CyanIDE software development package supports the eCOG1 family of microcontrollers, providing project management, source code editor, C compiler, assembler, linker, source level debugger, and online help files. It is available on CD-ROM, or as a download to registered users on the Cyan web site at www.cyantechnology.com. CyanIDE communicates with the eCOG1X microcontroller on the target system via the eICE debug port.
eCOG1X Development Kit 4 Version 1.4 Installing CyanIDE 4.1 From the Cyan Tools CD-ROM Insert the CD into the CD-ROM drive. The html start page should load automatically in the default browser. If the start page does not load automatically, or Autorun is disabled for the CD-ROM drive, then Browse the Cyan CD in a file manager or explorer window, and open the file .
eCOG1X Development Kit 5 Version 1.4 CyanIDE Examples CyanIDE includes a number of example software projects, pre-configured for use with the eCOG1X development board, the eCOG1k development and evaluation boards, or the eCOG1 simulator. The examples for the eCOG1X development board are described briefly in the table below. 5.1 Development Board Examples The following example applications for this version of the eCOG1X development board are included as standard with CyanIDE V1.4.
eCOG1X Development Kit Version 1.
eCOG1X Development Kit 5.2 Analogue Examples 5.2.1 Buffered Sine Output Version 1.4 This application outputs a 1kHz waveform from the DAC1 output. It uses buffered output routines so that calls to printf (which are blocking) do not interrupt the DAC output waveform. It uses UART1A to output text to a terminal. File Comments BufferedSineOutput-[device].cyp CyanIDE project file cstartup.asm C environment initialisation [device].cfg Peripheral configuration file internal.map Memory map main.
eCOG1X Development Kit 5.2.5 Version 1.4 Software Trigger This example performs ADC conversions by triggering the conversion from software. It uses UART1A to output text to a terminal. File Comments SoftwareTrigger-[device].cyp CyanIDE project file cstartup.asm C environment initialisation [device].cfg Peripheral configuration file internal.map Memory map main.c Application code 5.2.6 Software Trigger Synced This example performs ADC conversions by triggering the conversion from software.
eCOG1X Development Kit 5.3 Ethernet Examples 5.3.1 Packet Loopback Version 1.4 This application performs simple packet transmit and receive using the Ethernet MAC. The contents of the received packet are printed to the serial port output. In order to loop back the packets, connect a suitable Ethernet loopback cable to the RJ45 connector S3. The example uses UART1A to output text to a terminal. File Comments PacketLoopback-[device].cyp CyanIDE project file cstartup.
eCOG1X Development Kit 5.4 EMI Examples 5.4.1 SDRAM Version 1.4 An SDRAM test for the eCOG1X development board, performing data writes to and reads from the external SDRAM device connected to the EMI bus. It uses UART1A to output text to a terminal. File Comments SDRAM-eCOG1X14Z.cyp CyanIDE project file cstartup.asm C environment initialisation eCOG1X14Z.cfg Peripheral configuration file irom.map Memory map main.c Application code putchar.
eCOG1X Development Kit 5.5 General Examples 5.5.1 IROM1X Version 1.4 Code download and programming utility for the eCOG1X internal flash memory. File Comments IROM1X.cyp CyanIDE project file cstartup.asm C environment initialisation [device].cfg Peripheral configuration file iram.map Memory map flash.c Application code FlashProg.c Flash programming routines FlashProg.h Function prototypes for flash programming routines initfunc.
eCOG1X Development Kit 5.6 GPIO Examples 5.6.1 Flash LEDs Version 1.4 This application flashes the LEDs on the development board in sequence. It requires an appropriate interconnection daughter board fitted to headers J2 and J27 to connect the LEDs to the eCOG1X GPIO signals. It uses UART1A to output text to a terminal. File Comments FlashLEDs-[device].cyp CyanIDE project file cstartup.asm C environment initialisation [device].cfg Peripheral configuration file internal.map Memory map main.
eCOG1X Development Kit 5.7 LCD Examples 5.7.1 LCD Test Version 1.4 Initially this application performs a diagnostic test on the LCD, showing all possible display segment combinations on each digit. Once this test is complete, it displays a time value in minutes and seconds (mm:ss) usng the TMR timer peripheral to generate 1s tick interrupts. It uses UART1A to output text to a terminal. File Comments LCDTest-[device].cyp CyanIDE project file cstartup.asm C environment initialisation [device].
eCOG1X Development Kit 5.9 USB Examples 5.9.1 Audio Peripheral Version 1.4 The audio peripheral example shows the eCOG1X working as a pseudo-soundcard with line-in and line-out connections. When the host requests audio from line-in, the eCOG1X provides a 1kHz sine wave sampled at 44.1kHz, 16 bit stereo. Audio sent from the host is displayed via the serial port as a simple text VU meter, showing the audio level.
eCOG1X Development Kit 5.9.2 Version 1.4 Keyboard Host The keyboard host example shows the eCOG1X working as a USB host which accepts keystrokes from most USB keyboards. This example demonstrates the following: • Using the host keyboard library plugin to implement most of the required functionality. • Using the default control endpoint (EP0). • Using the interrupt endpoint (EP1) for data input. • Using DMA to perform data transfers.
eCOG1X Development Kit 5.9.4 Version 1.4 MSD Host The host mass storage example shows the eCOG1X working as a USB host which performs block reads from and writes to a connected USB flash drive. This example demonstrates the following: • Using the host mass storage device library plugin to implement most of the required functionality. • Using the default control endpoint (EP0). • Using the bulk endpoint (EP3) for both data input and output.
eCOG1X Development Kit 5.10 Version 1.4 Simulator Examples The following example simulator applications are also included with CyanIDE. They can be found in the directory located below the CyanIDE installation directory. Example Comments primes Searches for prime numbers oscillator Example of using a simulated memory-mapped device 5.10.1 primes The 'primes' application searches for prime numbers and displays results in the Debug Output Window.
eCOG1X Development Kit 6 Version 1.4 Development Board 6.1 Overview The eCOG1X Development Board has the following major features. • Processor daughter board, normally fitted with the eCOG1X14Z5 microcontroller. • 512K x 16 bit flash memory. • 8M x 16 bit SDRAM. • 512K x 16 SRAM. • 10/100 Mbits/s Ethernet using the Teridian 78Q2120C PHY. • Mini-AB connector for the on-chip USB. • High-speed USB (480Mbits/s) using the SMSC USB3300 ULPI PHY. • 10 way boxed header for eICE debug port (P3).
eCOG1X Development Kit 6.2 Version 1.4 Description The eCOG1X microcontroller has a 16-bit CPU architecture and a wide range of on-chip peripherals. It operates at clock speeds of up to 70MHz internally from an 8MHz crystal or 32.768kHz watch crystal. Refer to the eCOG1X User Manual for further details. A Spansion (AMD/Fujitsu) S29JL064 device provides 1Mbyte (512Kwords) of external flash memory.
eCOG1X Development Kit 7 Version 1.4 USB eICE Adaptor 7.1 Overview A USB eICE adaptor provides a connection from the host PC to the target eCOG1X device. A number of different eICE adaptors are available from Cyan Technology and from some third-party suppliers. All use the same device driver software. 7.2 Cyan Technology USB eICE Adaptor Figure 1: Cyan USB eICE adaptor The Cyan USB eICE adaptor has the following major features. • FTDI FT2232 device providing USB interface. • USB mini-B socket.
eCOG1X Development Kit 7.3 Version 1.4 CyanTools USB eICE Adaptor Figure 2: CyanTools USB eICE adaptor The CyanTools USB eICE adaptor has the following major features. • FTDI FT245R device providing USB interface. • USB mini-B socket. • USB cable (A to mini-B) for host PC connection. • 10 way boxed header and ribbon cable for eICE debug port. • Powered from USB +5V supply. • 5V supply connection available for low-power target systems.
eCOG1X Development Kit 8 Version 1.4 Connections and Pin Headers 8.1 J18: Power Supply The eCOG1X development board is normally powered from an external d.c. supply via the input jack S7. It can also be powered from the eICE adaptor. Header J18 selects which power supply source is used to power the board. The external power supply from the input jack S7, nominally 9V, is regulated down to 5V initially. This 5V supply is connected to J18 pin 1.
eCOG1X Development Kit 8.3 Version 1.4 Serial Ports P1, P2, S1 and S2 are standard PC compatible 9-way D-type serial connectors. P1 and P2 are plugs, wired as DTE, and require a null-modem cable to connect to a PC. S1 and S2 are sockets, wired as a DCE, and require a standard straight-through cable to connect to a PC. S1 and P2 also provide support for RTS/CTS hardware handshake signals using two GPIO lines each.
eCOG1X Development Kit 8.4 Version 1.4 Analogue Inputs and Outputs Notes: • The analogue ground AGND and the digital ground GND are not connected together on the development kit main board, only on the processor daughter board near the analogue inputs. • Analogue input channels ADC1_Vin1 and ADC2_Vin1 are connected to onboard signals or test potentiometers, configured by pin headers J5 and J6. 8.4.
eCOG1X Development Kit 8.4.3 Version 1.4 J5: ADC1_Vin1 Input Selection Header J5 allows ADC1 input channel 1 to be connected either to the analogue input signal from the radio module header (J29) or to the onboard potentiometer VR1. Pin Name Description 1 RADIO_VIN Analogue input from radio module header J29 2 VIN1A ADC1 input channel 1 3 VR1 Potentiometer VR1 4 AGND Analogue ground Port ADC1_Vin1 Table 9: J5: ADC1_Vin1 input selection 8.4.
eCOG1X Development Kit 8.5 Memory Configuration 8.5.1 J4, J14: Flash Memory Data Bus Width Version 1.4 Headers J4 and J14 are used to configure the flash memory IC4 for either 8-bit or 16-bit data bus operation. Note that if the board is configured to use the external 16-bit wide SRAM, then the flash must also be configured for a 16-bit data bus width.
eCOG1X Development Kit Pin Name Version 1.4 Description Port Function 9 +3.3V 10 +3.
eCOG1X Development Kit 8.6 I2S Audio Codec 8.6.1 J8: Codec Clock Source Version 1.4 Header J8 allows the codec master clock input to be generated locally by a crystal oscillator or supplied from the eCOG1X I2S_MCLK signal. Mode Link X4 crystal oscillator (12.288MHz) J8 pins 1-2 I2S_MCLK (PortS_5) J8 pins 2-3 Table 15: J8: Codec clock source 8.6.
eCOG1X Development Kit 8.6.4 Version 1.4 S4: Microphone Input The 3.5mm jack socket S4 provides a connection to the microphone input channel on the WM8731L audio codec. Pin Description S4 tip Microphone input S4 ring No connection S4 sleeve Microphone ground Table 18: S4: Microphone input 8.6.5 S9: Headphone Output The 3.5mm jack socket S4 provides a connection to the headphone output channel on the WM8731L audio codec.
eCOG1X Development Kit 8.8 Other Headers 8.8.1 J11: Camera Interface Version 1.4 Header J11 provides access to a range of digital I/O signals and is intended for use with modules or daughter boards fitted with a CMOS camera or image sensor. These signals are used elsewhere on the board; check the links on other headers and disable any other use if these signals are required here. Pin Name Description Port Function 1 +3.3V 2 +3.
eCOG1X Development Kit 8.8.3 Version 1.4 J13: Smart Card Header J13 provides connections for an external smart card or SIM card, driven by the second smart card interface peripheral.
eCOG1X Development Kit 8.8.5 Version 1.4 J29: Radio Module Header J29 provides access to a mixture of signals and is intended for use with modules or daughter boards that require a range of different functions, such as modules for ISM radio or wireless datalinks. One of the analogue input channels is also available here, as some radio modules provide an analogue signal strength indicator output.
eCOG1X Development Kit 8.8.7 Version 1.4 J2, J27: Digital Inputs and Outputs Headers J2 and J27 provide access to a number of signals for general-purpose use. These signals may be used elsewhere on the board; check the links on other headers and disable any other use if these signals are required here. Note that with the eCOG1X14Z5 daughterboard, most port pins are used for peripheral functions and there are very few pins spare for use as GPIO to drive the LEDs and read the DIP switches.
eCOG1X Development Kit Version 1.4 Care should be taken to avoid trying to drive the port outputs high when the DIP switches are closed, as the closed switches short the port pins to GND. The additional connections between the peripheral signals made on the daughter board are shown in the following diagram. 8.8.8 J25, J26: Enable LEDs When the interconnection daughter board is fitted to headers J2 and J27, then headers J25 and J26 connect the eight user LEDs to the eCOG1X control signals.
eCOG1X Development Kit Appendix A Version 1.4 Important Notes The following recommendations should be observed when using the USB eICE adaptor. • Connect the USB cable from the eICE adaptor directly to the host PC, not via an external hub. CyanIDE can fail to restart the eICE debug connection after any errors if the USB device is connected via an external hub. • The memory window in CyanIDE can be quite slow to refresh across the USB eICE link.
eCOG1X Development Kit Appendix B B.1 Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit B.2 Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit 23 January 2008 Cyan Technology Ltd Version 1.
eCOG1X Development Kit Appendix C C.1 Version 1.
eCOG1X Development Kit C.2 Version 1.