|
发表于 2014-1-21 20:38:03
|
显示全部楼层
2.2.1 RX
ADC
Control
To setup the timing of RX ADC and SPORT, 2 timings need to be defined in
l1d_custom_rf.h
. The time from RX
ADC enabling to RX SPORT turning on (
R0
) is defined as
QB_RX_FENA_2_FSYNC
.The time from RX SPORT
turning on (
R1
) to RX ADC disabling is defined as
QB_RX_FSYNC_2_FENA
. The value of this two aliases should
be positive or zero.
2.2.2
Serial Interface Control
BSI data and events need to be set in serial to a 3-wire base RF module. Each RX window is allocated 3 BSI
events. Usually 1'st BSI event is used to warm up the synthesizer and set its N-counter to lock the operation
frequency. The 2'nd BSI is used to set the receiving amplifier gain of transceiver. The 3'rd BSI is used to
command transceiver entering idle mode.
The timing of 1'st BSI event is defined as
QB_SR1
in file
l1d_custom_rf.h
. With 1'st BSI event is triggered, 1 to 4
BSI data can be sent. The data count with 1'st BSI event should be claim by defining
SX1_DATA_COUNT
in file
l1d_rf.h
. To set the BSI data with 1'st BSI event, the function
L1D_RF_SetSData_SR1()
in file
m12195.c
should
be implemented. That is:
(1) In
l1d_custom_rf.h
,
define the timing of 1'st BSI event ahead of R0 in quarter-bit unit. If the value is
negative, the timing of 1'st BSI event is behind R0. Otherwise, the timing of 1'st BSI event is ahead of R0:
#define QB_SR1
QB_ahead_of_R0
To avoid overlapping the RF setting of other window, the limitation of SR1 setting is described detail in
the chapter 3.
(2) In
custom_rf.h
,
define the BSI data count with 1'st BSI event to be sent. Due to the resource limitation,
the data count with 1'st BSI event should not excess 3. I.e. the data count should be 1, 2, or 3.
#define SX1_DATA_COUNT
data_count
(3) In
m12195.c
,
implement the function
L1D_RF_SetSData_SR1
to specify the data to be sent |
|