Shop OBEX P1 Docs P2 Docs Learn Events
RFID problem — Parallax Forums

RFID problem

SashaSasha Posts: 35
edited 2008-01-23 22:00 in General Discussion
Hi Guys,

What’s wrong with the code in the attachment?

Problem is that when use the OSC4MHZ settings in the device section, chip does not see tags from data table like authorized, seems to me that always goes to the No_Tag method but when I change OSC4MHZ to OSCXT2 settings, in this case work fine but in the debug mode only, probably because use oscillator from SX-key, True ?.
Is it possible to use RFID reader with this code and internal oscillator?
I use RFID_Security samples from SX/B tutorials with little modification.

Thank you.

P.S. “Sorry for my English.”

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Think deep......Dive shallow !!!

Comments

  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2008-01-23 21:08
    Can you describe how your board is wired? Are you using a 4Mhz resonator, 4Mhz Crystal, or the Internal RC for the clock? Will it only run with the SX Key attached or have you tried it stand alone? We need some more details to provide a decent answer.

    Robert
  • SashaSasha Posts: 35
    edited 2008-01-23 21:14
    Thanks Robert,
    I use Sx Tech board with SX-Key interface and no external oscillator or crystal or resonator, internal only and yes, it only run with the SX Key attached.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Think deep......Dive shallow !!!
    ·
  • BeanBean Posts: 8,129
    edited 2008-01-23 21:35
    The internal oscillator (OSC4MHZ) is not accurate enough for serial communications. That is why it doesn't work.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • SashaSasha Posts: 35
    edited 2008-01-23 21:38
    Bean,
    That mean that with external oscillator (even 4MHz) will work just fine as is in the my source code.
    Thank you!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Think deep......Dive shallow !!!
    ·
  • JonnyMacJonnyMac Posts: 9,217
    edited 2008-01-23 21:54
    Yes, no problem -- but as Bean points out, you _must_ have an external oscillator when doing timing-critical processes like SERIN. I know that program works with a resonator because I wrote the original version. smile.gif
  • SashaSasha Posts: 35
    edited 2008-01-23 22:00
    Thanks Jonny, like I post earlier I just modified Origin version and big Thanks again for it. yeah.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Think deep......Dive shallow !!!
    ·
Sign In or Register to comment.