EM6607 EM Microelectronic, EM6607 Datasheet - Page 29

no-image

EM6607

Manufacturer Part Number
EM6607
Description
Ultra-low power microcontroller
Manufacturer
EM Microelectronic
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
EM6607TP16B
Quantity:
20 000
Part Number:
EM6607TP16B
Manufacturer:
NUVOTON
Quantity:
1 200
12.2 SWB Interactive send mode
In interactive SWB mode the reloading of the data transmission register SWBbuff is performed by the application program.
This means that it is possible to have an unlimited length transmission data stream. However, since the application program
is responsible for reloading the data a continuous data stream can only be achieved at 1kHz or 2kHz transmission speeds.
For the higher transmission speeds a series of writes must be programmed and the serial output clock will not be
continuous.
Serial transmission using the interactive mode is detailed in Figure 14. Programming of the SWB in interactive is achieved in
the following manner:
Once the data has been transferred into the serial transmission register a non maskable interrupt (SWBEmpty) is generated
and TESTvar[3] goes high. The CPU goes in the interrupt routine, with the JPV3 as first instruction in the routine one can
immediately jump to the SWB update routine to load the next nibble to be transmitted into the SWBuff register. If this reload
is performed before all the serial data is shifted out then the next nibble is automatically transmitted. This is only possible at
the transmission speeds of 1KHz or 2KHz due to the number of instructions required to reload the register. At the higher
transmission speeds of 8khz and 16khz the application must restart the serial transmission by writing the StSWB in the High
SWBHigh register after writing the next nibble to the SWBbuff register.
Each time the SWBuff register is written the "SWBbuffer empty interrupt" and TestVar[3] are cleared to "0". For proper
operation the SWBuff register must be written before the serial clock drops to low during sending the last bit (MSB) of the
previous data.
Figure 16.
After loading the last nibble in the SWBbuff register a new interrupt is generated when this data is transferred to an
intermediate Shift Register. Precaution must be made in this case because the SWB will give repetitive interrupts until the
last data is sent out completely and the STSWB bit goes low automatically. One possibility to overcome this is to check in
the Interrupt subroutine that the STSWB bit went low before exiting interrupt. Be careful because if STSWB bit is cleared by
software transmission is stopped immediately.
At the end of transmission a dummy write of SWBuff must be done to clear TESTvar[3] and "SWBbuffer empty interrupt"
or the next transmission will not work.
Copyright © 2005, EM Microelectronic-Marin SA
Select the transmission clock speed using the bits ClkSW0 and ClkSW1 in the ClkSWB register.
Load the first nibble of data into the SWB data register SWBbuff
Start serial transmission by selecting the bit StSWB in the register HighSWB register.
Interactive Serial Write Buffer transmission
R
29
www.emmicroelectronic.com
EM6607

Related parts for EM6607