Thankyou Jim, written into Bypic keywords Will try that tomorrow evening Malcolmby thomas.smith57 - ByPic
Jim. The hardware is the 12 button keypad and my code fails to give the expected test results when testing kp_scan. ie. 240 and 14. I believe the fault lies in these two functions. The original lines of code are left in but commented out. Some test code is still in place. Your observations would be appreciated. Malcolm //KeyPad Initialissation constant AD1PCFG% 0xbf809060 constant CPNUby thomas.smith57 - ByPic
I have been trying to convert the keyboard scanning program to Bypic code without success. So far I have not got the the first two functions to work as they should. Can anyone help. Also when the keyword 'return' is used where is the variable returned to and how can it be accessed. TMSmithby thomas.smith57 - ByPic
Using BVbasic scheduling was available using 'process'. What would provide a similar technique using ByPic. Malcolmby thomas.smith57 - ByPic
Thanks for that Jim. I was blind to the obvious Malcolmby thomas.smith57 - ByPic
I am altering the code for running the small keypad from pic32 basic to ByPic. The line giving me a problem is :- p%=and(p%,0x0f) My attempts :- p%=p% & 0x0f does not compile. Nor does :- p%=(p% && 0x0f) Can anyone give guidance? thanksby thomas.smith57 - ByPic
Thankyou Jim. That solved the problem. My Rookie firmware appears to be upto date, V2.1. However the downloaded paperwork I have appears to be out of date. How can we track what is up-to-date?by thomas.smith57 - ByPic
I am now using the Rookie code on my 513v2. I have been unable to get the code for flashing te onboard LED to compile. Error message is io_setC(15,OUT) is undefined. I have tried adding constants that may be relevant but without success. Where am I going wrong. I can flash the LED using different code by the way.by thomas.smith57 - ByPic
Thankyou Jim, that erasure sorted out the problem Malcolm Smithby thomas.smith57 - ByPic
Jim, Sorry to say but I am getting into a mess here. Followed your instructions about setting up of hand shaking but:- I am using the bload icon on BV_comm2 (next to the Tload icon) and initially htought I had saved a file to the SD card. On a closer look the function name showed up on DIR but the file was only 1 byte!. messed around and managed to delete ByPic so had to reload it using theby thomas.smith57 - ByPic
Thanks admin. I felt there was something missing but could not find out what. M Smithby thomas.smith57 - ByPic
I am disappointed no one has replied to my previous post. Despite more attempts I have still not being able to save a program file to the SD card on my BV513 nor have I been able to load one. Some one must be able to do this; how about telling me how. TIA Malcolm Smithby thomas.smith57 - ByPic
I have been using a pre-ByPic SD card in my BV513. This contains 37files after I successfully deleted some using the ByPic command. These show up with the DIR command. I have now got a new SDcard and on fitting it get curpath= 0:/ 0 Files. If I do a list(1) I get the 3 function names of files I tried to save to the original SD card but which did not show up under dir so I presume they must beby thomas.smith57 - ByPic
Thanks Jim. I did find out it was due to syntax errors in my code after I had posted. Thanks for the tips which will help me Malcolmby thomas.smith57 - BV513
When attemting to transfer programs from PSPad to BV_COM2 I get the error message ;transfer cancelled by target error. This is not all transfers but once it happens it keeps happening. What is the reason for this error, anyone know. M Smithby thomas.smith57 - BV513
Thanks for your help, things are jelling, but slowly Malcolmby thomas.smith57 - ByPic
I am just changing from BV-basic to Bypic basic having upgraded my BV513.. In the BV basic guide there is a short prog. to flash the on-board LED. Could someone show me how that would be done in Bypic Thanks M Smithby thomas.smith57 - ByPic