Atmel AVR2070 Manual De Usuario

Descargar
Página de 93
 
54 
AVR2070 
8240B-AVR-06/09 
Figure B-8 ARM 6LoWPAN DataIndication 
sixlowpan_DataIndication()
Start
End
Call 6LoWPAN 
Layer to 
uncompress 
packet to buffer
Call IPv6 Layer on 
uncompressed 
packet
 
B.4 Writing a Custom Application Using RUM 
RUM is meant to be a base upon which a custom application can be written for a 
wireless product.  There are a few steps to doing this. 
•  Make sure the hardware is compatible with RUM. 
•  Add a new PLATFORM definition to RUM for the new hardware. 
•  Verify that the transceiver is talking to the microcontroller. 
•  Verify that the RUM network is working on the hardware. 
•  Add the application code to the project. 
Each of these steps is covered in detail. An AVR target is assumed in this section. 
B.4.1 Step 1: Make sure the hardware is compatible with RUM 
To work with RUM, the design must contain an AVR or ARM processor that is 
supported. As of this release, RUM has been proven to work with these 
microcontrollers: 
• ATmega1281 
• ATmega1284P 
•  ATmega88P, 168P, 328P 
• AT90USB1287 
• AT91SAM7X256 
Almost any AVR can be made to work with RUM, as long as it includes an SPI 
interface, as all of the AT86RF2xx transceivers interface with the microcontroller over 
SPI.  In addition to the SPI interface, the radio has an IRQ output that must be 
supported as an interrupt on the AVR.  This can be an external interrupt, pin change 
interrupt, or timer capture interrupt.  The 'RF230 has a rising edge interrupt signal,