AN2502/D Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SC Application Note
■This document describes how to use the HC08 Family’s 16-bit free-running timer and the timer interface module (TIM) to establish a full-duplex interrupt-driven software SCI module.
■Many applications require an asynchronous serial link with other devices, but some MCUs do not have a hardware-implemented SCI module. Other applications require more than one SCI module, which is difficult to find in a low-cost microcontroller unit (MCU).
■If a hardware SCI module is unavailable, a software-implemented SCI is necessary to provide the vital asynchronous serial link between an MCU and other devices. Other application notes (see References) describe the implementation of software SCI modules on HC05 MCUs. AN1240/D describes a “bit-banged” approach that requires dedicated software overhead while transmitting and receiving data. AN1818/D uses the 16-bit free-running counter to reduce software overhead, but this implementation on the HC05 Family can function only in half-duplex mode.
■Although no software SCI can fully replace a hardware SCI’s very fast baud rates, the sophisticated full-duplex implementation described in this document is a practical solution where the TIM features and some CPU time and memory can be dedicated to implementing the software SCI.
|
|
|
|
Application note & Design Guide |
|
|
|
Please see the document for details |
|
|
|
|
|
|
|
English Chinese Chinese and English Japanese |
|
2/2004 |
|
|
|
AN2502/D |
|
1.7 MB |
- +1 Like
- Add to Favorites
Recommend
All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.