Shop OBEX P1 Docs P2 Docs Learn Events
Help, can't solve this riddle. — Parallax Forums

Help, can't solve this riddle.

IkigaiIkigai Posts: 2
edited 2013-06-16 07:28 in Propeller 1
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?

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

Sign In or Register to comment.