EM78815
8-Bit Microcontroller
SPIC reg : SPI control register
SDO/P61 : Serial data out
SDI/P62 : Serial data in
SCK/P60 : Serial clock
RBF :
Set by buffer full detector, and reset by software.
Interrupt flag. Set by buffer full detector, and reset in software.
RBFI :
Buffer Full Detect : Set to 1, while an 8-bit shifting is complete.
SE :
Loads the data in SPIW register, and begins to shift
SPI control register
SPIE :
SPIS reg. :Shifting byte out and in. The MSB will be shifted first. Both the SPIS
register and the SPIW register are loaded at the same time. Once data is
being written to, SPIS starts transmission / reception. The received
data will be moved to the SPIR register, as the shifting of the 8-bit data is
completed. The RBF (Read Buffer Full) flag and the RBFI (Read Buffer
Full Interrupt) flag are set.
SPIR reg. : Read buffer. The buffer will be updated as the 8-bit shifting is
completed. The data must be read before the next reception is finished.
The RBF flag is cleared as the SPIR register is read.
SPIW reg. : Write buffer. The buffer will deny any write until the 8-bit shifting is
completed. The SE bit will be kept in 1 if the communication is still
undergoing. This flag must be cleared as the shifting is finished.
Users can determine if the next write attempt is available.
SBR2 ~ SBR0: Programs the clock frequency/rates and sources.
Clock Select : Selects either the internal instruction clock or the external
16.338kHz clock as the shifting clock.
Edge Select : Selects the appropriate clock edges by programming the SCES bit
Product Specification (V2.4) 08.01.2004
(This specification is subject to change without further notice)
27