Jump to content

mramos

EstablishedMember
  • Content Count

    40
  • Joined

  • Last visited

Everything posted by mramos

  1. cmcon = 7 Sorry to waste that question. I had cmcom=7, fixed the typo. Any list of the #pragma data commands. I am trying to set int_RC_noclockout. And the speeds. Using config=00000000000b (my 14 bits) did not let me do it either.
  2. I have my program running now. I am missing a lot. Is there a manual to get a better idea on setting up a chip. Like the 12F675? I can not figure out the #pragma to get INTOSC to no clock in or how to set the ADC to I/O. Has anyone done this? I am doing it now via my programmer. I would like to use the ICD2, but will live. I have the clock set to 4000000 but the LED it way to fast. So I am looking for a sample program to initialize a 12F675?
  3. I did the project already, but maybe I will try it in MPLABS and BoostBASIC now that it works. This Beta stuff can be a pain in the but. Now new question, MPLABS works fine now, in your IDE I still get this? I assume MPLABS shells to the same programs and it now works.. Building... BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Beta version. No limitations. Expire date: 2007.08.01 _.bas failure C:\Program Files\SourceBoost\include\basic\
  4. Here is the .mcp, not sure how I missed that one.. Here is all again, the board did not like a .mcp file. Thanks waterheater.zip
  5. Still the same error.. Both IDE and MPLABS. MPLABS is 7.5 I think there is a 7.60.. Anyway, same code I uninstalled Sourceboost, remove the project, reinstall sourceboost, in MPLABS made a new project. Still the same error in MPLABS------------------------- Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\waterheaterservo.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675 BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture) http://www.sourceboost.com Copyrigh
  6. Will an uninstall and re-install and hope that does the trick? At least I know the code compiles. Thanks.
  7. Dave, did the code compile for you? I still have the same error. I did a re-install and integrate. Can not see anything wrong in the code (not meaning there is not a mistake in there, just can not find it)..
  8. Dave, I cut and pasted your code in.. Same error in MPLABS. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\waterheaterservo.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675 BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Single user Lite License (Unregistered) for 0 node(s) Lim
  9. Here she is. Thanks Dave. Do not see attach or upload? Will try code command. Also, Your IDE give a different error? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Building... BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Beta version. No limitations. Expire date: 2007.08.01 _.bas failure C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure Exit code was 1. Removing target: _.obj Failed to locate outpu
  10. Best to use the integrate option and go from there. Regards Dave I reinstalled with integrate. Now I have this? Fails on #include <basic/system.bas> Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675 BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Single user Lite License (Unregistered) for 0 node(s) Limitations: PIC12,PIC16 max code size:2
  11. Dave, I loaded the update. Did not integrate this time as I modified the MPLABS files by hand as you showed me. When I compile now (in the BoostIDE) I get Building... BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Beta version. No limitations. Expire date: 2007.08.01 _.bas failure Exit code was 1. Removing target: _.obj C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure Failed to locate output file '_.ob
  12. Dave, I loaded the update. Did not integrate this time as I modified the MPLABS files by hand as you showed me. When I compile now (in the IDE) I get Building... BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Beta version. No limitations. Expire date: 2007.08.01 _.bas failure Exit code was 1. Removing target: _.obj C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure Failed to locate output file '_.obj
  13. Dave and folks, I decided to write a servo driver this morning (would be my first real project). Wrote it in the SourceIDE, compiled and linked and all was good. SUCCESSFUL... hooked up the ICD2 and a 12F675, went in MPLABS, made a project. Did a build and got license expired!!! Now I had the MPLABs working fine last time I played with SourceBoost BASIC. Went back to SourceBoost IDE and it now says the same. EXPIRED!!! Looks like I will have to write in something else. I really want to try this program, but I am not having much luck. Will go look for an updated Bet
  14. Add to the top of the source file: #include <basic/system.bas> Regards Dave <{POST_SNAPBACK}> It also needs to be the first line. MAN this is cool.. BASIC in MPLABS. I will do a project with it and see how it goes. Thanks again Dave.
  15. The code that fails ' LDR on GPIO0 ' LED on GPIO1 ' RELAY on GPIO2 ' '#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF '#pragma CLOCK_FREQ 4000000 '#pragma OPTIMIZE "0" ' init ADC port dim ldr@GPIO.0 as bit dim led@GPIO.1 as bit dim relay@GPIO.2 as bit dim a as char sub adc_init() trisio = 00000001b 'pin A0 is for analog input ' adcon1 = 10001110b 'setting for only AN0 and ref of vss and vdd, Fosc/8 adcon0 = 01000001b 'setting for channel AN0 and Fosc/8 for 4Mhz, start AD end sub ' read ADC port function adc_read() as byte adcon0.2 = 1 call de
  16. Thanks for bumping this topic. Using SourceBoost package V6.70 with the BoostBasic compiler selected in MPLABs this code compiles and links: #include <basic/system.bas> #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF dim ldr@GPIO.0 as bit sub main() end sub That seemed to work? Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\davetest.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostbasic.pic16.exe" testdave.bas -O1 -W1 -t 12F675 BoostBasic Optimizing Basic Compiler Version 6.60 Beta (for PIC16
  17. Well, it has been some time now and no response? Did Boost BASIC get parked? Or is there a release close (my hopes) and everyone if busy working on it? No one has answered my post and it has been some time.
  18. 7 = #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF 11 = dim ldr@GPIO.0 as bit <{POST_SNAPBACK}> Any help? It works in the IDE. Is there a release coming soon that will hook into MPLABS? I would really like to debug in BASIC and program via MPLABS. Thanks
  19. 7 = #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF 11 = dim ldr@GPIO.0 as bit
  20. I have a program that works in the IDE. I modded the files so I have the SouceBASIC in the MPLABS and loaded it. I see the program, all looks good.. Then if I build it, I get this error: Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\ldr675office.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostbasic.pic16.exe" ldr675office.bas -O1 -W1 -t 12F675 BoostBasic Optimizing Basic Compiler Version 6.60 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright(C) 2004-2006 Pavel Baranov Copyright(C) 2004-2006 David Hobday Beta
  21. Can you post what you are trying to do? I did not know the Boost BASIC was for sale yet? But I will see if I can help you.
  22. We tested preliminary BoostBasic integration into MPLAB and so far it looks good. It's very likely it will be included into the coming release. Regards, Pavel <{POST_SNAPBACK}> Fantastic. I really like boostbasic. I will hang. If you need beta testers, count me in. I use MPLABS ASM, mikrobasic, pic basic, really like proton, etc. So I can give it a workout for sure. Really tired of using Mikrobasic and then using the .LST file to debug the code Your price tag is inline and linking into MPLABS. I think you will be happy with the sales of BoostBASIC. I know
  23. Still waiting to hear about the _.bas file to know if I should wait a bit for MPLABS support or not?
×
×
  • Create New...