Home
        Cookie User Manual
         Contents
1.   Arduino           Like the Arduino  The Cookie NuMicro edition can be powered via the USB  connection or with an external power supply  The power source is selected    automatically     External  non USB  power can come from an AC to DC adapter  wall wart  or a  battery  The adapter can be connected by plugging a 2 1mm center positive plug into  the board s power jack  Leads from a battery can be inserted in the GND and Vin pin  headers of the POWER connector     The board can operate on an external supply of 6 to 20 volts  If supplied with less  than 7V  however  the 5V pin may supply less than five volts and the board may be  unstable  If using more than 12V  the voltage regulator may overheat and damage  the board  The recommended range is 7 to 12 volts     Note     The Board can be powered by 3V3  or 5V  if working with other shields  please  check which power should be used  This can be switched by JP3     Co O C OX Cookie Board User Manual WWW COOCOX Org       The power pins are listed as follows     e VIN  The input voltage to the board when it s using an external power source  as  opposed to 5 volts from the USB connection or other regulated power source    You can supply voltage through this pin  or  if supplying voltage via the power  jack  access it through this pin     O SV  This pin outputs a regulated 5V from the regulator on the board  The board  can be supplied with power either from the DC power jack  7 12V   the USB  connector  5V   or from the VIN pin of 
2.  mm       ICSP 4 SPI MOSI ADC5 SPIO MOSI CMPOP    Interface i Digital IO    SPI       Co O C OX Cookie Board User Manual WwwWwwW COOCOX OrE       e       I2CO SDA SDA   A4       4 6 1 Power    Description    Power is 3V3    Reset M0516        Description  Button      Upgrade CoLinkEx       C O O C OX Cookie Board User Manual WWW COOCOX Org       Connect J1 1 JTAG SWD VCC  with 3V3    Debug In   MCU    Debug Output  Reset CoLinkEx    SPI1 SS    PWM6  SPI1 MOSI  PWM 7    AIN4 ADC4        Coo C OX Cookie Board User Manual WWw cCOocox org    I2C0 SDA  AIN5 ADC5        I2CO SCL    5 Getting Start    The Cookie integrates a CoLinkEx on board  You can use the CoLinkEx to program and  debug the Cookie MCU M0516  or program and debug other boards after setting  debugging output through J1        The J1  Debug In Out Connect  signal details   10 pin JTAG SW Interface    VCC 17 O Of 2 SDWIO  TMS   GND 3   CJ 4 SWOCLK   TOLK   GND 5 0O OF 6 5WO TDO   KEY 7 O f 8 NC  TDI  GNDDetect 9   O O 110 nRESET    5 1 1 Install  How to install the driver for the onboard CoLinkEx     You need to select the version of CoLinkEx USB Driver according to your Windows OS   The newest version of CoLinkEx driver can be downloaded from    www coocox org Colinkex htm     1  32 bit windows system  for example   Windows XP   Windows Vista 32bit   Windows 7 32bit     Installation file  CoLinkExUsbDriver 1 1 0 exe                 Welcome to the CooCox ColinkEx  USB Driver Setup Wizard    This will install CooCox C
3. Cookie User Manual  For NuMicro Edition 1 0    Rev  1 0 Release  2012 08 09    CooCox    Website    www coocox org  Forum  forum coocox org  Techinal      master coocox com  Market  market coocox com    C O O C OX Cookie Board User Manual y  www coocox org    1 Introduction       Cookie is an open source Arduino compatible ARM prototyping platform based on  32 bit ARM Cortex M0 3 4 MCUs plus hardware and software building blocks     Cookie expands the concepts of Arduino into 32 bit ARM Cortex MCUs  Different  types of 32 bit ARM Cortex MO M3 M4 MCUs can be selected and switched freely  because of CooCox CoX Peripheral Interface     CooCox CoX Peripheral Interface  a unified peripheral interface  makes it easy to  reuse Arduino Shields across different Cookie boards     CooCox also provides a complete tool kit including IDE  Flash Program  Graphical pin    configuration  and code generation tool  etc  The CooCox Component Platform also  makes it easy to share code     The NuMicro edition of Cookie has been added into CooCox and will be released  soon  As the next step  we will work on the ST edition  the TI edition  etc  of Cookie   as shown on our schedule on the Cookie   s homepage  www coocox org Cookie html        Hardware CAD design files open under CC BY SA 3 0 license in Eagle format   Fully compatible with Arduino  hundreds of Shields can be reused    Types of 32 bit ARM Cortex MCUs available  M0 M3 M4     Working on both 3 3V and 5V  selectable with jumper     CoLink
4. Ex  USB JTAG SW debug probe  onboard  Debug IN OUT selectable with  jumper     A set of free development tools provided by CooCox     Component platform makes it easy to share code     C O O C OX Cookie Board User Manual WWW COOCOX OrE    3 Cookie NuMicro          The Cookie NuMicro edition is based on the Nuvoton Cortex MO microcontroller  MO516LBN  The MO516LBN with Cortex MO core can run up to 50MHZ  with 64KB  Flash for program memory  4KB Flash for data memory  4KB SRAM  2 UARTs  2 SPIs   and 1 12C  Download data sheet from    http   download nuvoton com NuvotonMOSS DownloadService Member Documen  tsinfo aspx tp GUID DAO0 M058 516    The Cookie NuMicro edition is fully compatible with Arduino  with 14 digital  input output pins  of which 6 can be used as PWM outputs   6 analog inputs  a  power jack  an ICSP header  It contains everything needed to support the  microcontroller  There is also a CoLinkEx onboard to support program and debug   Simply connect it to a computer with a USB cable or power it with an AC to DC  adapter or battery to get started     As Cookie is an open source platform  all the documents and sources are free for  download  You can find the Schematic  BSP Code  and also the PCB file on our    website     www coocox org Cookie Cookie Nuvoton html     C O O C OX Cookie Board User Manual WwwwW COOCOX OrE          4 Board Details  O N In Out  ada                 SP            ma        UART  Interface    7 16V  Power    Reset board    IO  Compatible with
5. dit View Debug Search Help  H  R Er  4     Es Project x S Oh coshining  h ES  E      ginclude  xuart h   g E3 Cochinine  est i E Hinclude  xsysctl h    le Cok        gt  Col Peripheral  H E ine i    gt  sre     Debug  E i libshining    int main       xoysCtlClockSet  12000000  xS  YScTL OSC MAIN   x  xoysCtlDelay  1000                fe  coshining cfg h    Le  coshining  h    05 build  xml    xoyvsCtlPeripheralEnahle  xSYScTL PERIPH UARTO  77  xSySCtlPeripheralEnable  xGPlIOSPinToPeripherall  xOySCtlPeripheralClockSourceset  XSYSCTL UsRTO_    E  link  1d  E  e  mair  c  E  memory  ld         e  startup colide  c    sPinTypeDARTisUART DEG BASE    xUARTConfigset  SVART DEG BASE  115200   UART C  xUARTEnable  SUART DEG BASE   UART_BLOCEK UART      xUARTChar Put  XUARTO BASE  Hs    xUARTChar Put  xUARTO BASE   e       wITaPTCharPut fvITaPTO Rater TIA     lt q   nT nT    El Console    Debug FE 2a Semihost     Variable ET Expressi Si    t F F F 1 maini D  Program FilestColDEiworksr Value         3 Sign in to Coolox       fritable       The Cookie  like the Arduino  features a common footprint for expansion headers  that are intended to allow connectivity with a large number of expansion daughter  cards called  shields   The shields have been developed by both the original Arduino    13    C O O C OX Cookie Board User Manual WWW COOCOX Org       team and the community  These shields provide users with the ability to explore  different technologies from a common and familiar environm
6. ent such as motor  control  advanced communications such as Ethernet  Wireless connectivity  and  many more     CoX Peripheral Library is the definition of a group of interface functions  It defines  the functional access functions of MCU   s common peripherals  such as IIC  SPI  UART   etc  CoX makes full functions  drivers based on CoX that can be ported to other MCU  easily     Here  we use the CoX as the base library of Cookie   e Free and open source under BSD license    O Peripherals    library with an unified standard interface  can be ported to other  MCUs easily    e Full functions of the peripheral  CoX still provides a set of APIs for special MCU  features    O Supporting interrupt as CoX extracts a set of interrupt events  e A lot of reused drivers  O Extensive documentations generated using doxygen standard    e Standard definition of the API reference for almost all the Cortex M0 M3 MCU  manuals    O Adding a new innovative element  such as the short pin  PA2  in GPIO module    e Strict coding standard that does not affect code size and speed  through rigorous  testing and verification    Like the shield for the hardware building blocks  CoX and the drivers based on CoxX  are the software building blocks     You can develop the driver of a shield based on the CoX interface  Then the shield  can be used in different editions of Cookie  such as NuMicro edtion or STM32  edition     Note     Please set the appropriate board power  3 3V   5V  first according the shie
7. htm   5 1 2 Using ColDE to build and debug    In ColDE  you need to select Nuvoton  MO516LBN to start your project      lol x   File Edit View Project Flash Debug   Search Help     Beul slltas E    Ha    E Components  Device  MOS16LEN      El Common  gt    Po C Library  with 1 example         Peripheral CO  do O    Startup  O xLowLayer  O xCORE       Faa Project    NuMicroM051  Cortex MO Family     MOS LELEN  MOSL6ZEN    MOSLEM  MOS226N  MOSLEM  MOS4ZEMN    MOS 1 6LEN    Descriptions    Nuyvoton s MOS TELE operates  at a maximum speed of SOMHz  and Features 64 Kbytes of  Flash and 4 Kbytes of SRAM     MOSSLEN  MOSe26h       NuMicroMinist  Cortex MO Family   MiniSiL  M  Minib 1 ZAN  Minig2LAM  MiniszZANWN  Minig4LAM  Minist AMN    key Parameters       32 interrupt with 4 levels  of priority  40 GPIOs  LOFP43 Package  4032 bit Timers   amp  Ph  8 channels 12 bit ADC  2 UART  2 SFI  1 I2C  Low power sleep mode   Serial Wire Debug    E   Co Shining_ Mumicro Test  H E Co Shining    H E Coy  H E Debug  H E syscalls     soa build xml    coon link  Id    Manufacturers Chips   Feripherals          Source            4 Sign in to CooCox          When you want to download or debug the MO516LBN  Select CoLinkEx in Debug  Configuration     11    woe filter text    Cortex M Application    Co Shining Numicro T  Launch Group    Filter matched 3 of 3 items       Then you can debug your project     12    C O O C OX Cookie Board User Manual    I CooCox CoIDE       WWW COOCOX OTE    FEER   File E
8. ld you  use     14    CooC OX Cookie Board User Manual WWW COOCOX Org       Cookie Project       Cookie is an open source Arduino compatible ARM prototyping platform based on  32 bit ARM Cortex M0 3 4 MCU  plus hardware and software building blocks     What we want to do is to use Cookie board  Arduino Shields  CoX Library to build a  Cookie Project  or an Arduino project on ARM Cortex M series    MCU     To demonstrate the applications  we have designed an automatic system watering  the flowers with remote monitoring  We will make more effort on it and build more    interesting projects  We welcome you to participate        To do the project  we also need to use some Arduino shields  Here listed are some  Arduino shields that you may interested in     Name Producer Description CoX Supported    The character LCD module uses  LCD1602 CooCox   HD1602 as the main controller    The Motor Module uses LQ134  Motor CooCox   to drive the E Motor     You can download the code from www coocox org driver htm l          You can participate in the Cookie project via the following methods     1  Upload your code in CoIDE    The CoIDE 1 5 0 gives us the driver platform  You can upload the driver for your  Arduino shields through this way  You can add the shields to the device list then  upload the related driver  So all the person who use CoIDE will see your code     15       2     3     C OO e OX cookie Board User Manual   WWW COOCOX Org    Contribute through Github    We will build some i
9. nteresting projects on Github  and you can join us in those  projects  All the shields that may be used in those projects can be bought through  CooCox  You can also create a project using the shields at hands and commit it to  Our project     E mail your project to us    If you already make a project and transplant it to CoX  you can send the project to  us by E mail     We will select the good projects to post on our website and blog  Then you can  share your idea with everyone     16    
10. olinkEx USB Driver version 1 2 0 on  your computer     It is recommended that you dose all other applications before  continuing     Click Next to continue  or Cancel to exit Setup     2  Windows Vista 64bit or Windows 7 64bit   Installation file  ColinkExUsbDriver 1 2 1 exe    Please connect CoLinkEx to the computer before you start installing this driver     18  Setup   CooCox ColinkEx USB Driver    Welcome to the CooCox ColinkEx  USB Driver Setup Wizard    This will install CooCox ColinkEx USB Driver version 1 2 1 on  your computer     It is recommended that you dose all other applications before  continuing     Click Next to continue  or Cancel to exit Setup     10    C O O C OX Cookie Board User Manual WWW COOCOX OrE       When you install the driver  in device manager  you will found CooCox  COM x  under  Port and CooCox CoLinkEx Debug Interface under USB Controller     If there is    2     in front of the devices  it means that the driver has not been installed  on the system or install has failed  if there isn   t CooCox Port  it means that your  CoLinkEx firmware and driver could be out of dated      t YF CooCox  COM    oY FIEDLER  PTI   oY Bao  COMI   3 ra AL  i 15088  ty RE  O BS  MAIRIE hla     o BR CRS  Ce RA B77 Seki hlag   e   CooCox ColinkEx Debug Interface    a ae   fet mna fra   a haar ae fit t i il MA    v          To get more information of the onboard CoLinkEx  please check the CoLinkEx User    manual or visit CoLinkEx website     www coocox org Colinkex 
11. the board  7 12V   Supplying voltage via  the 5V or 3 3V pins bypasses the regulator  and can damage your board  We  don t advise it     6 3V3  A 3 3 volt supply generated by the on board regulator     e GND  Ground pins        The Cookie uses a Nuvoton M0516LBN as the main microcontroller  The NuMicro  MO516LBN is a 32 bit microcontroller with embedded ARM Cortex MO core for  industrial control and applications which need rich communication interfaces  The  Cortex MO is the newest ARM embedded processor with 32 bit performance at a  cost equivalent to traditional 8 bit microcontroller     e 32 bit with ARM Cortex MO core running at up to SOMHz        64KB Flash for programming  4KB SRAM  4KB Flash for data memory  4KB Flash  for boot loader     e Built in LDO for Wide Operating Voltage Range  2 5V to 5 5V     O Upto 40 GPIO Pins with LQFP 48 package     O 2 UARTs  2 SPIs  1 12C  4 channel 32 bit timer  1 watchdog timer  up to 4 16 bit  PWM generators with 8 PWM outputs  and 12bit SRC ADC up to 8 analog inputs        Each of the 14 digital pins on the Cookie can be used as an input or output or  hardware peripheral function  The operate volt is determined by the JP1  Board  Power select   can be 3 3V or 5V     Pin Map     C O O C OX Cookie Board User Manual WWW COOCOX Org         Arduino Pin   Arduino P Function MCU IO Map MCU Peripheral Function    eo mm a am  e mmm a ma  mm    m    mem    CooC OX Cookie Board User Manual WwwWwwW COOCOX OrE    mm meer  mm  eoo m remo   cen m
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
    NGS Spark  Revision History of the MPC8245 Integrated Processor User`s Manual  Model 44 Syringe Pump Series User`s Manual  Secador de Mãos STAR S14-04LP  ブラインド等のひもの安全対策  LCD-AD157G 取扱説明書  Bedienungsanleitung  Peg Perego Polaris RZR 900 User's Manual    Copyright © All rights reserved. 
   Failed to retrieve file