mx-baseboard with lpcxpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mx-baseboard...

10
mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 mX-BaseBoard with LPCXpresso 1343 USER MANUAL http://shop.ngxtechnologies.com 1

Upload: others

Post on 17-Oct-2020

26 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

mX-BaseBoard with LPCXpresso 1343

USER MANUAL

http://shop.ngxtechnologies.com 1

Page 2: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Table of ContentsIntroduction..........................................................................................................................................3Features.................................................................................................................................................3Getting Started......................................................................................................................................3Requirement.........................................................................................................................................3

Hardware .........................................................................................................................................3Software ..........................................................................................................................................4

Setup.....................................................................................................................................................4Mounting the Xpresso Board...........................................................................................................4

Validating the mX-BaseBoard..............................................................................................................5Blink.................................................................................................................................................5LCD ................................................................................................................................................5Audio ..............................................................................................................................................5SD card............................................................................................................................................5I2C...................................................................................................................................................5USB..................................................................................................................................................5UART0 ............................................................................................................................................5Buzzer..............................................................................................................................................5Ext Int..............................................................................................................................................6ADC.................................................................................................................................................6PS/2..................................................................................................................................................6

ISP Programming..................................................................................................................................6Compiling the Workspace.....................................................................................................................8USB Boot loader...................................................................................................................................9

Schematics.......................................................................................................................................9Information.........................................................................................................................................10

Revision History......................................................................................................................10 Legal.........................................................................................................................................10 Disclaimers ..............................................................................................................................10 Trademarks ..............................................................................................................................10

http://shop.ngxtechnologies.com 2

Page 3: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

IntroductionmX-BaseBoard is a new addition to the BlueBoard line from NGX Technologies. This board

is intended to extend the functionality of the LPCXPRESSO LPC1343 board. The board is a stamp for LPC 1343. mX-BaseBoard can be used to extend the features of the stamp by providing connectors and interface to various peripherals of the stamp and provide power to the peripheral interface.

Features• 2x16 with contrast control & back light

• SD Card connector

• USB

• Power Jack

• Power Switch

• Reset Button

• ISP Button

• External interrupt Button

• Buzzer

• Audio Jack

• PS/2

• Serial Connector 0

• Preset for ADC

• On board EEPROM

Getting StartedBefore starting you would need the following things handy and ready. For compiling and

running programs refer to LPCXpresso Getting started with NXP LPCXpresso.

RequirementThe requirement is put in two sections.

Hardware

• Power adapter – rating 7.5 V, 1 AMP

http://shop.ngxtechnologies.com 3

Page 4: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

• SD card • USB mini cable • Serial cable• PS/2 Keyboard

Software

• PC with Windows OS • Use HyperTerminal as terminal software• LPCXPRESSO LPC1343 workspace from NGX Technologies

Setup

Mounting the Xpresso Board

The LPCXPRESSO LPC 1343 board should be mounted on the mX-BaseBoard with a particular alignment.

Note: Improper mounting of the Xpresso board on mX-BaseBoard may damage the Xpresso board and / the mX-BaseBoard.

The GND pin on Xpresso board should be aligned with the pin 1 of P9 female header on BaseBoard. Refer to the marking as shown in the image below.

http://shop.ngxtechnologies.com 4

Page 5: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Validating the mX-BaseBoardDownload the workspace as .zip form here.

Note: You need to flash the Xpresso board with the required firmware according to the functionality.

Blink

NGX_mX_1343_blink – This blinks the LED2 on the Xpresso board.

LCD

NGX_mX_1343_LCD – Reset the board and “NGX Technologies” is displayed on the LCD screen.

Audio

– work in progress

SD card

NGX_mX_1343_SD_card – Insert a SD card with FAT16 file system and reset the board. On the LCD it should display “SD-CARD Test PASS”. Remove the card and reset the board, it displays “SD-CARD Test FAIL”.

I2C

NGX_mX_1343_I2C – On the LCD it displays “I2C TEST PASS”. Connected to the I2C lines is an EEPROM device. The program writes and reads back a piece of data to test.

USB

NGX_mX_1343_USB_HID – Reset the board. Connect a USB cable to connector J7 with PC. In the device manager in Windows it should be “HID-compliant device” as shown below.

UART0

NGX_mX_1343_UART – Connect the serial cable to J4 and PC serial port. Open a serial terminal with 115200 baud, 8N1. The typed characters are echoed to the serial terminal.

Buzzer

NGX_mX_1343_buzzer – Reset the board and a tone is heard on the buzzer. The jumper JP1 should be inserted.

