HT82A832R
Rev. 1.00
25
July 18, 2006
The SELW bit is used to control the power amplifier input source. The software should set SELW= 1 when the power
amplifier signal come from MUSIC_IN, otherwise the speaker output will come from USB Audio data.
Label
Functions
SELW=1
Power amplifier signal is sourced from MUSIC_IN pin
SELW=0
Power amplifier signal is sourced from USB Audio data (default =0)
SPI
The serial interface function similar to SPI (Motorola), where four basic signals are included. They are SDI (Serial Data
Input), SDO (Serial Data Output), SCK (serial clock) and SCS (slave select pin).
Label
Functions
D7
D6
D5
D4
D3
D2
D1
D0
SBCR
Serial Bus
Control Register
CKS
M1
M0
SBEN
MLS
CSEN
WCOL
TRF
Default
0
1
1
0
0
0
0
0
SBDR
Serial Bus
Data Register
D7
D6
D5
D4
D3
D2
D1
D0
Default
U
U
U
U
U
U
U
U
Note: U unchanged
Two registers (SBCR & SBDR) unique to the serial interface provide control, status and data storage.
SBCR: Serial bus control register
Bit7 (CKS): clock source selection: f
SIO
=f
SYS
/2, select as 0; f
SIO
=f
SYS
, select as 1
Bit6 (M1), Bit5 (M0): master/slave mode and baud rate selection
M1, M0=
00: Master mode, baud rate = f
SIO
01: Master mode, baud rate = f
SIO
/4
10: Master mode, baud rate = f
SIO
/16
11: Slave mode
Bit4 (SBEN): Serial bus enable/disable (1/0)
Enable: (SCS dependent on CSEN bit)
Disable
enable: SCK, SDI, SDO, SCS =0 (SCK= 0 ) and wait to write data to SBDR (TXRX buffer)
Master mode: write data to SBDR (TXRX buffer)
Master mode: when data has been transferred
set TRF
Slave mode: when a SCK (and SCS dependent on CSEN) is received, data in TXRX buffer is shifted-out and
data on SDI is shifted-in.
start transmission/reception automatically
#
/
( 0
0 9
%
&
4 ( 8 6
.
.
H
&
'
5 %
'
)
&
.
.
.
'
D %
.
%
% .
H
% I
5 % ; "
%
% I % "
% =
&
% # % "
%
.
%
&
%
1 %
% 4
>
6
+ (
)
8 (
(
1
0 (
3
3 (
0
1 (
(
8
) (
+
+ (
)
8 (
(
1
0 (
3
3 (
0
1 (
(
8
) (
+
SPI Timing