Atmel STK511 User Manual
Atmel STK511 User Manual

Atmel STK511 User Manual

Avr-based uni-directional radio starter kit
Hide thumbs Also See for STK511:

Advertisement

Quick Links

STK511
....................................................................................................................
AVR-based Uni-directional
Radio Starter Kit
User Guide
4842B–AVR–10/09

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STK511 and is the answer not in the manual?

Questions and answers

Summary of Contents for Atmel STK511

  • Page 1 STK511 ........................AVR-based Uni-directional Radio Starter Kit User Guide 4842B–AVR–10/09...
  • Page 2: Table Of Contents

    STK511 Receiver Interface Board................4-1 Hardware Description ......................4-1 4.1.1 Standalone Configuration ..................4-2 4.1.2 STK500/511 Assembly Configuration..............4-3 STK511 RF Receiver Interface Board ................4-3 4.2.1 Receiver Connectors ................... 4-3 4.2.2 Configuration Register DIP Switches..............4-4 STK511 User Guide...
  • Page 3 4.2.7 Receive Signal Routing ..................4-6 Software Description......................4-6 4.3.1 Overview......................4-6 4.3.2 Sample Software ....................4-7 Section 5 STK511 Transmitter Board..................5-1 Hardware Description ......................5-1 5.1.1 Overview......................5-1 5.1.2 Physical Features ....................5-1 5.1.3 Functional Features ..................... 5-2 5.1.4...
  • Page 4: Overview

    In addition to providing a quick, one-step, programming tool for configuring Atmel RF receivers, the Receiver Interface Board of the STK511 Starter Kit doubles as an expansion card for the STK500. This allows the user to develop software for receiver applications using any of the AVR microcontrollers sup- ported by the STK500.
  • Page 5 – Tiny13 + T5750 (868/915 MHz) CD containing sample software One CR2032 battery External whip antenna (RX only, TX antenna is PCB trace) Optional items not included in the kit: Atmel AVR STK500 Starter Kit and Development System STK511 User Guide 4842B–AVR–10/09...
  • Page 6: Getting Started

    The Receiver Application Board should be oriented with its signal pins toward the DIP switches and LEDs on the STK511 Receiver Interface Board. This places the power and ground test points on the top of the receiver board adjacent to the DATA selector switch. Insert the receiver board into the provided connectors.
  • Page 7: Running The Demo

    Getting Started 1. Once the hardware is setup, verify that the DATA selector switch is in the STK511 position. 2. Apply power, locate the DIP switch corresponding to the OPMODE register, and set the 5th DIP switch to the ON position. The LED enclosed in the silkscreen legend labeled Mod should light up, indicating a 1 (corresponding to ASK mode) was selected.
  • Page 8: Stk511 Receiver Interface Board Configuration

    010101101001 Note: The default values are also shown on the bottom line of the silkscreen on the STK511 board. 5. Once the DIP switches have been properly set, press the Configure button to write these values into the receiver's registers.
  • Page 9: Stk511 Receiver Board

    Mode Selection Unique to the Atmel ATA5743 only is the MODE input. This input changes the IC's internal basic clock cycle and can affect the polling duty cycle and Bit Check timing limits. If the receiver board was built for 315 MHz operation, the MODE input was connected to ground.
  • Page 10: Xtal Oscillator

    STK511 Receiver Board 3.1.5 XTAL Oscillator The internal local oscillator (LO) for the receiver is determined by a scaled representation of the crystal frequency. The scale factor is different for each receiver. The ATA5743 receiver uses the crystal fre- quency times sixty-four to achieve the LO frequency. The ATA5760 and ATA5761 both use the crystal times 128 for the LO.
  • Page 11: Software Description

    2 of PortB. For this demo, the RF signal is in Manchester format. It is possible to decode the data by measuring edge-to-edge timing of this line, but many Atmel receivers simplify this task by recovering the clock from the DATA signal. This clock can be found on the D_CLK line and will only appear when a predefined number of logic 1s (set in the OPMODE register under Bit Check) are followed by a logic 0.
  • Page 12 STK511 Receiver Board timeOut = 0; // Look for D_CLK to end pulse. if(flag1) while(!flag2 && timeOut < timeOutVal) // Check D_CLK. Exit when high if(PINB.2 == 1){flag2 = 1;} // Increment timeout else if(PINB.2 == 0){timeOut++;} // If D_CLK pulse was found continue to decode the incoming data...
  • Page 13 STK511 Receiver Board // Check D_CLK. Exit when high if(PINB.2 == 1) flag2 = 1; //PORTD = 0xFF; //For Debug // Increment timeout else if(PINB.2 == 0){timeOut++;} // Check level of DATA line. Load value into register if(PINB.4 == 1 &&...
  • Page 14 STK511 Receiver Board DisplayData = ReceiveData[1]; // Load data to be displayed delay_ms(40); // Wait DisplayLED(); // Write to LEDs delay_ms(40);// Wait ResetRX(); // Set the Receiver back to polling STK511 User Guide 4842B–AVR–10/09...
  • Page 15: Stk511 Receiver Interface Board

    Section 4 STK511 Receiver Interface Board Hardware Description Figure 4-1. STK511 Configuration Options Figure 4-2 Figure 4-3 STK511 Receiver Interface Board ( ) + Receiver Application Board ( ↓ ↓ Stand-alone configuration STK500 Development Board Figure 4-4 on page 4-2 Figure 4-5 on page 4-2 ↓...
  • Page 16: Standalone Configuration

    Figure 4-6. STK500/511 Assembly 4.1.1 Standalone Configuration The STK511 Receiver Interface Board can be used in a standalone configuration along with one of Atmel’s Receiver Application Boards (see Figure 4-4). When the Receiver Application Board is com- bined with the Receiver Interface Board and connected to an external 5 volt power supply, it’s configuration registers can be programmed and the resulting demodulation performance can be evalu- ated.
  • Page 17: Stk500/511 Assembly Configuration

    Interface Board that accept the Receiver Application Boards. These twelve pin connectors allow the receiver board to communicate with the STK511 Receiver Interface Board firmware, as well as route sig- nals to the sockets provided on the STK500 AVR Development board. The pin-outs of the different Receiver Application Boards are listed in a silkscreen table on the STK511 Receiver Interface Board.
  • Page 18: Configuration Register Dip Switches

    See the receiver datasheet for more information on the registers. The DIP switches on the STK511 Receiver Interface Board allow individual bits in these registers to be modified. As an added convenience, the STK511 Receiver Interface Board contains a silkscreen legend that specifies each bit function for both registers as well as their corresponding default value.
  • Page 19: Configuration Register Led Indicators

    Each register is written twice to allow verification that the proper data was set. The button is connected to PB6 of the on-board microcontroller I/O port. Note: The Data selector switch must first be set to the STK511 position for the settings to be written into the receiver. 4.2.6 On-board Microcontroller The STK511 Receiver Interface Board’s on-board microcontroller is the ATmega8515 8-bit AVR.
  • Page 20: Receive Signal Routing

    STK500. Provisions have been made for re-routing all the signals from the receiver to either the STK511 Receiver Interface Board or the STK500 boards. For the advanced user, this flexibility could be used to realize a complete stand-alone receiver system.
  • Page 21: Sample Software

    Lastly the receiver is held in polling mode with a sleep time defined by the register setting. 4.3.2 Sample Software Below is a sample of the STK511 Receiver Interface Board Firmware that shows how to write to the LIMIT register. //-------------------------------------------------------------------------- // Procedure: WriteLIMITReg...
  • Page 22 STK511 Receiver Interface Board cTempByte = *e_eeprom_ptr++;// Load LSB of LIMIT reg and decrement pointer for(cBitPos = 8; cBitPos > 0; cBitPos--) //-- Sync: while(TestBit(PINB,RX_DATA// Wait to Synchronization pulse begin (neg edge) // Timeout nach > 800 μs !!! delay_us(50);...
  • Page 23 STK511 Receiver Interface Board //-- Sync: while(TestBit(PINB,RX_DATA)) // Wait to Synchronization pulse begin (neg edge) // Timeout nach > 800 μs !!! delay_us(50); // Short Delay while(!(TestBit(PINB,RX_DATA))) // Wait to Synchronization pulse (pos edge) // Timeout nach > 300 μs !!! delay_us(50);...
  • Page 24: Stk511 Transmitter Board

    Overview Supplied with this kit is a single-frequency UHF RF transmitter, operating on 315, 433.92, 868.3, or 915 ® MHz. It employs the Atmel T575x series of UHF transmitter ICs and the Atmel AVR ATtiny13 8-bit microcontroller IC. The transmitter is housed in a 2-button key fob with openings in the fob that expose two LED activity-...
  • Page 25: Functional Features

    5.1.3 Functional Features Modulation Modes: The STK511 transmitter can be configured to modulate its RF carrier using either ASK or FSK. Selection of either modulation scheme is defined by the software in the microcontroller, which frees the user from having to change components on the PCB.
  • Page 26: Circuit Description

    4.8 MHz or 9.6 MHz clock. No external components are required. The accuracy of the oscilla- tor is ±10% of the nominal frequency. Atmel Application Note AVR053 outlines a method to re-calibrate the oscillator to an accuracy approaching ±1%.
  • Page 27 Crystal Oscillator: The crystal, X1, along with capacitors C6 and C7, determines the transmit frequency of the STK511 transmitter. C7 is the manufacturer-specified load capacitor for the crystal used. It places the transmitter at the main frequency of operation (e.g., 315 MHz, 433.92 MHz, etc.), for ASK/FSK mod- ulation, f0.
  • Page 28: Software Description

    One called STK511 TX UpDown, increments and decrements a counter and transmits the count value. The other, called STK511 TX Sensor, utilizes the integral CdS photocell as a light-intensity sensor and sends an 8 bit digital value corresponding to the voltage measured across the light sensor.
  • Page 29 STK511 Transmitter Board KeepAlive: RJMP Main ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;...
  • Page 30 STK511 Transmitter Board mode,ASK ; TP - Set mode to ASk RJMP ISRPinLoop ; TP - Exit button ISR ISRPinS1: R16,0x50 ; TP - If S1 pressed first set up WDT to 1/4 sec WDTCR,R16 R16,0x44 ; TP - This will start the timer when sei WDTCR,R16 ;...
  • Page 31 STK511 Transmitter Board ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;...
  • Page 32: Regulatory Requirements

    Regulatory Requirements General This kit is intended to showcase the broad flexibility of Atmel's RF radio chip-set by offering multiple transmission modes that span frequencies across the RF spectrum from 315 MHz to 915 MHz. Conse- quently, local regulatory limitations will apply that restrict certain combinations of transmission modes and RF spectrum.
  • Page 33: Operating Frequency

    FCC Rules and Regulations, Chapter 47, Part 15 Information with regard to European RF regulations can be found in: EN 300 220-1 Electromagnetic Compatibility and Radio Spectrum Matters ERC Recommendation 70-03 E Relating to the use of Short Range Devices STK511 User Guide 4842B–AVR–10/09...
  • Page 34: Troubleshooting Guide

    Interface Board connection to the ® 500 (VTG jumper). DATA Selector switch was not set to Set DATA Selector switch to the STK511 position when power LED on Receiver Application Board STK511 and re-apply 5V supply was applied not active...
  • Page 35 Verify that the power being supplied Power supplied is too low is 5V DATA Selector switch was not set to Set DATA Selector switch to the STK511 position when STK511 and re-press button Configure button pressed Reload the Receiver Interface Receiver Interface Board firmware Board Firmware as described in “Software Description”...
  • Page 36 Check for Sleep bits in the Receiver set to permanent sleep OPMODE register set for all 1 Verify correct register settings as Receiver limits incorrect given in chapter 1 Connect external whip antenna to Receiver antenna not connected Receiver Application Board STK511 User Guide 4842B–AVR–10/09...
  • Page 37 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...
  • Page 38 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip ATAKSTK511-9...

Table of Contents