| Title |
Title
Serial Port Routines Without Using the RTCC
|
|---|---|
| Name |
Name
AN593
|
| Date |
Date
06/24/2015
|
| Product Categories |
Product Categories
8-bit MCU
|
| Description |
Description
The PIC16C5X has one 8-bit timer (Timer0) which can use an 8-bit prescaler. In some instances, the user would like to use this timer for some other purpose and yet, be able to do a transmit and receive using the serial port. This application note offers routines to do a simple 8-bit transmit and receive with no handshake, at baud rates from 1200 to 9600. Please note that these routines use a timed loop which is as accurate as the clock which drives the PIC16C5X. The user enters the frequency and baud rate desired. The calculated value ?delay? in the serial routine has to be an 8-bit value only. if the value is greater than 8-bits, the frequency and baud rate values have to be changed. "The PIC16C5X has one 8-bit timer (Timer0) which can use an 8-bit prescaler. In some instances, the user would like to use this timer for some other purpose and yet, be able to do a transmit and receive using the serial port. This application note offers routines to do a simple 8-bit transmit and receive with no handshake, at baud rates from 1200 to 9600. Please note that these routines use a timed loop which is as accurate as the clock which drives the PIC16C5X. The user enters the frequency and baud rate desired. The calculated value ?delay? in the serial routine has to be an 8-bit value only. if the value is greater than 8-bits, the frequency and baud rate values have to be changed."
|
Title |
Title |
Date |
Size |
|
|---|---|---|---|---|
| AN593 Source Code - Serial Port Routines Without Using the RTCC 8.6 KB 09/24/2021 | AN593 Source Code - Serial Port Routines Without Using the RTCC | 09/24/2021 | 8.6 KB | Download |