PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Jun 10, 2006 9:23 pm |
|
|
According to the 16F88 data sheet, the maximum error for the
internal oscillator is +/- 2%, at 25 degrees C. So it should work
OK at room temperature. I tested the following program and
it worked OK. This program echoes back every key that you type.
Code: |
#include <16F88.H>
#fuses INTRC_IO, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_B5, rcv=PIN_B2, ERRORS)
//============================
void main()
{
int8 c;
while(1)
{
c = getc();
putc(c);
}
} |
|
|