This application note gives advice on using the ASC peripherals present in the ST10 and in particular, the asynchronous operations will be considered. A brief guide in the configuration of the peripheral and how to connect it to an RS232 interface or RS485 network is followed by an analysis of the sources of timing problems and how to minimize them to allow correct and error-free communications.
This document offers advice on utilizing the Asynchronous/Synchronous Serial (ASC) peripherals found in ST10 microcontrollers, with a specific focus on asynchronous operations. It includes a guide on configuring the peripheral and connecting it to RS232 or RS485 networks. The text also analyzes potential sources of timing problems and provides methods to minimize them for error-free communication.
The note details the functionality of the ASC interfaces, including register descriptions for control, transmit, and receive buffers. It explains asynchronous data frames, hardware error detection, baud rate generation, and interrupt control. Additionally, it covers electrical characteristics and connection examples for both RS232 and RS485 interfaces.
| Data transfer modes | 8-bit or 9-bit data transfer |
|---|---|
| Baud rate generator | 13-bit |
| Error detection | Parity, framing, and overrun |
The main differences are limited to the programming model and interrupt management, while general functionality and performance are equivalent.
Data reception is enabled by setting the Receiver Enable bit (SxREN) in the control register.
The parity error flag (SxPE) is set along with the error interrupt request flag.