background image

5170C–AVR–10/09

/xM

Headquarters

International

Atmel Corporation
2325 Orchard Parkway
San Jose, CA 95131
USA
Tel: 1(408) 441-0311
Fax: 1(408) 487-2600

Atmel Asia
Unit 1-5 & 16, 19/F

 

BEA Tower, Millennium City 5

 

418 Kwun Tong Road

 

Kwun Tong, Kowloon

 

Hong Kong

 

Tel: (852) 2245-6100

 

Fax: (852) 2722-1369

Atmel Europe
Le Krebs
8, Rue Jean-Pierre Timbaud
BP 309
78054 Saint-Quentin-en-
Yvelines Cedex
France
Tel: (33) 1-30-60-70-00 
Fax: (33) 1-30-60-71-11

Atmel Japan
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
Japan
Tel: (81) 3-3523-3551
Fax: (81) 3-3523-7581

Product Contact

Web Site

www.atmel.com

Technical Support

[email protected]

Sales Contact

www.atmel.com/contacts

Literature Requests

www.atmel.com/literature

Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any 
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-
TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY 
WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN-
TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF 
THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
 Atmel makes no 
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications 
and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided 
otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use 
as components in applications intended to support or sustain life.

© 2009 Atmel Corporation. All rights reserved. Atmel

®

, logo and combinations thereof, AVR

®

, AVR Studio

®

, STK

®

 and others are registered 

trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Summary of Contents for STK512

Page 1: ...ional 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 ...

Page 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 ...

Page 3: ...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 p...

Page 4: ...r 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 Figure 1 1 Transmitter application board ISP programming adapter for Transmitter Receiver application board with external antenna S...

Page 5: ...ting further capabilities of this kit the following are optional JTAGICE mkII for debugging IAR 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 ...

Page 6: ...ts 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...

Page 7: ...g a 6 pin jumper cable supplied with the STK500 connect the two male headers ISP6PIN and SPROG2 4 Using a 10 pin jumper cable supplied with the STK500 connect the two male headers PORTC and LEDS 5 Using a 10 pin jumper cable supplied with the STK500 connect the two male headers PORTD and SWITCHES 6 Place jumpers on the following headers as shown in Figure 2 2 VTARGET AREF RESET XTAL1 OSCEL a 3 pin...

Page 8: ...ets use caution if a tool is used for leverage It is easy to bend pins or otherwise damage the STK500 and or the interface board Use a rocking motion while steadily pulling not prying it straight from the sockets 2 Insert the STK512 Interface Board into the EXPANDx sockets oriented with the LEDs and red DIP switches to the left hand side To verify the orientation check that the EXPAND0 pins on the...

Page 9: ...Getting Started 2 4 STK512 User Guide 5170C AVR 10 09 Figure 2 4 STK512 Jumper Placement ...

Page 10: ... board is removed from the interface board sockets use EXTREME caution The pins on the receiver board are very easily bent and broken Use a rocking motion to lift the board straight perpendicular out of the socket 1 Orient the receiver board above the Interface Board as shown in Figure 2 5 Carefully insert the Receiver Application Board into the STK512 Interface Board sockets 2 Install the antenna...

Page 11: ...g properly If the read attempt is successful a number will show in the window If not a pop up will appear describing the failure Consult the STK500 documentation to handle any failures 3 Select the Fuses tab and ensure that the Fuses are set as shown in Table 2 1 4 From the CD in the folder software IAR RX Release Exe program the flash of the ATMega88 with RX_fffMHz a90 Note fff is 315 434 868 or ...

Page 12: ... the window If not a pop up will appear describing the failure Consult the STK500 documentation to handle any failures 4 Select the fuses tab and ensure that the Fuses are set as shown in Table 2 2 5 From the CD in the folder software IAR TX Release Exe program the flash of the ATtiny45 with TX a90 6 From the CD in the folder software Precompiled program the EEPROM of the Tiny45 with TX_EEPROM_AES...

Page 13: ...tigation into this mode Familiarize yourself with the following instructions before beginning the teaching process Also keep your transmitter key fobs readily available The default timeout to teach a transmitter is 10 seconds before the receiver will exit the learn mode 1 Enter learn mode on the receiver by pressing the SW5 button on the STK500 The LED marked LED5 illuminates indicating that the r...

Page 14: ...ion feature a situation must be created to cause a transmitter key fob s counter to become out of sequence with the receiver s respective counter With the source code provided the window of acceptance defaults to a value of 100 That is the transmitter key fob must increment its counter 100 times above the count the receiver remembers for that transmitter key fob This can be done by moving the tran...

Page 15: ... backup copy of the original default configuration Note 1 Serial number command code and sequential counter value fields must not exceed 16 bytes A compile error will occur if the total size exceeds this limit Table 3 1 Basic Configuration Parameters Parameter Name Default Value Description KEY_BITS 128 Size of the AES cipher key in bits Allowed values are 128 192 and 256 bits where 256 bits is th...

Page 16: ...numbers and secret and shared keys for the system components Then use the supplied command line tools to generate one HEX file for every unit The secret key for the transmitters should be discarded after generating the HEX file They are not needed and could compromise system security if they get into the wrong hands Make sure that all transmitters that will be associated with a receiver have the s...

Page 17: ...rd VTG jumper Corresponding DIP Switch bit s not set Set the corresponding bit s to ON on the DIP Switch for that register Bias resistor s damaged Replace the corresponding bias resistor s on the back of the STK512 Interface Board with 1 k Incorrect firmware loaded into the STK512 Interface Board where I O port of the onboard microcontroller programmed to logic high Reload the STK512 Interface Boa...

Page 18: ... STK500 Verify the orientation of both sides of the ribbon cable Power not supplied to transmitter on board microcontroller Supply 3 volts to the transmitter microcontroller through the coin cell battery or via the STK500 Wrong device selected in the STK500 software Select ATtinyl3 from the Device menu Verify that the signature We matches in the Advanced tab Power and serial cable not connected to...

Page 19: ...OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT INDIRECT CONSEQUENTIAL PUNITIVE SPECIAL OR INCIDEN TAL DAMAGES INCLUDING WITHOUT LIMITATION DAMAGES FOR LOSS OF PROFITS BUSINESS INTERRUPTION OR LOSS OF INFORMATION ARISING OUT OF TH...

Page 20: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Atmel ATASTK512 EK1 AUT ...

Reviews: