Welcome! Log In Create A New Profile

Advanced

command issues with Rookie

Posted by BruceV 
command issues with Rookie
July 16, 2013 02:21PM
Hi, I am using a BV500 and am trying to get 3 ADC ports to function pins RB0,1 & 2 (ADC2,3&4), but when I try the commands It always performs a System cold Start, everytime I issue the command "xx=adc_get(3)".
It works fine for adc_get(2) & (4).

System cold start
***********************************************
* BV500 _ rookie installed Version 2.3
* Details www.bypic.co.uk/library/rookie/ *
* To clear type flclear(0) *
***********************************************
ok dim xx
ok adc_init(2)
ok xx=adc_get(2)
ok adc_init(3)
ok xx=adc_get(3)
Text input Buffer 83 allocated Baud 115200

System cold start


Any ideas ??
Re: command issues with Rookie
July 16, 2013 02:47PM
I don't know. It works okay here, possibly there is something in flash. Clear everything out using flclear(0) and then re-install rookie. If this doesn't work let me know what firmware version (and serial) you have and I will try with that version.
Re: command issues with Rookie
July 16, 2013 03:01PM
Ok, cleared the BV500 and results as shown, think this also gives the Firmware & S/N, if not let me know. Ta

ok flclear(0)
Text input Buffer 83 allocated Baud 115200

System cold start
--------- Hardware Detect ----------
======================================
| ByPic Version 2.08
| Saves 0 |
| MBCHIPMX1 Serial# 201310016
| Documentation www.bypic.co.uk |
| Copyright Jim Spence 2013 |
======================================
ok [06][06]
lines loaded 555
ok flsave("")

Functions 95
Bytes to save=8464
ok [06][06]
lines loaded 215
ok flsave("")

Functions 75
Bytes to save=2984
ok [06][06]
lines loaded 238
ok flsave("")

Functions 38
Bytes to save=3252
ok reset

Text input Buffer 83 allocated Baud 115200

System cold start
***********************************************
* BV500 _ rookie installed Version 2.3
* Details www.bypic.co.uk/library/rookie/ *
* To clear type flclear(0) *
***********************************************
ok dim xx
ok adc_init(3)
ok xx=adc_get(3)
Text input Buffer 83 allocated Baud 115200

System cold start
***********************************************
* BV500 _ rookie installed Version 2.3
* Details www.bypic.co.uk/library/rookie/ *
* To clear type flclear(0) *
***********************************************
ok
Re: command issues with Rookie
July 16, 2013 03:28PM
It works here using that version. I can't really think of anything that would cause it. Is there anything else connected to the IC? A long shot put possibly worth a try is to clear out the browser cache in case rookie has become corrupt and the corrupt version is in the cache - or you have downloaded it and that version is corrupt??
Re: command issues with Rookie
September 09, 2013 05:56PM
To conclude, this issue was caused because the AD were connected using a 5v reference and the MX1 was running on 3.3v.
Now all on 3.3v and no issues.
Thanks
Re: command issues with Rookie
September 09, 2013 06:05PM
Bruce,
just something that may help, if you use:
#option only off
somewhere in the code then your main() function will overwrite the rookie function without the need to delete the rookie main().
Re: command issues with Rookie
September 09, 2013 06:11PM
is this reply in regard to my new post "Re: Running my progam from Flash"
Re: command issues with Rookie
September 10, 2013 07:32AM
yes,
sorry got confused.
Sorry, you do not have permission to post/reply in this forum.