PUTC(X) WORK ARE VERY GOOD! BUT GETC() CAN'T WORK !!! WHY ? HOW CAN I DO??
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Tue Apr 11, 2006 6:39 am
Check the datasheet to see if the internal RC is accurate enough. It should be within about 3% for reliable RS232. If this is just an experiment you may be able to measure your actual clock speed and give that exact speed to the compiler. However the speed of the RC may vary with voltage, temperature, etc.. _________________ The search for better is endless. Instead simply find very good and get the job done.
cyberjok
Joined: 04 Apr 2006 Posts: 6
thanks!
Posted: Fri Apr 14, 2006 1:16 am
thanks!
i wrote get_char and put_char instead of getchar and putchar//
it work very good!
SherpaDoug wrote:
Check the datasheet to see if the internal RC is accurate enough. It should be within about 3% for reliable RS232. If this is just an experiment you may be able to measure your actual clock speed and give that exact speed to the compiler. However the speed of the RC may vary with voltage, temperature, etc..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum