You are on page 1of 17

AISP-U

USB DEVELOPMENT BOARD

User’s Manual

ONE STOP SOLUTION FOR YOUR EMBEDDED SYSTEMS NEEDS


39/B, Yogashram Society, Behind Manekbaug Society, Ahmedabad –380015, INDIA
TEL - +91 - 9825366832 EMAIL: gaurav_jogi@yahoo.co.in URL: http://gjmicrosys.tripod.com
Contents

1. Introduction 2
2. Getting Started 4
3. Installing USB Drivers 5
4. Programming 9
5. Executing 12
6. Schematics/Pin-Out 13
7. Trouble shooting 14
8. Contact 16

AISP-U 1 USER’S MANUAL


1. INTRODUCTION
AISP-U is an 8051 based, USB (1.1 & 2.0) compatible, development board, designed
specially for students, hobbyist and engineers. The board features the exciting new
Atmel AT89C5131 microcontroller, a high performance Flash version of the 8051 8-
bit microcontroller range, with on-board USB compliant module for USB 1.1 and
USB 2.0 Communications. Programs can be downloaded easily using the USB port.
Data and commands can also be transferred whilst the program is running via the
USB Port. Great for external control and real time monitoring systems using high-
speed USB transfers. The board includes the AT89C5131 Atmel microcontroller with
32k of In-System Flash Memory, 4 Kbyte EEPROM, for boot (3 Kbyte) and Data (1
Kbyte), 256 Bytes of scratchpad RAM, On-Chip Expanded RAM (ERAM) 1024
Bytes, 34 I/O lines, 5 channel PCA, 16-bit PWM, Full Duplex UART, SPI Interface,
Watchdog Timer and lots more. Self powered by USB*. All power supply
components and main crystal are in place and the unit is ready to run. Board can also
run on external 8-15 Volts DC power supply. Connectors are provided for USB,
RS232, and power and for all I/O pins, square headers (Bergs) and IDC headers are
provided. Toggle between programming and execution modes with press of single
switch. Download software is included, together with code examples in assembly
language, to get you up and running quickly.

Some of the Key features of the AISP-U Board are listed below:

Includes AT89C5131 with 32kb internal Flash Program Memory


USB 1.1 and 2.0 Compliant Module with interrupt on transfer completion
- Endpoint 0 for control transfers: 32 - byte FIFO
- 6 Programmable Endpoints with In or Out directions and with Bulk,
Interrupt or Isochronous transfers
Endpoint 1, 2, 3: 32-byte FIFO
Endpoint 4, 5: 2 x 64-byte FIFO with double buffering (Ping -
pong mode)
Endpoint 6: 2 x 512-byte FIFO with double buffering (Ping -
pong mode)

- Suspend/Resume interrupts
- Power on Reset and USB Bus reset
- 48 MHz DPLL for full speed bus operation
- USB Bus disconnection on Microcontroller reset.

Easy programming of the flash with the USB port of computer.


Self powered with USB*.
Can also be used with external power supply range from 8-15 Volts DC.
Options of DC JACK and Screw terminals for connecting external power
supply.
On board power regulator and power on LED.
Protection Diode for reverse supply protection.
On board DB9 serial port connector for transmitting and receiving via UART.

AISP-U 2 USER’S MANUAL


Toggling between programming/execution modes with press of single switch,
eliminating the need for any complex changes in the hardware.
Direct access to all the 5 ports viz. 34 I/O lines.
On board Interrupt switch.
EA jumper to select execution of internal or external code.
2x5 (8 port lines, 1 Vcc and 1 GND pin) IDC headers are provided on the
ports for easy interfacing of the external devices like matrix keyboard, ADC,
DAC, 7 – Segment display, relays etc.
Standard 16 pin LCD port (3 power pins, 3 control pin, 8 data pins and 2
backlight pins) for direct LCD connection.
Berg stripes (Square headers) are provided on all the 52 controller pins for
easy expansion.
4 LEDs on port 3 (Direct drive LED output).
An inbuilt flash memory of 32KB.
On-Chip ERAM of 1KB.
Flash memory of ATMEL controllers has a data retention life of more than 10
years
No special skills are required to operate the board.
Hex file can be downloaded easily with the help of user-friendly software
FLIP via USB port.

