ARM Cortex M3 & Cortex M0 Development Tools

更换语言:
   Contact us
  • Follow CooCox
  •         
  • CooCox Market
  •         
  • Tech Support
  •     
Home › COX

Overview


  • What's COX ?
COX is the definition of a group of interface function, contained in COX.h. It defines the functional access functions of MCU’s common peripherals, such as IIC, SPI, UART, etc.
  • Why do we use COX ?

COX function interface unify the definition of the access functions of MCU’s common peripherals, which makes engineers port programs among different MCUs more conveniently.
COX has a set of specific realization for each MCU, and its code size and speed are nearly the same as the library that the suppliers provided.

  • When should we use COX ?
  • If users may change MCU in future
  • If users plan to use the existing drivers based on COX interface
  • How to use COX ?
Check the corresponding components of Peripheral.COX (like the figure below), otherwise, check the components sorted based on original code, such as Peripheral.NXP, Peripheral.Atmel, etc.
They also could be mixed selection when Peripheral.Cox couldn’t provide the functions that the original code implemented.

  • Which chips and peripherals do COX support ?

COX has been implemented on NXP LPC17xx series chips.


COX Peripheral Interface

COX defines standard access interface for standard peripherals, thus the same peripheral of different MCUs have a common access interface. The following is a list of the peripherals that COX has defined, check to get the detailed description.

Peripheral Description
PIO Pin input and output, could be used for button test, LED driver or serial data transmission.
SPI SPI Master periperal can be be used for communicate with SPI slave devices.
I2C I2C Master periperal can be be used for communication with I2C slave devices.
Serial Serial (UART) periperal can be used by computers and electronic modules to send and receive data.
EXTI EXTI (External Interrupt) can be used to detect input line event and generate an interrupt.
TICK A Tick Timer provides a versatile means of generating interrupts at specified time intervals. It is intended for calling a function at a specified period once or repeatedly.
PWM The Pulse Width Modulator (PWM) peripheral is used to control the frequency and mark-space ratio of a digital pulse train.
ADC An ADC is an peripheral that converts an input analog voltage (or current) to a digital number proportional to the magnitude of the voltage or current.
DAC A DAC is a peripheral that converts a digital code to an analog signal (current, voltage, or electric charge).

© 2009 -2011 CooCox - Terms of Use         Business Model         Market             About us