STK511 Receiver Board
3.2
3.2.1
3.2.2
Software Description
Overview
Decoding of the incoming digital signal from the receiver is performed by the AT90S8515 microcontroller
onboard the STK500 in socket SCKT3000D3. The demodulated RF signal present on the receiver DATA
line is routed to bit 4 of PortB. Also the D_CLK (Data Clock) line, provided by the RF receiver, is routed
to bit 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 . This logic 0 is considered the start bit and from this point forward the
D_CLK line will provide a low going pulse for each data bit. The decoding microcontroller watches for
these data clock pulses and records the state of the DATA line at each occurrence. The logic state of the
DATA line following each clock pulse signifies the bit value.
Three 8-bit registers are reserved for buffering the incoming data. As the demodulated signal is received
and decoded, as described above, it is loaded into these registers. Once this is complete, the three
received bytes are compared to each other. For the received data to be considered valid at least two of
the three received bytes must match. This redundancy improves system integrity.
A valid message results in the display of data on the LEDs of the STK500 board.
Sample Software
Below is a sample of the Demo Receive Software that decodes the incoming demodulated signal:
/*********************************************
Function : CheckRX
Date
Author
: 6/22/2004
: Toby Prescott
Company : Atmel
Comments: Decode logic for incoming demodulated signal
*********************************************/
void CheckRX(void)
{
// Initialize variables
int timeOut = 0, timeOutVal = 1000, i, j;
int flag1 = 0, flag2 = 0;
// Look for D_CLK to begin pulse. This is for the start bit
while(!flag1 && timeOut < timeOutVal)
{
// Check D_CLK. Exit when low
if(PINB.2 == 0){flag1 = 1;}
// Increment timeout
else if(PINB.2 == 1){timeOut++;}
}
STK511 User Guide
3-3
4842B–AVR–10/09
相关PDF资料
ATAKSTK512-3 KIT RF MOD REMOTE 315MHZ UNIDIR
ATAVRUSBRF01 KIT REF DES AVR NORDIC 2.4GHZ
ATMEGA128RFA1-ZUR IC AVR MCU 2.4GHZ XCEIVER 64QFN
ATMEGA64RZAPV-10AU BUNDLE ATMEGA644P/AT86RF230 TQFP
ATP101-TL-H MOSFET P-CH 30V 25A ATPAK
ATP102-TL-H MOSFET P-CH 30V 40A ATPAK
ATP103-TL-H MOSFET P-CH 30V 55A ATPAK
ATP104-TL-H MOSFET P-CH 30V 75A ATPAK
相关代理商/技术参数
ATAKSTK511-4 功能描述:射频开发工具 434 MHz AVR based RF Starterkit RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATAKSTK511-8 功能描述:射频开发工具 868 MHz AVR based RF Starterkit RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATAKSTK511-9 功能描述:射频开发工具 915 MHz AVR based RF Starterkit RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATAKSTK512-3 功能描述:射频开发工具 REMOTE ACCESS CNTRL UNDIRECTIONAL KIT RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATAKSTK512-4 功能描述:射频开发工具 REMOTE ACCESS CNTRL UNDIRECTIONAL KIT RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATALB WAF 制造商:Fairchild Semiconductor Corporation 功能描述:
AT-AM-2A 制造商:Banner Engineering 功能描述:Relay, E-Mech, Control, Cur-Rtg 4A, Ctrl-V 115AC, Vol-Rtg 250AC/DC, DIN Rail Mnt, CE 制造商:Banner Engineering 功能描述:SAFETY RELAY SPST-NO 115VAC 4A 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A, Coil Voltage VAC Nom:115V, Contact Current Ma 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A, Coil Voltage VAC Nom:115V, Contact Current Max:4A, Contact Voltage AC Nom:250V, Contact Voltage DC Nom:250V, Contact Configuration:SPST-NO, No. of Poles:1, Relay Mounting:DIN Rail, Carry Current:4A , RoHS Compliant: Yes
ATAM510 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:MARC4 4-bit MTP Universal Microcontroller