micro2142/8 board is an advanced ARM board based on the NXP 2142/8 USB microcontroller featuring 60 MIPS 64kB/512kB Flash space and 16kB/32kB of RAM space. MAIN FEATURES Integrated USB bootloader (8kB) that will let you work without any kind of programmer or software (Push button to start the on board bootloader.) microsd connector ready to use, connected to SPI0 12 Mhz on board cristal Integrated 5V to 3.3V regulator up to 800mA (the micro is 5V tolerant) 32.768KHz Real Time Clock crystal. 5 pin USB micro-b connector. 3 leds for easy monitoring. Reset circuit Easy to start with GCC4 development tools based on WinARM and Programmer s notepad. Easy to use Libraries for: microsd FAT16/32 file access, Virtual COM port, PWM outputs, A/D converters, DAC, PWM inputs, USART, I2C, SPI. 2 x 0.254mm step double headers for easy prototyping. Size: 53 x 34.5 mm. micro2142/8 board 1
PORTS DESCRIPTION For more detailed information about pin I/O functions, please refer to page 7 of LPC214x datasheet: http://www.nxp.com/acrobat_download/datasheets/lpc2141_42_44_46_48_4.pdf P0 Connections (left) Description Port Pin Pin Port Description GPIO,AD0.4,AOUT P0.25 25 26 GND Ground GPIO,AD1.7,CAP0.0,MAT0.0 P0.22 23 24 P0.23 GPIO,VBUS GPIO,MAT1.3,SSEL1,EINT3 P0.20 21 22 P0.21 GPIO,PWM5,AD1.6,CAP1.3 GPIO,CAP1.3,MISO1,MAT1.3 P0.18 19 20 P0.19 GPIO,MAT1.2,MOSI1,CAP1.2 GPIO,EINT0,MAT0.2,CAP0.2 P0.16 17 18 P0.17 GPIO,CAP1.2,SCK1,MAT1.2 GPIO,DCD1,EINT1,SDA1 P0.14 15 16 P0.15 GPIO,RI1,EINT2,AD1.5 GPIO,DSR1,MAT1.0,AD1.3 P0.12 13 14 P0.13 GPIO,DTR1,MAT1.1,AD1.4 GPIO,RTS1,CAP1.0,AD1.2 P0.10 11 12 P0.11 GPIO,CTS1,CAP1.1,SCL1 GPIO,TXD1,PWM4,AD1.1 P0.8 9 10 P0.9 GPIO,RXD1,PWM6,EINT3 GPIO,MOSI0,CAP0.2,AD1.0 P0.6 7 8 P0.7 GPIO,SSEL0,PWM2,EINT2 GPIO,SDA0,MAT0.0,EINT1 P0.4 5 6 P0.5 GPIO,MISO0,MAT0.1,AD0.7 GPIO,SCL0,CAP0.0 P0.2 3 4 P0.3 GPIO,SDA0,MAT0.0,EINT1 GPIO,TXD0,PWM1 P0.0 1 2 P0.1 GPIO,RXD0,PWM3,EINT0 micro2142/8 board 2
P1 Connections (right) Description Port Pin Pin Port Description Ground GND 25 26 /RST Low level reset 5V Output 5V 23 24 3.3V 3.3V Input/Output ADC Reference voltage VREF 21 22 VBAT RTC Battery 3V input GPIO,TMS P1.30 19 20 P1.31 GPIO,TRST GPIO,TDI P1.28 17 18 P1.29 GPIO,TCK GPIO,RTCK P1.26 15 16 P1.27 GPIO,TDO GPIO,TRACECLK P1.24 13 14 P1.25 GPIO,EXTIN0 GPIO,PIPESTAT1 P1.22 11 12 P1.23 GPIO,PIPESTAT2 GPIO,TRACESYNC P1.20 9 10 P1.21 GPIO,PIPESTAT0 GPIO,TRACEPKT2,LED P1.18 7 8 P1.19 GPIO,TRACEKPT3 GPIO,TRACEPKT0,LED P1.16 5 6 P1.17 GPIO,TRACEPKT1,LED GPIO,AD0.3,EINT3,CAP0.0 P0.30 3 4 P0.31 OUT,UP_LED,CONNECT (*1) GPIO,AD0.1,CAP0.3,MAT0.3 P0.28 1 2 P0.29 GPIO,AD0.2,CAP0.3,MAT0.3 *1) Output only pin. If you pull P0.31 to GND during reset JTAG connections will be disabled: TMS, RST, TDI, TCK, RTCK, TDO, TRACECLK, EXTIN0, PIPESTAT[2..0], TRACEPKT[3..0]. Grey Marked These functions are only available in the micro2148 version. BOARD LEDS The board has 3 leds that are factory-enabled. You can disable if you remove the LEDENable connection. D1 is connected to P1.16 D2 is connected to P1.17 D3 is connected to P1.18 Easy access to these ports is provided by the LEDs_init(), LEDs_on(xx), LEDs_off(xx) functions integrated into the SDK. Please refere to the embedded boards 214x SDK guide for more information. LEDEN is factory closed by the small tin drop under RP1 in the board. Espardino micro2142/ micro2142/8 board 3
BOARD FLASHEN BUTTON Board button FLASHEN is used for bootloader operation at power up. In our software it can be used reading P1.16 input. P1.16 is connected to VCC 3.3V using a 10k pull-up resistor, FLASHEN button isconnected to ground. USB USB Bootloader Operation The USB Bootloader is very simple. To load your new firmware you should push the FLASHENable button, and then connect the USB cable while your board is unpowered. A new drive CRP2 ENABLD will appear in your computer. To load the firmware just erase the firmware.bin inside the drive, and copy the new one. Green led will blink while write operation is in progress. Then you can unplug the USB, and your new firmware is ready to run. micro2142/8 board 4
Building your software When building your software for use with the micro2142/8 integrated bootloader you must link over the 0x2000 space. Bootloader resides in the 0x0000-0x2000 flash space (that means 8kB). If you build using GCC an special linker script is provided with our SDK and examples. If you want to use Keil, or other vendor s software you must setup your target flash to start at 0x2000. For use with the bootloader a.bin file is used. When using GCC you can get it using the arm-elf-objcopy utility provided in our SDK. In other cases you should setup your software to generate a.bin output file as result of your compilation process. BLOCK DIAGRAM micro2142/8 board 5
ERRATA REV-1.0: Vin(5V) Errata: 5V Output is marked as Vin(5V) in the silk screen, and that pin should only be used as 5V output when you want to power other devices on your design with USB 5V. If you want to power your micro214x from your design please use the 3.3V input/output pin. http://www.espardino.com micro2142/8 board 6