Hi I'm trying to use a BV500 to read 2 temperatures. I'm using MCP9700's connected to 3.3v & Gnd with the outputs being read in on ADC2 & 3. It's set it to sample 1000 times and then divide by 1000 to give an average. This appears to work fine until 1 of the sensors is warmed and then both reading increase, the warmed sensor increases from (say) 1800 to 2400, but the other sensor increaby BruceV - BV500
I've tried v15, It opens Pspad, but I now get the same error message when I press the F4 button Do you have an older version I could try or could you point me to the old manual instruction for transferring a program.by BruceV - BV500
I've downloaded the 2.32 firmware, which file should I use for the MX150 pic?by BruceV - BV500
When I connect to my BV500 with BvSerial I get the following message. System cold start ********************************************** ** BV500 _ rookie installed Version 2.5 etc *********************************************** ok I type ".edit" and I then get Version 2.3 and above required for this version of the IDE Update Bypic or use an older BvSerial What versionby BruceV - BV500
I'm trying to use the SELECT command, but it errors when I run it. I am using Rookie 2.5 - ideas welcome ERROR 1 case 1General exception address 9d00058c reset required.. The program is a function which calls the following function function D() dim a,b,c for a = 1 to 13 print a select(a) case(1) print "\n case 1" break case(2) pby BruceV - ByPic
In your example, a number of variables have values set, but where do you put the dim statements ??? If I understand correctly, if I put the dim statements in a function, then they will only exist in that function (and any function that it calls) - is that correct ?? I tried moving all of the dim, value and port set statements into the start of the main() function, but then the issue is that sby BruceV - ByPic
To clarify, I wrote the code following 'basic' thoughts, so my code looks something like this, //------------------- setup lots of global variables dim D1,D2,D3,D4,L,DT2,DT3,DT4 //D-digit, LedStatus L = 0 // LEDs off **etc //------------------- Setup all I/O ports adc_init(2) //Solar Temp sensor **etc //-------------by BruceV - ByPic
Yes, there is a section where I setup all the I/O ports, // Setup ADC ports RB0,1,2 adc_init(2) //Solar Temp sensor adc_init(3) //Tub Temp sensor adc_init(4) //Outside Temp sensor But does this need to be called as part of a function ? I know the lines get read and executed upon downloading them, but when they have been saved to flash, do they get read again whenby BruceV - ByPic
Thanks, recieved new chip and replaced, unfortunately the issue is still there. This is the code that fails function RT() dim a,b //local values b = 0 //set b = 0 print "1 " // ** for testing ** for a = 1 to 500 print "2 " // ** for testing ** b = b + adc_get(2) // get avg print "3 " // ** for testing **by BruceV - ByPic
I think the following confirms that my chip will have this bug, is there a method of programming so as not to encounter the issue ? ====================================== | ByPic Version 2.08 | Saves 0 | | MBCHIPMX1 Serial# 201310016 | | | Documentation www.bypic.co.uk | |by BruceV - ByPic
Tried the #option only off command and it does now over look the Rookie3 main() function, but the code still stops at the same place.by BruceV - ByPic
is this reply in regard to my new post "Re: Running my progam from Flash"by BruceV - ByPic
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. Thanksby BruceV - ByPic
MX1, I've done a bit more digging and it appears that if I transfer & save Rookie1,2,3 & then my code and then run it from the command line it works, but if I then reset the MX1, it only gets to the code as above. If I HALT the program and then type any of the function, it just stops. Also I thought it might be the adc_get code, but if I comment it out, then it stops after the For/by BruceV - ByPic
I have written the code to run my Hot tub, using Rookie and it all functions correctly (finally, programming not my strong point !!!) I have modified Rookie3.bas and removed the main() function and re-used the label in my code. The code works until I save it to flash, then when it start the code, it initalises the Max7219 display,runs a test, then hangs. I have put print statements in to try aby BruceV - ByPic
The code (in the program) is as typed at the top of my post and it has the ""s in, although the error message does miss them out. I did try the 'setup commands' before the function was created, but when rec'd the error I thought it might be connected to the fact that the function name was not present yet, so moved the them to after. Just tried this (with extra spaces) ir_setPiby BruceV - ByPic
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# 201310016by BruceV - ByPic
Hi, I am having an issue when downloading my program to the BV500, via BV_COM2. ************************ function SWP() //many lines of code endf //---------------------------- io_pinMode(PORTA,0,IN,WPU) io_pinMode(PORTA,1,IN,WPU) io_pinMode(PORTA,2,IN,WPU) io_pinMode(PORTA,3,IN,WPU) // Maintenance SW io_pinMode(PORTA,4,IN,WPU) ir_setPin(?IrPORTA,“SWP”,4) // RA4 ************by BruceV - ByPic
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.bby BruceV - ByPic
I am trying to use pin RA0 as an input, but as soon as I connect it to the output of a 74hs148 (which is held high) I am unable to talk to the BV500 via the USB connection, so is RA0 used for communcation ???by BruceV - BV500
Is there somewhere that clarifies the commands that are valid for the BV500 (MX1, I think) for both the Rookie code and the BYPIC code doesn't work and there appears to be commands that are used in examples that aren't listed in the key words.by BruceV - BV500
OK, so the parts have arrived and I have put them together, the BV500 works fine and I can load the Rookie code and perform simple bits of code. I changed the design slightly so instead of using 8 input lines I have used a 74HC148, which I then connected the GS output to an Interrupt input and will then read the 3 encoded lines (A0,A1,A2)to workout which switch was pressed, so saving a few I/Oby BruceV - Projects
Thanks for the ideas. Sorry did I miss the fact that the BV500 has ADC built-in or are you suggesting that I interface a number of ADC.s to those lines ? I had already obtained Maxim 7219 & 7221 in an attempt to interface to the current 7 Seg display, but was trying to use a Make Controller, which now appears to be defunked. When it talks about I2C is that another term for SPI connecby BruceV - Projects