Atmel STK512 User Manual

STK512
....................................................................................................................
AVR-based Uni-directional Radio Starter Kit Featuring Secure Rolling-Code RF Transmission Encryption User Guide
Note: This Radio Starter Kit is not self-contained. It is based on an Atmel® AVR® STK®500
Flash Microcontroller Starter Kit that must be obtained separately.
5170C–AVR–10/09
Table of Contents
Section 1
Introduction.................................................................................................................1-1
1.1 Purpose.............................................................................................................................. 1-1
1.2 General Description ........................................................................................................... 1-1
1.3 Evaluation Kit Features......................................................................................................1-1
1.4 Included in the Kit .............................................................................................................. 1-2
Section 2
Getting Started ...........................................................................................................2-1
2.1 Hardware Assembly........................................................................................................... 2-1
2.2 Initial Programming ............................................................................................................ 2-6
2.2.1 Programming the ATmega88 to Control the Receiver......................................... 2-6
2.2.2 Programming the Transmitter(s).......................................................................... 2-7
2.3 Teach the Transmitters to the Receiver............................................................................. 2-8
2.4 The Demonstration ............................................................................................................2-9
Section 3
Programming Notes ...................................................................................................3-1
3.1 Configuration...................................................................................................................... 3-1
3.2 Project Compilation............................................................................................................ 3-2
3.3 EEPROM Image Generation.............................................................................................. 3-2
Section 4
Troubleshooting Guide...............................................................................................4-1
STK512 User Guide i
5170C–AVR–10/09
Section 1

Introduction

Congratulations on your purchase of the Atmel® AVR®-based Uni-directional Radio Starter Kit featuring Secure Rolling Code RF Transmission Encryption. This kit uses an Atmel STK troller Starter Kit that must be obtained separately.
This User’s Guide describes how to use this Starter Kit. Section 2, Getting Started, describes how to assemble and program the hardware to demonstrate a wireless link that uses a secure rolling code algo rithm. Section 3, Programming Notes, describes optional programming for the advanced user.

1.1 Purpose

This starter kit demonstrates a Secure Rolling Code Algorithm transmission protocol for use in a unidi­rectional wireless communication system. Typical applications for this algorithm are garage door openers, remote keyless entry, passive entry, and remote car-start systems.

1.2 General Description

This kit demonstrates the transmission protocol with one receiver and a pair of associated transmitters. However, a typical system can support many more transmitters.
Characteristics of this protocol are:
A transmission-encryption value that is valid only once, preventing interception and re-transmission to
gain unauthorized access,
Message content that is virtually impossible to predict, even if previous messages are known.
®
500 Flash Microcon-
-
For a thorough technical coverage of the hardware, software, and theory, read the application note, “AVR411: Secure Rolling Code Algorithm for Wireless Link” that is included on the accompanying CD.

1.3 Evaluation Kit Features

Advanced Encryption Standard (AES) and its Cipher-based Message Authentication Code (CMAC) mode of operation for transmitter authentication:
Multiple transmitters supportedPC command-line tools for cryptographic key managementUp to 256-bit key sizes supportedLess than 30 ms response time315/434/868 MHz ISM-band frequenciesATA5771/73/74 and ATA8741/42/43 UHF ASK/FSK transmitters with embedded ATtiny44
microcontroller
STK512 User Guide 1-1
5170C–AVR–10/09
Introduction
ATA5723/24/28 and ATA8203/04/05 UHF ASK/FSK receiversUser-programmable transmitters with 6-pin ISPSleep modes for minimal power consumption

1.4 Included in the Kit

Note: This Radio Starter Kit is not self-contained. It is based on an Atmel STK500 Flash Microcontroller Starter
Kit that must be obtained separately.
This starter kit includes all the essential components needed to demonstrate an AVR-based uni-direc­tional radio that features a Secure Rolling-Code RF Transmission Encryption protocol. Contents of this kit are listed and shown in
Transmitter application board ISP programming adapter for TransmitterReceiver application board with external antennaSTK512 Interface BoardATMega88 microcontroller (not shown)CDROM containing software, Data Sheets, and other documentation (not shown)
Figure 1-1.
1-2 STK512 User Guide
5170C–AVR–10/09
Figure 1-1. Kit Contents
Introduction
For investigating further capabilities of this kit, the following are optional:
JTAGICE mkII for debuggingIAR Embedded Workbench
®
AVR C compiler for changing and recompiling the source code without porting it to another compiler (precompiled source code with default configuration is provided on the CDROM).
STK512 User Guide 1-3
5170C–AVR–10/09
This section contains the steps required to get a simple system with a receiver and two transmitters up and running. Hardware assembly, initial programming of the components, teaching the transmitters to the receiver, and demonstrating the transmission protocol are described in the following subsections.

2.1 Hardware Assembly

The kit hardware must be interfaced to the STK500.
Step A: Assemble the STK500 Board
The STK500 Board must be set up properly before mounting the STK512 Interface Board. The assem­bled STK500 Board is shown in Figure 2-1.
Figure 2-1. STK500 Board with Ribbon Cables and Microcontroller
Section 2

Getting Started

STK512 User Guide 2-1
5170C–AVR–10/09
Loading...
+ 14 hidden pages