RDA1846 Programming Manual
RDA1846 Programming Manual
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
1
RDA1846
Contents
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
2
part without prior written permission of RDA.
RDA1846
15. TX and RX code..................................................................................................... 16
16. GPIO ....................................................................................................................... 16
17. INT........................................................................................................................... 17
18. St_mode ................................................................................................................. 18
19. Pre-emphasis/De-emphasis filter ........................................................................ 20
20. Only read register ................................................................................................. 20
21. Flag......................................................................................................................... 21
22. Initial process ........................................................................................................ 21
23. Register introduction............................................................................................ 21
Change List ........................................................................................................................................................ 25
Disclaimer .......................................................................................................................................................... 26
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
3
part without prior written permission of RDA.
RDA1846
Document overview
This programming guide has been restructured from previous revisions for clarity. This contains two
documents for interface and programmer separately. Interface document contains I2C interface, 3 wire SPI
interface and 4 wire SPI interface .Programmer document contains a complete programming guide for using
any interface.
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
4
part without prior written permission of RDA.
RDA1846
Doc. A: Interface
RDA1846 each register write is 24-bit long, including a r/ w bit,7-bit register address , and 16-bit data (MSB is
the first bit).
R/W
A[6:0]
D[15:0]
Note
If register address is more than 7FH, first write 0x0001 to 7FH, and then write value to the address
subtracted by 80H. Finally write 0x0000 to 7FH
Example: writing 85H register address is 0x001F .
Move 7FH 0x0001;
Move 05H 0x001F; 05H=85H-80H
Move 7FH 0x0000;
1. I2C Interface
RDA1846 enable software programming through I2C interface. Software controls chip working states, such as
Txon or Rxon operation, and reads status register to get operation result through I2C interface.
It includes two pins: SCLK and SDIO.
A I2C interface transfer begins with START condition, a command byte and data bytes, each byte has a
followed ACK (or NACK) bit, and ends with STOP condition. The command byte includes a 7-bit chip
address and a r/ w bit. The 7-bit chip address is 7b0101110 when SEN is high, or is 71110001 when SEN is
low.The ACK ( or NACK) is always sent out by receiver. When in write transfer, data bytes is written out
from MCU, and when in read transfer, data bytes is read out from RDA1846.
RDA1846
SYMBOL
TEST CONDITION
MIN
TYP
MAX
UNIT
SCLK Frequency
fscl
400
KHz
thigh
0.6
tlow
1.3
tsu:sta
0.6
thd:sta
0.6
tsu:sto
0.6
tsu:dat
100
ns
thd:dat
900
ns
tbuf
1.3
tf:out
20+0.1Cb
250
ns
tr:in / tf:in
20+0.1Cb
300
ns
tsp
50
ns
Cb
50
pF
pF
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
RDA1846
RDA1846 enable software programming through three-wire(SPI) interface. Software controls chip working
states, such as Txon or Rxon operation, and reads status register to get operation result through three-wire
interface.
Three-wire interface is slave interface. It includes three pins: SEN , SCLK and SDIO. SEN and SCLK are
input pins , SDIO are bi-direction pins.
RDA1846 samples command byte and data at posedge of SCLK.The turn around cycle between command byte
from MCU and data from RDA1846 is a half cycle. RDA1846 samples command byte at posedge of SCLK,
and output data also at posedge of SCLK.
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
RDA1846
SYMBOL
TEST CONDITION
MIN
TYP
MAX
UNIT
tCLK
tR
50
ns
tF
50
ns
tHI
10
ns
tLO
10
ns
ts
10
ns
th
10
ns
35
ns
tcdv
Read
10
ns
tsdz
Read
10
ns
pF
Four-wire interface is slave interface. It includes four pins: SEN , SCLK , SDI and SDO. SEN ,SCLK and
SDI are input pins , SDO are bi-direction pins.
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
RDA1846
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
RDA1846
Name
Function
29H[13:0]
freq<29:16>
2aH[15:0]
freq<15:0>
2. Setting RF band
Bit
0fH[7:6]
Name
band_select<1:0>
Function
00 = 400~520MHz
10 =200~260MHz
11 = 134~174MHz
3. Reference clock
RDA1846 takes 12MHz~14MHz or 24MHz~ 28 MHz crystals as its master reference clock. Setting 2bH[15:0],
2cH[15:0] and 04H[0] according different reference clock.
Bit
Name
Function
2bH[15:0]
xtal_freq<15:0>
2cH[15:0]
adclk_freq<15:0>
clk_mode
12~14MHz:1
24~ 28MHz:0
04H[0]
RDA1846
2bH[15:0]= xtal_freq<15:0>=12.8*1000=12800
2cH[12:0] =adclk_freq<15:0>=(12.8/2)*1000=6400
04H[0]= clk_mode =1
26M crystal (24MHz~28MHz)
2bH[15:0]= xtal_freq<15:0>=(26/2)*1000=13000
2cH[15:0] =adclk_freq<15:0>=(26/4)*1000=6500
04H[0]= clk_mode =0
4. Setting Tx and Rx
Bit
Name
30H[13:12]
Function
channel_mode
30H[6]
tx_on
1 = on
0 = off
30H[5]
rx_on
1 = on
0 = off
5. Deep sleep
Bit
30H[2]
Name
pdn_reg
Function
The same as pdn pin
1 = enable
0 = disable
While Normal mode, pdn_reg and PDN pin must be high at the same time. Only one of pdn_reg and PDN pin
is low ,which can turn into deep sleep.
6. TX voice channel
Bit
3cH[15:14]
Name
voice_sel<1:0>
Function
=00; Tx voice signal from MIC
=01; Tx inner sine tone setted by tone2
=10; Tx code from GPIO1 code_in (gpio1<1:0> must be
set to 01)
=11; not Tx any signal
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
10
RDA1846
7. TX Pa_bias output voltage
RDA1846 Pa_bias pin output voltage can be controlled by 0aH [5:0].
Bit
0aH [5:0]
Name
pabias_voltage<5:0>
Function
000000: 1.01V
000001:1.05V
000010:1.09V
000100: 1.18V
001000: 1.34V
010000: 1.68V
100000: 2.45V
1111111:3.13V
8. Subaudio
Bit
Name
Function
45H[2:0]
c_mode<2:0>
45H[3]
ctcss_sel
45H[4]
cdcss_sel
24/23 bit cdcss code sel for both txon and rxon
1 = 24 bit code
0 = 23 bit code
45H[7]
neg_det_en
45H[11]
Pos_det_en
45H[10]
css_det_en
ctcss_freq<15:0>
4aH[15:0]
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
11
RDA1846
in rx and tx state
4bH[7:0]
4cH[15:0]
4bH[7:0]=cdcss_code<23:16>
4cH[15:0]=cdcss_code<15::0>
23/24 bit CDCSS can controlled by 45H [4] (CDCSS_sel). CDCSS_sel=1 is 24 bit code ,=0 is 23bit code.
Such as TX 94.7Hz CTCSS :
4aH[15:0](ctcss_sentreg)=0.0974*(2^16) = 6383
Note: setting 45H [2:0]=000 when without subaudio
Add dcs_pos_det & dcs_neg_det register in 45H when use cdcss mode
9. SQ
Bit
Name
Function
30H[3]
sq_on
45H[3]
ctcss_sel
45H[10]
css_det_en
48H[9:0]
th_h_sq<9:0>
Sq open threshlod
49H[9:0]
th_l_sq<9:0>
Sq shut threshold
sq_out_sel
54H[7]
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
12
RDA1846
10.
VOX
Bit
Name
30H[4]
Function
vox_on
41H[15:0]
th_h_vox<15:0>
Vox open threshold
42H[15:0]
th_l_vox<15:0>
Vox Shut threshold
11.
While setting 30H [11]=1 eliminates tail noise when Tx and Rx, note turning on Tx and Rx CTCSS
Tx CTCSS phase can be controlled by 45H[15:14].
Bit
Name
30H[11]
45H[15:14]
12.
operation.
Function
tail_elim_en
shift_select<1:0>
DTMF
Bit
Name
Function
63H[15:10]
others<5:0>
000000
63H[9:8]
Dtmf_mode<1:0>
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
13
RDA1846
63H[7:4]
dtmf_time1<3:0>
63H[3:0]
dtmf_time2<3:0>
35H[15:0]
tone1_freq<15:0>
interval_v_reg=
(Tone1 freq(kHz)* 2^12)
36H[15:0]
tone2_freq<15:0>
interval_c_reg=
(Tone2 freq(kHz)* 2^12)
5cH[12]
dtmf_idle
Dtmf idle
66H[15:8]
dtmf_c0
697Hz
66H[15:8]= 01100001 12.8MHz and 25.6MHz
66H[15:8]= 01100001 13MHz and 26MHz
66H[7:0]
dtmf_c1
770Hz
66H[7:0]=01011011 12.8MHz and 25.6MHz
66H[7:0]=01011110 13MHz and 26MHz
67H[15:8]
dtmf_c2
852 Hz
67H[15:8]=01010011 12.8MHz and 25.6MHz
67H[15:8]= 01010111 13MHz and 26MHz
67H[7:0]
dtmf_c3
941 Hz
67H[7:0]=01001011 12.8MHz and 25.6MHz
67H[7:0]= 01001011 13MHz and 26MHz
68H[15:8]
dtmf_c4
1209 Hz
68H[15:8]=00101100 12.8MHz and 25.6MHz
68H[15:8]=00110001 13MHz and 26MHz
68H[7:0]
dtmf_c5
1336 Hz
68H[7:0]=00011110 12.8MHz and 25.6MHz
68H[7:0]=00011110 13MHz and 26MHz
69H[15:8]
dtmf_c6
1477 Hz
69H[15:8]=00001010 12.8MHz and 25.6MHz
69H[15:8]=00001111 13MHz and 26MHz
69H[7:0]
dtmf_c7
1633 Hz
69H[7:0]=11110110 12.8MHz and 25.6MHz
69H[7:0]=11111011 13MHz and 26MHz
6cH[10:5]
dtmf_index<5:0>
6cH [4]
dtmf_flag
6cH [3:0]
dtmf_code<3:0>
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
14
RDA1846
F4
F5
F6
F7
F0
F1
F2
F3
E(*)
F(#)
13.
Tx FM deviation
Bit
[15:13]
43H [12:6]
Name
Function
others
00
xmitter_dev<6:0>
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
15
RDA1846
43H [5:0]
c_dev<5:0>
Adjusting 43H [12:6] ( xmitter_dev) can change Tx FM deviation of voice and subaudio.
Adjusting 43H [5:0] ( c_dev) can only change Tx FM deviation of CTCSS and CDCSS.
14.
Rx voice range
Bit
Name
Function
44H[15:8]
others
00000000
44H[7:4]
volume1<3:0>
44H[3:0]
volume2<3:0>
Adjusting 44H [3:0] and 44H [7:4] can change Rx voice range.
15.
TX and RX code
TX code mode
Step1: 45H[2:0]010
RX code mode
Step1: set 45H[2:0]=001
Step2: set 4dH[15:10]=000001
16.
GPIO
Register 1fh.
Bit
Name
Function
15:14
gpio7<1:0>
00 =hi-z
01 = vox
10 = low
11 = high
13:12
gpio6<1:0>
00 =hi-z
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
16
RDA1846
01 = sq,
or =sq&ctcss/cdcss,when sq_out_sel=1
10 = low
11 = high
11:10
gpio5<1:0>
00 =hi-z
01 = txon_rf
10 = low
11 = high
9:8
gpio4<1:0>
00 =hi-z
01 = rxon_rf
10 = low
11 = high
7:6
gpio3<1:0>
00 =hi-z
01 = sdo
10 = low
11 = high
5:4
gpio2<1:0>
00 =hi-z
01 = int
10 = low
11 = high
3:2
gpio1<1:0>
00 =hi-z
01 = code_out/code_in
10 = low
11 = high
1:0
gpio0<1:0>
00 =hi-z
01 = css_out/css_in/css_cmp
10 = low
11 = high
17.
INT
Register 2dh.
16 b0000_0000_0000
Bit
15:10
9:0
Name
Function
others <5:0>
000000
int_grp_en<9:0>
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
17
RDA1846
<5> : ctcss phase shift detect int enable
<4> : idle state time out int enable
<3> : rxon_rf timerout int enable
<2> : sq int enable;
<1> : txon_rf time out int enable;
<0> : vox int enable
18.
St_mode
Bit
30H[9:8]
Name
Function
st_mode<1:0>
Tmier1&Timer5
11 = reserved
10 = txon_rf & rxon_rf auto
01 = rxon_rf auto, txon_rf manu
00 = txon_rf & rxon_rf manu
TXON
TXON
VOX=0
ST_mode=10
Timer1
Timer1
Timer5
VOX=0
Timer5
Detect VOX
TXON
TXON
TXON
RXON
SLEEP
VOX=0
VOX=1
ST_mode=00
Timer1
Timer1
VOX =1 can
t generate INT
Detect VOX
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
18
RDA1846
Tmier 3
TXON
TXON
RXON
RXON
ST_mode=10
Timer3
Timer5
Timer4
Timer4
Tmier 4
RXON
RXON
ST_mode=01
Timer4
Timer4
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
19
RDA1846
Tmier 7
TXON
TXON
Idle time
>Timer7
Idle time
>Timer7
Idle time
>Timer7
Idle time
>Timer7
RXON
RXON
Idle time > Timer7 can generate INT
Timer7
Timer7
Timer7
Timer7
t generate INT
RXON
RXON
Idle time
<Timer7
Idle time
<Timer7
Idle time
<Timer7
Idle time
<Timer7
Tmier 8
PPT OFF
PPT OFF
PPT PUSH
TXOFF
TXOFF
19.
Pre-emphasis/De-emphasis filter
Bit
Name
58H[3]
pre/de-emph
20.
Function
1=pre/de-emph bypass
0=normal
Bit
Name
Function
5fH[9:0]
Rssi<9:0>
60H[14:0]
Vssi<14:0>
6cH[10:5]
dtmf_index<5:0>
6cH[3:0]
dtmf_code<3:0>
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
20
RDA1846
1:f0+f4, 2:f0+f5, 3:f0+f6, A:f0+f7,
4:f1+f4, 5:f1+f5, 6:f1+f6, B:f1+f7,
7:f2+f4, 8:f2+f5, 9:f2+f6, C:f2+f7,
E(*):f3+f4, 0:f3+f5, F(#):f3+f6, D:f3+f7
Such as
Read 5fH[9:0]= Binary (110100000)=Dec(416)
So Received signal strength =(416*0.125)-135=(416/8)-135= -83dBm
21.
Flag
Bit
Name
Function
5cH[12]
dtmf_idle
Dtmf idle
5cH [10]
rxon_rf
If 1, rxon is enable
5cH[ 9]
txon_rf
If 1, txon is enable
5cH[ 7]
invert_det
5cH [2]
css_cmp
Ctcss/cdcss compared
5cH [1]
SQ
5cH [0]
VOX
22.
Initial process
23.
Register introduction
Register 30h.
Bit
Name
Function
Default
15:14
others
00
00
13:12
channel_mode
11
tail_elim_en
10
others
9:8
st_mode<1:0>
11 = reserved
10 = txon_rf & rxon_rf auto
00
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
21
RDA1846
01 = rxon_rf auto, txon_rf manu
00 = txon_rf & rxon_rf manu
7
mute
tx_on
1 = on
0 = off
rx_on
1 = on
0 = off
vox_on
sq_on
pdn_reg
chip_cal_en
1 = cal enable
0 = cal disable
soft_reset
Register 04h.
Bit
15:1
0
Name
Function
others
0000_1111_0001_000
clk_mode
12~14MHz:1
24~ 28MHz:0
Default
1
Register 0ah.
Bit
Name
Function
15:6
others
0000_0100_00
5:0
pabias_voltage<5:0>
Default
10_0000
Register 0fh.
Bit
Name
15:8
others
7:6
band_select
5:0
others
Function
Default
00000000
00
100100
Register 29h.
Bit
Name
15:14
others
13:0
freq_reg
Function
Default
00
0000000110010
Register 2ah.
Bit
Name
Function
Default
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
22
RDA1846
15:0
freq_reg
0000010010110000
Register 2bh.
Bit
15:0
Name
xtal_freq
Function
See reference clock
Default
0011001000000000
Register 3ch.
Bit
Name
Function
15:14
voice_sel<1:0>
13:0
others
00_1001_0101_1000
Default
00
Register 41h.
Bit
15
14:0
Name
Function
others
th_h_vox<14:0>
See vox
Default
00_0000_0100_0000
Register 42h.
Bit
15
14:0
Name
Function
others
th_h_vox<14:0>
See vox
Default
00_0000_0011_1100
Register 45h.
Bit
Name
15:14
shift_select<1:0>
13:12
others
Function
See eliminating tail noise
Default
00
00
11
Pos_det_en
See subaudio
10
css_det_en
See subaudio/sq
9:8
others
7
6:5
neg_det_en
See subaudio
others
cdcss_sel
others
2:0
10
00
See subaudio
0
0
c_mode<2:0>
See subaudio
000
Register 48h.
Bit
15:10
9:0
Name
Function
others
Default
000000
Sq open threshold
See SQ
0001010000
Register 49h.
Bit
15:10
9:0
Name
Function
others
Default
000000
Sq shut threshold
See SQ
0000111100
Register 4ah.
Bit
Name
Function
Default
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
23
RDA1846
15:0
ctcss_freq
See Subaudio
0001100110011001
Register 4bh.
Bit
Name
Function
Default
15:8
others
Read as zeros
0000_0000
7:0
cdcss_code
See subaudio
0110_0101
Register 4ch.
Bit
15:0
Name
cdcss_code
Function
See subaudio
Default
1101_1000_0001_0110
Register 54h.
Bit
15:13
7
6:0
Name
Function
others
0001_0001
sq_out_sel
See sq
others
100_1000
Default
0
Register 63h.
Bit
15:10
Name
Function
Default
Reserved<5:0>
000000
0000
single_tone
See dtmf
dtmf_en
See dtmf
7:4
dtmf_time1<3:0>
See dtmf
1000
3:0
dtmf_time2<3:0>
See dtmf
1000
Register 66h
Bit
Name
Function
Default
15:8
dtmf_c0
697Hz
0110_0001
7:0
dtmf_c1
770Hz
0101_1011
Register 67h.
Bit
Name
Function
Default
15:8
dtmf_c2<7:0>
852Hz
0101_0011
7:0
dtmf_c3<7:0>
941Hz
0100_1011
Register 68h.
Bit
Name
Function
Default
15:8
dtmf_c4<7:0>
1209Hz
0010_1100
7:0
dtmf_c5<7:0>
1336Hz
0001_1110
Register 69h.
Bit
Name
Function
Default
15:8
dtmf_c6<7:0>
1477Hz
0000_1010
7:0
dtmf_c7<7:0>
1633Hz
1111_0110
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
24
RDA1846
Change List
Rev
Date
Author
Change Description
0.1
2009-5-20
Original draft
1.1
2009-6-17
1.1
2009-10-13
Liu Ge
1.2
2009-11-13
Liu Ge
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
25
RDA1846
Disclaimer
The information provided here is believed to be reliable; RDA Microelectronics assumes no liability for
inaccuracies and omissions. RDA Microelectronics assumes no liability for the use of this information and all
such information should entirely be at the users own risk. Specifications described and contained here are
subjected to change without notice for the purpose of improving the design and performance. All of the
information described herein shall only be used for sole purpose of development work of RDA1846, no right
or license is implied or granted except for the above mentioned purpose. RDA Microelectronics does not
authorize or warrant any RDA products for use in the life support devices or systems.
Copyright@2006 RDA Microelectronics Inc. All rights reserved
For technical questions and additional information about RDA Microelectronics Inc.:
Website: www.rdamicro.com
Mailbox: info@rdamicro.com
RDA Microelectronics (Shanghai), Inc.
Tel: +86-21-50271108
Fax: +86-21-50271099
The information contained herein is the exclusive property of RDA and shall not be distributed, reproduced, or disclosed in whole or in
part without prior written permission of RDA.
26