Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

How to abort transmission during a multi-byte data transmit?

Latest Updated:03/01/2005

Question:

(Serial Interface)   I would like to abort transmission during a multi-byte data transmit.
For example, to abort at the 9th byte of the frame, can I disable the transmit (SIO1CON bit 4 = 0) before the start bit is output in a transmit interrupt as the 9th byte of data is transferred from the transmit buffer register to the transmit shift register? [2005/03/01]

Answer:

No. In the above program, since the start bit has already been output at the point the transmit buffer empty interrupt occurs, data transmission will be aborted mid-transmit somewhere after the start bit. The program is incapable of waiting until a full byte has finished transmitting before disabling.
If you need to abort transmission at the end of a data byte during multi-byte transmission, abort by not writing to the transmit buffer register. (#104804)
Suitable Products
3803H
3803L
3823
3850A
3858
38D2
38D5
7544
7546
7547
7548
7549
3874