ATAKSTK511-3 Atmel, ATAKSTK511-3 Datasheet - Page 21

KIT RF MODULE 315MHZ FOR STK500

ATAKSTK511-3

Manufacturer Part Number
ATAKSTK511-3
Description
KIT RF MODULE 315MHZ FOR STK500
Manufacturer
Atmel
Series
SmartRF®r
Type
Transmitter, Receiver, ASK, FSKr
Datasheets

Specifications of ATAKSTK511-3

Frequency
433MHz
Wireless Frequency
315 MHz
For Use With/related Products
ATSTK500
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
Q2262874
4.3.2
STK511 User Guide
Sample Software
When the Configure button is pressed, several things occur. First, the actual settings of the DIP Switches
are checked by reading ports A, C, and D. The settings are then programmed into the receiver according
to the Atmel bi-directional, one-wire interface protocol. The serial programming sequence is repeated
twice for each of the registers. Verification of the programmed data is accomplished by checking for the
presence of an acknowledge pulse. An acknowledge pulse occurs when the data written into the register
is the same as the data already in the register. Lastly the receiver is held in polling mode with a sleep
time defined by the register setting.
Below is a sample of the STK511 Receiver Interface Board Firmware that shows how to write to the
LIMIT register.
//--------------------------------------------------------------------------
// Procedure: WriteLIMITReg
// Function: Write register-value from EEProm to RX
// Author:
// Date:
// State:
//--------------------------------------------------------------------------
unsigned char WriteLIMITReg(void)
{
//--- Local Variabledeclaration:
unsigned char cBitPos; // Pointer to the current bit
unsigned char cTempByte;
unsigned int iQuit = 0;
char eeprom *e_eeprom_ptr;
//--- Write the LIMIT register into the receiver:
while(!iQuit)
{
delay_ms(TimeT1);
ClearBit(DDRB,RX_DATA);
//
delay_us(50);
e_eeprom_ptr = &e[2];
// Point to the fourth byte of memory (LSB of LIMIT)
//--- Send the programming start pulse (t1) to the Receiver:
ClearBit(PORTB,RX_DATA); // PortB.4 Low
SetBit(DDRB,RX_DATA);
SetBit(PORTB,RX_DATA); // PortB.4 Pullup
Toby Prescott
03.12.2004
-
// PortB.4 Input (=Open)
// Short Delay
// PortB.4 Output (=Low)
STK511 Receiver Interface Board
4842B–AVR–10/09
4-7

Related parts for ATAKSTK511-3