Skip to content

A disciplined approach for decomposing MP ASM project onto modules

MP ASM does not provide good facilities for creating well organized modules and defining interfaces like high-level languages do. The following approach may help you to fill this lacuna. 
(Continued)

High speed RS232 for PIC

Abstract

In this article author considers aspects of implementing RS-232 communication routines in Microchip PIC microcontroller’s software, describes technique to achieve high speed (>=115200) of transmitting and receiving data, dwells on hardware (CTS/RTS) flow control and illustrates how assembler macro may be used to generate transmitter and receiver routines for any given speed at any given frequency. A sample application supplied with the article provides tests for transmitter and receiver routines for baud rates 230400, 115200, 56700 and 38400 at clock frequency 4 MHz.

(Continued)