Atmel AVR2070 Manual De Usuario

Descargar
Página de 93
 
14 
AVR2070 
8240B-AVR-06/09 
TRX Pin 
SAM7X 
MCU Pin 
Port Port 
Function 
SCK 50 PA22  SPI1_SPCK 
SEL 49 PA21 SPI1_NPCS0 
IRQ 80 PA30 
IRQ0 
CLKM 70  PB24 
TIOB0 
SLEEP_TR 13 
PA8 
PA8 
RST 14 PA9 
PA9 
4.2.2 Firmware 
The low level driver code is located in two files: 
hal_arm.c 
hal_arm.h 
 
These files initialize SPI-1 and the discreet IO. Additionally, these files implement 
handler functions that the remainder of the code uses to interact with the radio. For 
instance, radio interaction is accomplished through functions such as 
hal_frame_read and hal_frame_write 
 for receiving and transmitting a frame over the air. Other functions such as 
hal_register_read and hal_register_write 
allow access to radio control registers. Please refer to the detailed documentation 
produced as a result of the integrated Doxygen comments in each source file. The 
radio registers are fully described in the files at86rf212_registermap.h  and 
at86rf23x_registermap.h
4.3 Serial Interfaces 
By default, none of the serial interfaces are enabled. Possible serial interfaces are 
USB and RS232. (There are two RS232 COM ports on the SAM7X board.) The telnet 
interface provides more than adequate user capabilities without the hassle of 
configuring a serial interface such as Hyperterminal. 
uTasker provides built in serial IO capabilities for RS232 and USB. To enable serial 
IO for terminal interaction by the user the following defines can be enabled in 
config.h
#define USB_INTERFACE 
#define SERIAL_INTERFACE 
 
The baud rate parameters for the RS232 port are: 
• 19,200 
BAUD 
• 8N1 
To use the USB connection on a PC running Microsoft Windows, a Windows USB 
driver must be installed. This USB driver is titled uTaskerAtmelVirtualCOM.inf and 
can be downloaded from the uTasker website site at 
www.utasker.com/software/softwareV1.3.html
 and complete documentation can be 
found at 
www.utasker.com/docs/uTasker/uTaskerV1.3_USB_Demo.PDF
. However,