Jump to content

mramos

EstablishedMember
  • Content Count

    40
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mramos

  • Rank
    Regular
  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\system.bas(14): error: failure Exit code was 1. Removing target: _.obj Failed to locate output file '_.obj' Done Failed
  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 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:2048 words, max RAM banks:2, Non commercial use only waterheaterservo.bas D:\pic\sbasic\waterheaterservo.bas(1): error: failure failure BUILD FAILED: Sat May 26 07:41:42 2007 IDE 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 output file '_.obj' Done Failed
  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) Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only waterheaterservo.bas D:\pic\sbasic\waterheaterservo.bas(1): error: failure failure BUILD FAILED: Tue May 22 21:49:05 2007
  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 output file '_.obj' Done Failed ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include <basic/system.bas> ' SERVO on GPIO0 ' LED on GPIO1 ' #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF #pragma CLOCK_FREQ 48000 dim servo@GPIO.0 as bit dim led@GPIO.1 as bit dim state as long dim cnt as byte dim up as byte dim down as byte ' MAIN Sub main() trisio = ( 00000000b ) 'pin A0 as input for analog input state=0 cnt = 0 Do while 1 cnt = cnt +1 if cnt = 37800 then cnt = 0 end if if cnt = 1 then state=1 end if if cnt = 5400 then state =0 end if if state=1 then 'pulse servo on for i = 1 to up servo = 1 call delay_ms(10) servo = 0 call delay_ms(10) next state=2 end if if state=0 then 'pulse servo off for i = 1 to down servo = 1 call delay_ms(10) servo = 0 call delay_ms(10) next state = 2 end if led = 1 'light LED call delay_ms(100) led = 0 'off LED sleep 'call delay_ms(500) 'delay to take readings after 1/2 seconds Loop end Sub
  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:2048 words, max RAM banks:2, Non commercial use only waterheaterservo.bas C:\Program Files\SourceBoost\include\basic\system.bas(1): error: failure failure BUILD FAILED: Sat May 19 13:31:26 2007
  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 '_.obj' Done Failed ------------------------------- MPLABS now has 2 errors, one on an END IF? But mt first program compiles in MPLABs no errors.
  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' Done Failed ============================================ EDIT: And thanks for the very fast reply.. WOW! Faith restored. Also, it works now in the MPLABS.
  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 Beta. Please advise.
×
×
  • Create New...