Hi,
I have a little Problem ,I have one 18F4550 Chip that running with a 20 Mhz Xtal.
My Problem is that I can not find the Right setting to run my Software on that Chip.
I need just a Normal RS232 Communication and not USB but I think that my settings are wrong!
I have this:
Define OSC 20
OSCCON = %01111100
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_SPBRG 64 ' 19200 Bauds
DEFINE HSER_CLROERR 1
UCON = %00000000
RCSTA.7 = 1
TRISC.7 = 1
TRISC.6 = 1
.......
Hserout ..........
.......
End
I have use SPRBG Calculator for the Baudrate (20 Mhz and 19200)
But dont work I receive on my PC just wrong Data.
Maybe some one can Help me to find the right Setting,I have experience with 18F452 and other PICs but with 18F4550 I dont understand what I make wrong .
Thanks for any answer !
Regards Pesti
Bookmarks