Well I was hoping to connect directly to pin RX!
Maybe I am missing some knowledge?
Can this be done?
Well I was hoping to connect directly to pin RX!
Maybe I am missing some knowledge?
Can this be done?
The signal needs to be inverted if using the hardware serial pin on your pic hence the reason for the max232. You could just use serin2 comand and run it in inverted mode.
Sphere
Sphere,
You sent me to the right direction and I finally got it working, I spent a lot of time trying to understanding the mode value from serin2 because in the PBP manual it says bit 15 is not used but it is not specified anywhere (that I could find) that it should be set to 1 but I got it now.
Thanks for your help.
Mike
No problem.
Sphere
'************************************************* ***************
INCLUDE "MODEDEFS.BAS"
'***********************DEFINITIONS*************** ************************
DEFINE Osc 4
'--------------------------------------------------------------------------------------------
'***********************SERIAL COMM DEFINITION**********************
DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 19200
DEFINE LCD_DREG PORTb
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTb
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTb
DEFINE LCD_EBIT 3
cmcon=7
trisb=%00000010
trisa=%00000001
a var word
b var word
c var word
d var word
e var word
ANAPROGRAM:
hserin [hex2 a,hex2 b,hex2 c,hex2 d,hex2 e]
pause 50
LCDOut $fe, 1,hex2 a,hex2 b,hex2 c,hex2 d,hex2 e
pause 10
goto anaprogram
end
Bookmarks