HT46RB50 Holtek Semiconductor, HT46RB50 Datasheet - Page 23

no-image

HT46RB50

Manufacturer Part Number
HT46RB50
Description
A/D Type USB 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT46RB50
Manufacturer:
TI
Quantity:
5 580
Part Number:
HT46RB50
Manufacturer:
HOLTEK
Quantity:
6
Serial Interface
Serial interface function has four basic signals included. They are SDI (serial data input), SDO (serial data output), SCK
(serial clock) and SCS (slave select pin).
Note: SCS can be named SCS in the design note.
Two registers (SBCR and SBDR) unique to serial inter-
face provide control, status, and data storage.
Rev. 1.10
SBCR: Serial bus control register
Bit7 (CKS) clock source selection: f
as 0
Bit6 (M1), Bit5 (M0) master/slave mode and baud rate
selection
M1, M0: 00
01
10
11
Bit4 (SBEN)
Enable: (SCS dependent on CSEN bit)
Disable
(SCKB= 0 ) and waiting for writing data to SBDR
(TXRX buffer)
Master mode: write data to SBDR (TXRX buffer)
start transmission/reception automatically
Master mode: when data has been transferred, set
TRF
Slave mode: when an SCK (and SCS dependent on
CSEN) is received, data in TXRX buffer is
shifted-out and data on SDI is shifted-in.
SLAVE MODE
MASTER MODE, BAUD RATE= f
MASTER MODE, BAUD RATE= f
MASTER MODE, BAUD RATE= f
enable: SCK, SDI, SDO, SCS= 0
serial bus enable/disable (1/0)
SIO
=f
SIO
SIO
SYS
/4
/16
/4, select
SIO
23
SBDR: Serial bus data register
Data written to SBDR
only
Data read from SBDR
Operating Mode description:
Master transmitter: clock sending and data I/O started
by writing SBDR
Master clock sending started by writing SBDR
Slave transmitter: data I/O started by clock received
Slave receiver: data I/O started by clock received
Disable: SCK (SCK), SDI, SDO, SCS floating
Bit3 (MLS)
Bit2 (CSEN)
able/disable (SCS), when CSEN=0, SCSB is float-
ing.
Bit1 (WCOL)
SBDR (TXRX buffer) when data is transferred,
writing will be ignored if data is written to SBDR
(TXRX buffer) when data is transferred.
Bit0 (TRF)
used to generate an interrupt.
Note: data receiving is still working when the MCU
enters HALT mode.
MSB or LSB (1/0) shift first control bit
data transferred or data received
this bit is set to 1 if data is written to
serial bus selection signal en-
read from SBDR only
write data to TXRX buffer
September 7, 2006
HT46RB50

Related parts for HT46RB50