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

Calibration problem

VinnieVinnie Posts: 15
edited 2006-07-30 19:40 in General Discussion
I just got my tech kit saturday..· have succesfully programmed a few programs and debugged and lots of things. It's quite funny I already succeeded in (preparing) programming stuff with SxSim already before the Tech Kit had arrived. Even more funny that most programs I tried so far even work (with some minor debugging).

However, when I try to use the internal RC osc, I only get to see the 'Calibrating' progress bars for a glimpse of a second and then programming seems to end.

Since I've never seen a good Internal RC calibration program run, I can't know for sure this isn't the right behaviour, but I suspect it's not. I waited quite a while for more action, but so far nothing...

Also, a verify gives 'verify failed at oscillator' error.

I use the following DEVICE settings:

DEVICE········· SX28, OSC4Mhz, TURBO, STACKX, OPTIONX
FREQ··········· 4_000_000
IRC_CAL······· IRC_4Mhz
I tried·with both SX28 chips, same for both. No resonator on the board. I use the 3.2·SX IDE version downloaded from the site (didn't install anything from the cd yet; is it necessary?) with the SX\B 1.52 upgrade.

Am I doing something wrong or is it a HW problem?

Is it possible to directly write the calibration bits manually (using trial and error to get close to the desired freq)?

Greetings,
Vinnie




Post Edited (Vinnie) : 7/30/2006 12:24:41 PM GMT

Comments

  • NateNate Posts: 154
    edited 2006-07-30 12:56
    I'm not near my SX dev. computer now, so I cannot test it, but is the compiler case sensitive?

    (ie try OSC4MHZ and IRC_4MHZ)

    Nate
  • VinnieVinnie Posts: 15
    edited 2006-07-30 13:43
    Nate,

    Thanks for the response.. I already tested that -> originally it was in uppercase..
  • NateNate Posts: 154
    edited 2006-07-30 14:24
    Allright, I've got the SX dev. system opened.· The programs I have written that run on the internal Oscillator (successfully) have the same DEVICE lines as you have shown, except I have SX28L (there was a discussion about SX28 and SX28L long ago, cannot remember what the conclusion was).· I have only used this on older chips (Pre-Parallax packaging) using ver. 3.1 of the IDE.

    What happens when you specify OSC4MHZ but no calibration of the internal oscillator (ie use IRC_CAL IRC_FAST)?· This sets the calibration bits to highest value and skips the actual calibration.· Does the program run?·

    If it does, the issue is with the calibration routine - look to a broken SX-Key, bad SX-Key-to-SX connection (what Dev. board are you using?) or bug in ver. 3.2 of IDE.


    Nate·
  • VinnieVinnie Posts: 15
    edited 2006-07-30 19:40
    Update: I downdated to the former SX IDE version (3.0) and now the calibration works fine..

    Is this a bug in the 3.2 version???

    Got some SX\B downward compatibility issues now...

    Maybe I could run both 3.0 and 3.2, compile in 3.2 and program in 3.0

    Vinnie

    Post Edited (Vinnie) : 7/30/2006 7:54:02 PM GMT
Sign In or Register to comment.