* USB Self powered mode is limited by the total current drawn by the board and the
interfaced devices. This depends on USB version and make. But the general current
carrying capacity of USB is 500mA

The below figure shows the top view of board with labels of components

AISP-U 3 USER’S MANUAL


2. GETTING STARTED
These steps will give you an idea of basic operations of the board and running the default
program loaded in the memory of AT89C5131. Follow the instructions carefully.

1. Remove the board and accessories (if any) from their respective packages.
2. Go to Atmel’s website and download the latest version of Flip or use the set up
given on the utility CD ROM. Following the installation steps, install the Flip
Software in the required Computer.
3. Please read the instruction’s manual of the Flip software carefully, before
operating the board.
4. Set the position of power jumper PWR_J appropriately to select the supply
modes. Setting the jumper on 12 pin will require external 8-15V DC power supply
and setting it in on 23 pin will operate on self-powered mode viz. USB powered.
Initially set it on USB powered mode i.e. set the PWR_J jumper on 23 pin.
5. Leave the EA_J jumper open for internal code execution and closed for external
code execution. Initially leave it open, to run the default program in memory of
AT89C5131.
6. Bring the USB ON/OFF switch to the OFF position (un-pressed condition). See
the figure below.

USB OFF USB ON

7. Insert Type A plug of the USB cable in the computer and the Type B plug of the
cable in AISP-U board.

Type A Type B

8. Power LED will glow and the LED0-LED4 will start blinking.
9. Blinking LEDs are due to the default program loaded in the flash and indicates
that the board is working properly. If the LEDs do not start blinking, please
ensure that you again follow the steps 1 to 8 properly or refer to the trouble
shooting section.
10. You can load and execute your own programs. To load and execute your own
programs please read the programming and executing portions.

AISP-U 4 USER’S MANUAL


3. INSTALLING USB DRIVERS
These steps will guide you how to install the drivers for the board. Follow the instructions
carefully.

1. After running the default program loaded in the memory of AT89C5131, the
second step is towards installation of drivers. First of all turn the USB ON/OFF
switch to OFF position.
2. Press and hold the PSEN switch on the board and than press and release the
RESET switch. After that, release the PSEN switch. Allow at least 1 second time
for each operation. This will enter the board in programming mode.
3. After that turn the USB ON/OFF switch to ON position.
4. A ‘Found New Hardware – USB Device’ message will appear on task bar as
shown in the figure below.

5. Immediately after that Found new Hardware Wizard window will appear.

AISP-U 5 USER’S MANUAL


6. Select ‘Yes, this time only’ option and click next as shown in figure below.

7. Select ‘Install from a list or specific location (Advanced)’ and click next.

AISP-U 6 USER’S MANUAL


8. Select ‘Search for the best driver in these locations’. Select ‘Include this location
in search:’ and browse the USB folder in directory where the FLIP is installed. By
default the flip will be installed in X:\Program files\ATMEL\FLIP 2.4.6\usb,
where X: is the label of the drive where flip is installed. Click next (See the
figure)

9. Please wait while the windows installs the driver. Following screen will appear
during this process

AISP-U 7 USER’S MANUAL


10. Windows will detect the device and following window will appear. Click Finish
to complete the installation

11. Open the Device Manger, you will find the device listed under Jungo –
AT89C5130/AT89C5131. This confirms the installation.

AISP-U 8 USER’S MANUAL


4. PROGRAMMING
The AT89C5131 is factory programmed with the USB boot loader. So it can be
programmed easily via USB port without taking it out from the system. Following steps
will guide you in programming.

1. The first and important step for programming the AT89C5131 is to ensure the position
of the USB ON/OFF switch on the board. USB ON/OFF switch should be OFF i.e. in un-
pressed (up) position as shown in the figure. If it is not than press the switch again so that
it will be un-pressed position.

USB OFF USB ON

2. Press and hold the PSEN switch on the board and than press and release the RESET
switch. After that, release the PSEN switch. Allow at least 1 second time for each
operation. This will enter the board in programming mode.

