
Originally Posted by
iugmoh
oky I have these things :
1- max232 converter
2- 4MHZ or 8MHZ crystal
3- PIC16F877A or PIC18f452 or PIC4220
I make a programm and put the values accoding to formula baud=fosc/(16(x+1)) or baud=fosc(64/(x+1))
but the data I recived from pic at pc is a strange data not know
"4MHZ or 8MHZ crystal" 4mhz too slow 8mhz probably too slow
go get this from mister e http://www.mister-e.org/pages/picmulticalcpag.html
using Mister_e's calculator set for 8mhz we get these settings:
RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $24 ' Enable transmit, BRGH = 1
SPBRG = 16 ' 115200 Baud @ 8MHz, 2.12%
SPBRGH = 0
BAUDCON.3 = 1 ' Enable 16 bit baudrate generator
You may need to slow the character pacing a bit. DEFINE CHAR_PACING 1000
Last edited by Archangel; - 8th March 2008 at 19:28.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks