Yea, since I use a cable that is crossed I connected it that way, but later I added the switch that change the positions, mainly coz I wasnt really sure how it should be
Yea, I have picmulticalc, but I didnt really thought of that it had USART help.
And yes..
I choosed 20Mhz 9600bps and copied the defines to my code (replacing the old ones), and voila, it worked.
Niice.
But I still dont undersstand why it didnt work before ?
..This was the defines picmulticalc gave me:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0,16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
Bookmarks