SDA 6000
PRELIMINARY DATA SHEET
Version 2.1
Peripherals
7 - 72
Micronas
7.3.6
Interrupts
Six interrupt sources are provided for serial channel ASC0. Line S0TIC indicates a
transmit interrupt, S0TBIC indicates a transmit buffer interrupt, S0RIC indicates a
receive interrupt and S0EIC indicates an error interrupt of the serial channel. The
autobaud detection unit provides two additional interrupts, the ABSTIR start of autobaud
operation interrupt and the ABDETIR autobaud detected interrupt. The interrupt output
lines S0TBIR, S0TIR, S0RIR, and S0EIR are activated (active state) for two periods of
the module clock
f
MOD
(33.33 MHz).
The cause of an error interrupt request (framing, parity, overrun error) can be identified
by the error status flags S0FE, S0PE, and S0OE which are located in control register
S0CON.
Note: In contrary to the error interrupt request line S0EIR, the error status flags S0FE/
S0PE/S0OE are not reset automatically but must be cleared by software.
For normal operation (e.g. besides the error interrupt) the ASC0 provides three interrupt
requests to control data exchange via this serial channel:
• S0TBIR is activated when data is moved from S0TBUF to the transmit shift register.
• S0TIR is activated before the last bit of an asynchronous frame is transmitted, or after
the last bit of a synchronous frame has been transmitted.
• S0RIR is activated when the received frame is moved to S0RBUF.
While the task of the receive interrupt handler is quite clear, the transmitter is serviced
by two interrupt handlers. This has its advantages for the servicing software.
For single transfers it is sufficient to use the transmitter interrupt (S0TIR), which indicates
that the previously loaded data, except for the last bit of an asynchronous frame, has
been transmitted.
For multiple back-to-back transfers it is necessary to wait to load the last piece of data
until the last bit of the previous frame has been transmitted. In asynchronous mode this
leaves just one bit-time for the handler to respond to the transmitter interrupt request, in
synchronous mode it is impossible.
Using the transmit buffer interrupt (S0TBIR) to reload transmitted data gives enough time
to transmit a complete frame for the service routine, as S0TBUF may be reloaded while
the previous data is still being transmitted.
The ABSTIR start of autobaud operation interrupt is generated whenever the autobaud
detection unit is enabled (ABEN, ABDETEN and ABSTEN set), and a start bit has been
detected at RXD. In this case ABSTIR is generated during autobaud detection whenever
a start bit is detected.
The ABDETIR autobaud detected interrupt is always generated after recognition of the
second character of the two-byte frame, after a successful autobaud detection. If
ABCON_FCDETEN is set the ABDETIR autobaud detected interrupt is also generated
after the recognition of the first character of the two-byte frame.
Содержание SDA 6000
Страница 3: ...Contents Overview...
Страница 21: ...Pin Description...
Страница 22: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Pin Descriptions 2 3 Micronas 2 Pin Descriptions...
Страница 29: ...Architectural Overview...
Страница 33: ...C16X Microcontroller...
Страница 34: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 C16X Microcontroller 4 3 Micronas 4 C16X Microcontroller...
Страница 88: ...Interrupt and Trap Function...
Страница 122: ...System Control Configuration...
Страница 159: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 System Control Configuration 6 40 Micronas...
Страница 160: ...Peripherals...
Страница 282: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Peripherals 7 124 Micronas...
Страница 283: ...Clock System...
Страница 284: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Clock System 8 3 Micronas 8 Clock System...
Страница 288: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Clock System 8 8 Micronas...
Страница 289: ...Sync System...
Страница 290: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Sync System 9 3 Micronas 9 Sync System...
Страница 301: ...Display Generator...
Страница 302: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Display Generator 10 3 Micronas 10 Display Generator...
Страница 348: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Display Generator 10 50 Micronas...
Страница 349: ...D A Converter...
Страница 352: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 D A Converter 11 6 Micronas...
Страница 353: ...Slicer and Acquisition...
Страница 354: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Slicer and Acquisition 12 3 Micronas 12 Slicer and Acquisition...
Страница 381: ...Register Overview...
Страница 398: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Register Overview 13 20 Micronas...
Страница 399: ...Elelctrical Characteristics...
Страница 400: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Electrical Characteristics 14 3 Micronas 14 Electrical Characteristics...
Страница 411: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Electrical Characteristics 14 14 Micronas...