Atmel ATmega168PB Xplained Mini

ATmega168PB Xplained Mini

Sample Firmware

  • 8led_1hz.hex: Example firmware for ATmega168P/PB

Program ATmega168PB (USB)

To program the ATmega168PB of the ATmega168PB Xplained Mini using its built-in programmer, hook up the Xplained Mini micro-USB port to any of the USB ports in the back of the PLT.

YAML test plans

  • atmega168pb-XPmini-erase.yaml: Test plan to erase ATmega168PB over USB

Test plan to erase ATmega168PB over USB
title: "Erase ATmega168PB through USB"
suite:
- ident: ICT-T1
  title: Erase ATmega168PB
  steps:
  - command: erase AVRATmega168PB_XPM
  • atmega168pb-XPmini-program.yaml: Test plan to program ATmega168PB over USB

title: "Program ATmega168PB through USB"
suite:
- ident: ICT-T1
  title: Program ATmega168PB
  steps:
  - command: program AVRATmega168PB_XPM 8led_1hz.hex

Program ATmega168PB (ISP)

To connect the ATmega168PB of the ATmega168PB Xplained Mini over ISP, hook up the Xplained Mini ISP connector to the JTAG port of the PLT.

ATmega168P Xplained Mini ISP - PLT connection

PLT-200A JTAG pin

PLT Signal

AVR Function

ISP Pin

AVR Signal

1

JTAG_VCC

VCC

2

Vcc

2

JTAG_TMS

RESET

5

PC6

3

GND

GND

6

GND

4

JTAG_TCK

SCK

3

PB5

6

JTAG_TDO

MISO

1

PB4

8

JTAG_TDI

MOSI

4

PB3

YAML test plans

  • atmega168pb-erase.yaml: Test plan to erase ATmega168PB

Test plan to erase ATmega168PB
title: "Erase ATmega168PB through ISP"
suite:
- ident: ICT-T1
  title: Power ON
  steps:
  - command: power JTAG on
  - command: sleepms 500
- ident: ICT-T2
  title: Erase ATmega168PB
  steps:
  - command: erase AVRATmega168PB_ISP
- ident: ICT-T3
  title: Power off
  steps:
  - command: power off
  • atmega168pb-program.yaml: Test plan to program ATmega168PB

Test plan to program ATmega168PB
title: "Program ATmega168PB through ISP"
suite:
- ident: ICT-T1
  title: Power ON
  steps:
  - command: power JTAG on
  - command: sleepms 500
- ident: ICT-T2
  title: Program ATmega168PB
  steps:
  - command: program AVRATmega168PB_ISP 8led_1hz.hex
- ident: ICT-T3
  title: Power off
  steps:
  - command: power off

References