AT90USB162 development board

The AVR-USB-STK board is a nice development board allowing you to explore the AT90USB162  . This board has a USB connector, a Joystick, a RS232, a SD-MMC card, an Audio output, an ICSP connector and an extension connector.

The AT90USB162 comes  pre-programmed with a bootloader which allows code to be programmed inside the chip without any external programmer, atmel supplies a piece of software that you can use to load your hex code to the device.

The AT90USB162 is a high-performance, low-power Atmel 8-bit AVR RISC-based microcontroller combines 16KB ISP flash memory with read-while-write capabilities, 512B EEPROM, 512 bytes SRAM, 22 general purpose I/O lines, 32 general purpose working registers, two flexible timer/counters with compare modes and PWM, USART, programmable watchdog timer with internal oscillator, SPI serial port, debugWIRE interface for on-chip debugging and programming, and five software selectable power saving modes. The device operates between 2.7-5.5 volts.

A nice easy board to get up and running, olimex supply schematics, a manual and a few code examples and you will see from later I was able to use a low cost USBASP programmer  to program the device using the 10 pin header that you can see in the picture below. There are enough on board features to play with and the pins from the microcontroller come out to a header which is handily located on the side of the board, easy to make your own adaptor board if you wanted.

avr usb stk

avr usb stk

I used a USBAsp with no issues and the khazama AVr programmer. The code was written in MikroC pro for AVR

 

Code

In this example we simply toggle the entire PORTD on and off, there is an onboard LED which will flash on and off, you can also connect another LED as well if you like to test.

void main() {
 
 
  DDRD = 0xFF;           // Set direction to be output
 
  do {
 
    PORTD = 0x00;        // Turn OFF diodes on PORTD
    Delay_ms(1000);      // 1 second delay
 
    PORTD = 0xFF;        // Turn ON diodes on PORTD
    Delay_ms(1000);      // 1 second delay
  } while(1);            // Endless loop
}

 

Links
AVR-USB-STK Atmel AT90USB162 USB Development Board – UK

USB ASP USB ISP 5V AVR SCM Programmer Adapter 10 Pin Cable & Case ATMEGA8 ATMEGA128 For Arduino Support Win 7 64Bit

OLIMEX AVR-USB-STK AT90USB162, USB, ICSP, SD/MMC CARD, DEV BOARD – US

Be Sociable, Share!

Comments are closed.