Shop OBEX P1 Docs P2 Docs Learn Events
SXB compiler problem — Parallax Forums

SXB compiler problem

RS_JimRS_Jim Posts: 1,771
edited 2008-10-05 15:26 in General Discussion
Good Morning All.

I have a problem with SXB. The following lines of code will compile OK:

··SHIFTIN·ADC_DIO,ADC_CLK,MSBPOST,tmpB1\9,4
··SHIFTOUT MEM_DO, mem_clk, MSBPRE, WRITE_M\5

This line of code returns···"error 4 pass 1 MSBPOST constant expected". I can change post back to pre and it will compile but as soon as I change the letters to post it will not compile. I am running V 1.51.03 of SXB.· After testing my code I reread the data sheet and decided that it probably was not working because of the pre/post issue so went to change my shiftout/shiftin commands to MSBPOST. The chip is a 93AA66 512 byte eeprom.

·SHIFTOUT MEM_DO, mem_clk, MSBPOST, WRITE_M\5
Any ideas?

Radio Shack Jim

roll.gif·

Comments

  • BeanBean Posts: 8,129
    edited 2008-10-05 14:20
    Jim,
    MSBPOST is not an option for SHIFTOUT.

    The options for SHIFTOUT are LSBFIRST and MSBFIRST
    The options of SHIFTIN are LSBPRE, LSBPOST, MSBPRE and MSBPOST

    See the help file.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson

    "It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter

    www.iElectronicDesigns.com

    ·
  • RS_JimRS_Jim Posts: 1,771
    edited 2008-10-05 14:50
    Thanks Bean,
    I was reading the helpfile for SHIFTIN not SHIFTOUT, Boy do I feel DUMB!
    Jim
  • Ken GraceyKen Gracey Posts: 7,403
    edited 2008-10-05 15:26
    Radio Shack Jim,

    That's okay. Many of my days with programming and electronics are spent in similar situations. Combine programming, electronics, and anything else and you've got plenty of room for things to disagree.

    Ken Gracey
    Parallax, Inc.
Sign In or Register to comment.