You need to use MPASM for the assembler.
It doesn't work with PBP's default PM assembler.
<br>
You need to use MPASM for the assembler.
It doesn't work with PBP's default PM assembler.
<br>
DT
I did a bit of code in ASM with MPLAB but If I create a project with MPLAB using MPASM, it will not compile my .bas code. I have tried using PBP within MPLAB but its not working.
Can you give me an overview (or a link) of how to do this?
Thanks
Mike
If you have the latest MPLAB it could be a problem.
See the note on this page at meLabs (01/26/2009) ...
http://melabs.com/support/mplab.htm
Added: If you are using MicroCode Studio, don't worry about all the steps to integrate PBP into MPLAB, you won't need them.
Just point MCS to the correct folder, and tell it to use MPASM.
<br>
Last edited by Darrel Taylor; - 1st June 2009 at 03:36. Reason: Added:
DT
I have the propper version 8.15a, it came on the PBP CD (purchased 2 weeks ago)
If I have to use MPLAB I will manage to figure it out but if you can just point me in the right direction I would appreciate.
Do I need to use PBP Tool Suite from within MPLAB?
Otherwize, if I use MPASM Tool Suite how would it compile the .bas section?
Sorry about all my questions...
Hi,
Trying out the "Elapsed Timer" I am observing these issues:
Beeing that I don't have an LCD module, I am trying to write the values in EEPROM and then read back using a PICKit2.
I know the code is working because LED1 is blinking and the rate seems to be good.
My first write is succesful
then trying to write the value for "Seconds" is always 00
trying to write the value for Minutes is always FF (even after a few minutes)
Am I missing something?Code:INCLUDE "DT_INTS-14.bas" INCLUDE "ReEnterPBP.bas" INCLUDE "Elapsed_INT.bas" ; Elapsed Timer Routines LED1 var portc.0 ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler TMR1_INT, _ClockCount, PBP, yes endm INT_CREATE ; Creates the interrupt processor INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts ENDASM GOSUB ResetTime ' Reset Time to 0d-00:00:00.00 GOSUB StartTimer ' Start the Elapsed Timer write 5,3 ; this is working fine. Main: IF SecondsChanged = 1 THEN SecondsChanged = 0 toggle led1 T1CON.0 = 0 write 0,Minutes ; this is always showing 00 write 1,Seconds ; this is always showing FF 'LCDOUT $FE,2, DEC Days,"d-",DEC2 Hours,":",DEC2 Minutes,":",DEC2 Seconds ENDIF GOTO Main
Thanks
Mike
Bookmarks