
Originally Posted by
boroko
HI all,
My problem is different than the original thread, but the title fits, so I'll post it here.
I have been using MCS and PBP for a while, and never managed to really "use" MPLAB. It seem that every time I try, I fall into a "pit of death" and get frustrated and ignore it again.
Well, I have a troublesome program, and I need to see it in a simulator. After looking around, it seems that MPLAB has it if I can figure out the hurtles. I was encouraged to try again by Chuck Hellebuyck's article in N&V and it seemed so easy. HA! again the gremlins have their way with me!
I have MPLAB 7.60 in C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe (default) PBP is 2.47. In MPASM points to C:\PBP\PBPW.exe (default) copied the .inc files as mentioned.
Ran PBPlugins.bat and checked the path on my computer.
It is:
C:\MCC;%SystemRoot%\system32;%SystemRoot%;%SystemR oot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\QuickTime\QTSystem\;C:Program Files\Microchip\MPASM Suite;C:\PBP
>Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p16F690 "BLINK.BAS"
>PICBASIC PRO(TM) Compiler 2.47, (c) 1998, 2006 microEngineering Labs, Inc. All Rights Reserved.
>
>ERROR: Unable to execute mpasmwin. Halting build on first failure as requested.
>BUILD FAILED: Sat May 03 06:58:40 2008
I reassigned the paths and got the same error.
I would love to learn to use MPASM, but it seems that I keep running into problems like this and get frustrated.
Can anyone see something that I’m missing?
Thanks again
Mark
P.S. The whole reason for this round of gymnastics is to try and figure out a motion control glue board that I need.
If anyone cares to look it over and offer any ideas, they would be greatly appreciated.
I’m hoping that by seeing it in a simulator, I can get some ideas on where the problem is.
I have been working in MicroCode Studio and using Darrel Taylor’s DT_INTS-14-0.bas for handling the interrupts.(the “-0” is a mod for 0 banks on the 12F).
The code that I have follows:
<code>
************************************************** **************
'* Name : encTest12F675-6.BAS *
'* Author : Mark A.Rokus *
'* Notice : Copyright (c) 2008 Controlled Surroundings Inc. *
'* : All Rights Reserved *
'* Date : 4/12/2008 *
'* Version : 6.0 *
'* Notes : 12F675@4mhz, INT_OSC *
'* : PBP 2.47, MPASM: 5.11, 282 words used *
'* : Need to test *
'* : LAST: Trav works if not too fast, Manual erratic *
'* : and locks auto travel sometimes *
'************************************************* ***************
' 1)Quadrature encoder reading direction and speed of mechanical slide.
' 2) Motor (servo) driven in ONE direction of slide movement,
' not driven for other direction. Active LOW Pulse & Direction drive.
' 3) another Manual Encoder to drive servo either direction manually.
' ADD pull-up to GPIO.3 on 12F675
'_CONFIG INT_OSC?
'move to different chip
<FONT COLOR=RED>'How do you set the DEVICE for MCS & MPASM?</FONT COLOR>
' Test "end of Travel- up" for manual feed
</code>
________________________________________
Hi Mark,
Try these ,
Code:
ASM
ifndef __12F675
error "12F675 not selected"
endif
ENDASM
@ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF
PCON = %00000011 ' BOD off, No POR flag set
DEFINE NO_CLRWDT 1
DEFINE OSC 4
OSCCAL = %1111100 ' SET OSC TO MAXIMUM SET OSC TO 4 MHZ INTERNAL
Last edited by Archangel; - 4th May 2008 at 02:37.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks