首页|嵌入式系统|显示技术|模拟IC/电源|元件与制造|其他IC/制程|消费类电子|无线/通信|汽车电子|工业控制|医疗电子|测试测量
首页 > 分享下载 > 嵌入式系统 > 不使用定时器串口例程

不使用定时器串口例程

资料介绍
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 sim-
ple 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.
AN593
Serial Port Routines Without Using Timer0

CONCLUSION
Author: Stan D’Souza
Microchip Technology Inc. Simple transmit and receive routines can be written
without using Timer0 to generate the baud rate.
INTRODUCTION
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 sim-
ple 8-bit transmi
不使用定时器串口例程
本地下载

评论