ST6246 STMICROELECTRONICS [STMicroelectronics], ST6246 Datasheet - Page 46
ST6246
Manufacturer Part Number
ST6246
Description
8-BIT OTP/EPROM MCU WITH LCD DRIVER, EEPROM AND A/D CONVERTER
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
1.ST6246.pdf
(72 pages)
- Current page: 46 of 72
- Download datasheet (453Kb)
ST62T46B/E46B
4.4 SERIAL PERIPHERAL INTERFACE (SPI)
The on-chip SPI is an optimized serial synchro-
nous interface that supports a wide range of indus-
try standard SPI specifications. The on-chip SPI is
controlled by small and simple user software to
perform serial data exchange. The serial shift
clock can be implemented either by software (us-
ing the bit-set and bit-reset instructions), with the
on-chip Timer 1 by externally connecting the SPI
clock pin to the timer pin or by directly applying an
external clock to the Scl line.
The peripheral is composed by an 8-bit Data/shift
Register and a 4-bit binary counter while the Sin
pin is the serial shift input and Sout is the serial
shift output. These two lines can be tied together
to implement two wires protocols (I C-bus, etc).
When data is serialized, the MSB is the first bit. Sin
has to be programmed as input. For serial output
Figure 24. SPI Block Diagram
46/72
382
Sout
SCL
Sin
I/O Port
I/O Port
I/O Port
1
0
OPR Reg.
Data Reg
Direction
Data Reg
Direction
Data Reg
Direction
CLK
DIN
DOUT
RESET
CP
CP
DIN
8-Bit Tristate Data I/O
operation Sout has to be programmed as open-
drain output.
The SCL, Sin and Sout SPI clock and data signals
are connected to 3 I/O lines on the same external
pins. With these 3 lines, the SPI can operate in the
following operating modes: Software SPI, S-BUS,
I C-bus and as a standard serial I/O (clock, data,
enable). An interrupt request can be generated af-
ter eight clock pulses. Figure 24 shows the SPI
block diagram.
The SCL line clocks, on the falling edge, the shift
register and the counter. To allow SPI operation in
slave mode, the SCL pin must be programmed as
input and an external clock must be supplied to
this pin to drive the SPI peripheral.
In master mode, SCL is programmed as output, a
clock signal must be generated by software to set
and reset the port line.
(Q4=High after Clock8)
D0....... .....................D 7
to Processor Data Bus
SPI Interrupt Disable Register
Shift Register
4-Bit Counter
8-Bit Data
RESET
SPI Data Register
Output
Enable
DOUT
Reset
Load
Q4
Q4
Write
Read
Set Res
Interrupt
VR01504
Related parts for ST6246
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
HIGH VOLTAGE FAST-SWITCHING NPN POWER TRANSISTOR
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST62T15C / ST62T25C) 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST62E35B / ST62T35B) 8-BIT OTP/EPROM MCUs
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
8-BIT OTP/EPROM MCU WITH LCD DRIVER / EEPROM AND A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
AUdio Amplifier
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
NPN MEDIUM POWER TRANSISTOR
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST90135 / ST90158) Microcontroller
Manufacturer:
ST Microelectronics
Part Number:
Description:
(ST90x27 / ST90x28) 16K EPROM HCMOS MCUS WITH RAM
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST90R28B6) 16K ROM / 256 RAM HCMOS MCUs
Manufacturer:
ST Microelectronics
Part Number:
Description:
(ST90x31) 8K EPROM HCMOS MCU
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST92195C/D) 48-96 Kbyte ROM HCMOS MCU
Manufacturer:
ST Microelectronics
Part Number:
Description:
16-48K ROM HCMOS MCU WITH ON SCREEN DISPLAY AND VOLTAGE TUNINGOUTPUT
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
48K ROM HCMOS MCUs WITH ON SCREEN DISPLAY AND A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
24K ROM HCMOS MCU WITH ON SCREEN DISPLAY AND CLOSED-CAPTION DATA SLICER
Manufacturer:
ST Microelectronics
Datasheet: