SXB compiler problem
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
·
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](http://forums.parallax.com/images/smilies/roll.gif)
Comments
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
·
I was reading the helpfile for SHIFTIN not SHIFTOUT, Boy do I feel DUMB!
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.