We have two pics talking using hardware SPI based on the spislave.pbp example.
' SETUP CHIP CLOCK SPEED
DEFINE OSC 20
' Set all analog ports on 18F2420 to digital operation
ADCON1 = 15 ...
Type: Posts; User: rodkern; Keyword(s):
We have two pics talking using hardware SPI based on the spislave.pbp example.
' SETUP CHIP CLOCK SPEED
DEFINE OSC 20
' Set all analog ports on 18F2420 to digital operation
ADCON1 = 15 ...
Steve,
Thanks for the reply. I did as you said and added the following...
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1...
Dave, thanks for the response.
The SerIn2 GPSin,baud19200 is only used in the first example (SERIN2 example). And SPBRG = 64 ' 9600 Baud is only used in the second example (HSERIN). I was...
Using all the information found here on the forums (thanks to all that help answer questions on the forum) we have a working SERIN2 program. We would like to convert the program to HSERIN to...