http://shop.ngxtechnologies.com 5

Page 6: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Ext Int

NGX_mX_1343_Ext_Int – Reset the board and the buzzer toggles between on and off when the button SW6 is pressed.

ADC

NGX_mX_1343_ADC – Reset the board and vary the pot R14. The change in value is represented as shown below.

PS/2

NGX_mX_1343_kbd – Connect a PS/2 keyboard and reset the board. Type in the keys on the keyboard and the corresponding characters are displayed on the LCD.

ISP ProgrammingOn the mX BaseBoard press and hold the ISP switch (SW5), then press and release reset

switch (SW4), then release ISP switch (SW5). This put the micro-controller in ISP programming mode. Using flash magic flash the device. Refer below for settings in screen shots.

Start the Flash Magic tool. Step 1: As in the screen shot select the device as “LPC 1114/301”. Select the com port to which the device is connected. Here it is “COM 1”. Set the baud rate to “38400”. Interface to “None (ISP)”. Set Oscillator MHz to “16”.Step 2: Tick mark “Erase all Flash+Code Rd Prot”

http://shop.ngxtechnologies.com 6

Page 7: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Step 3: Select the path for the .hex file.

Step 4: Tick mark “Verify after programming”

Before starting to program in the Options → Communications tab

Tick mark “High Speed Communications”

Options → Hardware config

Tick mark “Use DTR and RTS to control RST and ISP pin”.

http://shop.ngxtechnologies.com 7

Page 8: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Step 5: After this start the programming.

Compiling the WorkspaceDownload the workspace form here and unzip it. Start the LPCXpresso and point to the

directory path where the work space is unzipped.

In Xpresso IDE right click on the NGX_mX_1343_blink project and it can build, clean close the project.

After building the project initiate debug to download the program to the target. Press F8 to resume the program execution. This blinks the LED 2 on Xpresso board.

http://shop.ngxtechnologies.com 8

Page 9: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

USB Boot loaderThe Xpresso board can be programmed using USB interface. Flash the USB boot loader

firmware using any of the above method. The project space is NGX_mX_1343_USB_HID. Connect a USB cable from the base board (J7) to the PC

After reset it would be detected as an HID device in Windows Device manager.

On the base board press and hold switch (SW5), then press reset switch (SW4). Release the reset switch (SW4) and then SW5. The device will be detected as a external storage device.

A file named firmware.bin is already present. Delete this file and copy the led blink file NGX_mX_1343_blink.bin. Reset the board. The LED2 should blink.

Schematics

mX BaseBoard

http://shop.ngxtechnologies.com 9

Page 10: mX-BaseBoard with LPCXpresso 1343downloads.ngxtechnologies.com/download/user_manual/...mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011 Introduction mX-BaseBoard is a

mX-BaseBoard with LPCXpresso 1343 USER MANUAL v1.0 21/01/2011

Information

Revision History

version: v1.0 author: Milind Kakati

Legal

NGX Technologies Pvt. Ltd. provides the enclosed product(s) under the following conditions:

This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRATION, EDUCATION OR EVALUATION PURPOSES ONLY and is not considered by NGX Technologies Pvt. Ltd to be a finished end-product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design-, marketing-, and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards. This evaluation board/kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility, restricted substances (RoHS), recycling (WEEE), FCC, CE or UL and therefore may not meet the technical requirements of these directives or other related directives.

The user assumes all responsibility and liability for proper and safe handling of the goods. Further, the user indemnifies NGX Technologies from all claims arising from the handling or use of the goods. Due to the open construction of the product, it is the user’s responsibility to take any and all appropriate precautions with regard to electrostatic discharge.

EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE, NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES.

NGX Technologies currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive. NGX Technologies assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein.

Please read the User’s Guide and, specifically, the Warnings and Restrictions notice in the User’s Guide prior to handling the product. This notice contains important safety information about temperatures and voltages.

No license is granted under any patent right or other intellectual property right of NGX Technologies covering or relating to any machine, process, or combination in which such NGX Technologies products or services might be or are used.

Disclaimers

Information in this document is believed to be reliable and accurate. However, NGX Technologies does not give any representations or warranties, expressed or implied, as to the completeness or accuracy of such information and shall have no liability for the consequences of use of such information.

NGX Technologies reserves the right to make changes to information published in this document, at any time and without notice, including without limitation specifications and product descriptions. This document replaces and supercedes all information supplied prior to the publication hereof.

Trademarks

All referenced trademarks, product names, brands and service names are the property of their respective owners.

http://shop.ngxtechnologies.com 10