Help, can't solve this riddle.
I have a parallax demo board and a #28440 RFID module.
After flashing the EEPROM I can't connect to it with the PST at 19200.
Not even the error strings in the code are printed.
I'm going crazy over this, what am I doing wrong?
After flashing the EEPROM I can't connect to it with the PST at 19200.
Not even the error strings in the code are printed.
I'm going crazy over this, what am I doing wrong?
CON
_clkmode = xtal1 + pll16x ' use crystal x 16
_xinfreq = 5_000_000
RFID_TX = 1 ' Connects to RFID R/W Module SIN
RFID_RX = 2 ' Connects to RFID R/W Module SOUT
obj
Host : "FullDuplexSerial"
RFID : "RFID.Reader.Writer.Driver"
var
byte TestBuffer[ 12 ]
byte TestDataBuffer[ 32 * 4 ]
byte OldPwdBuffer[ 4 ]
byte NewPwdBuffer[ 4 ]
byte HostDataBuffer[ 10 ]
PUB TEST_THIS | ErrCheck, CmdByte, LoopCounter, IndexCounter, Offset
{{
Test this driver
}}
' start the host interface ( connected to PST )
'
ErrCheck := Host.Start( 29, 28, 0, 19200 )
if 0 == ErrCheck
Host.str( string( "Cog Start Error", 13 ) )
else
' since host interface started, the next thing to do is to
' call the driver start method to start its I/O interface
'
ErrCheck := RFID.Start( RFID_RX, RFID_TX )
if 0 == ErrCheck
Host.str( string( "Cog Start Error", 13 ) )
' if everything worked above, then enter terminal I/O loop
'
if ErrCheck <> 0
Host.str( string( "Ready", 13 ) )
repeat

Comments
-Phil
You'll see more of me seeing more questions will follow no doubt.