EM78P809N
8-Bit Microcontroller
36
•
Product Specification (V1.0) 07.26.2005
(This specification is subject to change without further notice)
4.7.4 Baud Rate Generator:
The baud rate generator is comprised of a circuit that generates a clock pulse to
determine the transfer speed for transmission/reception in the UART.
The BRATE2~BRATE0 bits of the URC1 register can determine the desired baud rate.
4.8 SPI (Serial Peripheral Interface)
Registers for the SPI Circuit
R_BANK Address NAME
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
BANK 3
0X05
SPIC1 SMP DCOL BRS2 BRS1 BRS0 EDS DORD WBE
R/W R/W R/W R/W R/W R/W R/W R
BANK 3
0X06
SPIC2 SPIS
0 0 0 0
SPIM1 SPIM0 RBF
R/W
-- -- -- --
R/W R/W R
BANK 3
0X07
SPID SPID7 SPID6 SPID5
SPID4 SPID3
SPID2 SPID1 SPID0
R/W R/W R/W R/W R/W R/W R/W R/W
BANK 0
0x0E
ISFR1
EXIF5 TCIF2 ADIF
0 EXIF3 TCIF4
SPIF
TCIF3
R/W
R/W
R/W -- R/W
R/W
R/W
R/W
SFR 0x0E
IMR1
EXIE5 TCIE2 ADIE
0
EXIE3 TCIE4
SPIE
TCIE3
R/W
R/W
R/W -- R/W
R/W
R/W
R/W
SHIFT Register
SPID
reg
Prescaler
4, 16, 64, 256,1024
SDI
SDO
SCK
Edge
Select
Edge
Select
Tsystem
TC1/2
BRS2~0
3
Master/Slave
BRS2~0
3
RBFI
RBF
Buffer Full
Set to 1
SE
Tx Empty
Clear
(8 bits)
TLS0~1
2
SE
/
SS
/
SS enable
EDS
EDS
DORD
Collision
Detector
DCOL
SMP
Detector
Detector
Fig. 14. SPI Block Diagram