3. After that turn the USB ON/OFF switch to ON position.

4. Start FLIP by selecting ATMEL FLIP from the Programs menu.

Step 1 – Device Selection

Now from within FLIP, select SELECT from the DEVICES menu and select
AT89C5131 from the list of devices.

AISP-U 9 USER’S MANUAL


Click OK.

Step 2 – Connection Settings

From the SETTINGS menu, select COMMUNICATIONS followed by USB.


Following window will appear.

Click OPEN

FLIP will interrogate the hardware and display the software copies of the chips hardware
registers.

AISP-U 10 USER’S MANUAL


Step 3 – Selecting the Hex File

Select LOAD HEX from the FILE menu.

And select the hex file that you have just built and click on OPEN. Your program will be
loaded into FLIP’s buffer.

Step 4 – Performing the Operations

Ensure that Erase, Blank Check, Program and Verify are all checked and click on Run.
Your program will be written into flash memory on the AT89C5131.

FLIP’s status bar will display the progress of this operation.

1. Erasing Device
2. Blank checking Device
3. Programing Device
4. Verifying Device

AISP-U 11 USER’S MANUAL


5. EXECUTING
Executing the program loaded in the flash memory is very simple and requires no change
in the hardware.

After the program has been loaded successful in the flash memory, just press the RESET
switch on the board. Execution of the program will start automatically.

Program will continue to execute unless the supply is turned off or the switch is pressed
and the board is reset to enter the programming mode.

By default, when the supply is turned on or USB cable is connected to the board, the
program loaded in the memory of AT89C5131 will start executing.

AISP-U 12 USER’S MANUAL


6. SCHEMATICS
We don’t provide schematics, in the sample piece. Full schematics will be provided in
the purchased package.

AISP-U 13 USER’S MANUAL


7. TROUBLE SHOOTING

Below mentioned are some trouble-shooting tips that may solve your problem caused due
to overlooking.

Sr. Indications Possible Causes Action


No.
1. Power on LED is not a) Power Jumper (PWR_J) a) Connect the jumper.
glowing may not be connected.
b) Power Jumper (PWR_J) b) Connect the jumper in
may be connected wrongly proper place.
viz. USB or EXT.
c) Supply may be off if c) Turn ON the supply.
used in EXT mode.
2. ‘USB Device not a) USB ON/OFF switch a) Turn the USB ON/OFF
recognized’ may be turned on before switch off, Press and hold
entering the board in the PSEN switch on the
programming mode board and than press and
release the RESET switch.
After that, release the
PSEN switch. Now turn
ON the USB ON/OFF
switch

b) Board may not have b) Please allow at least 1


entered in the second time before
programming mode releasing the PSEN switch
after RESET, in the above
mentioned step a.
3. Unable to load program a) Board may be in the a) Get the board in
execution mode programming mode.

b) USB cable connections b) Tighten the USB cable


may be lose. connections.
4. Error while loading the a) Program may already be a) Erase the memory.
program loaded in the IC Refer to Erasing part in
Programming section for
more details on erasing
5. Unable to execute the a) Board may be in the a) Press RESET switch to
program programming mode. get the board in execution
mode
6. No response from the a) Lose connections a) Check the connections

AISP-U 14 USER’S MANUAL


devices interfaced to
the board. b) Some problem with the b) Check and replace the
interfacing device device
7. Not able to perform a) Controller IC may be a) Check and replace the
any action. problematic. controller IC.

AISP-U 15 USER’S MANUAL


8. CONTACT
If you have any queries regarding the development board or you want to order the same,
you can do so by sending an email at

gaurav_jogi@yahoo.co.in

Visit us at

GJ MICROSYSTEMS
39/B, YOGASHRAM SOCIETY,
BEHIND MANEKBAUG SOCIETY,
AHMEDABAD,
GUJARAT – 380015
INDIA
http://gjmicrosys.tripod.com
Tel. No. - +91 - 9825366832
Shipping of the products is provided worldwide.

This information is provided in the hope that it will be useful, but without any warranty.
We disclaim any liability for the accuracy of this information.

AISP-U 16 USER’S MANUAL

You might also like