A General-Purpose Serial Communication Interface for the MMC2001 Using the Motorola API

2022-04-26
Even though many microcontrollers (MCU) have an integrated UART(universal asynchronous receiver transmitter) on board, some customers may need another one. For instance, if the part has only one UART, they may need two.
One way to overcome this problem is to design a software UART, also called SCI (serial communication interface). This is feasible if the MCU has a general-purpose timer like the MMC2001 MCU does, with its six independent PWMs (pulse-width modulator).
This application note describes a software (SW) UART, written in C language. It has been developed for the MMC2001, a M•CORE MCU. Because it is a program written in a high-level language,the SW UART can be adapted easily to other cores like PowerPC and 68HCxx.
This SCI is designed for an 8-bit data, one start bit, one stop bit, least significant bit (LSB) first protocol, which is probably the most common configuration. The baud rate (bits per second) can vary up to a maximum of 19,200 baud. The protocol needs to be set before establishing a communication link. The SCI can communicate only in half-duplex mode. This means it can either transmit or receive, but it cannot do both functions simultaneously.
For more information, several application notes describe the RS-232 protocol, including "HC05 MCU Software-Driven Asynchronous Serial Communication Techniques Using MC68HC705J1A," document order number AN1240/D; "Software SCI Implementation to the MISC Communication Protocol," number AN1667/D; and "Software SCI Routines with the 16-Bit Timer Module," order number AN1818/D.

NXP

MMC200168HCxxMC68HC705J1AMMC2003MMC2080MMC2107M68HC05 FamilyM68HC05

More

Part#

microcontrollersMCU

More

More

Application note & Design Guide

More

More

Please see the document for details

More

More

English Chinese Chinese and English Japanese

2006/5/2

AN2025

439 KB

- The full preview is over. If you want to read the whole 20 page document,please Sign in/Register -
  • +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.

Contact Us

Email: