Delayed output 10 secs


Closed Thread
Results 1 to 38 of 38

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You need to use MPASM for the assembler.

    It doesn't work with PBP's default PM assembler.
    <br>
    DT

  2. #2
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    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

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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

  4. #4
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    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...

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

  6. #6
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    Its all good now!

    Thanks

    Mike

  7. #7
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    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)


    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
    Am I missing something?

    Thanks

    Mike

Similar Threads

  1. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 12:34
  2. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 22:40
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Serial Output 10 Bits
    By GEEZER in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th May 2005, 02:14
  5. Using 4 input to control 10 output
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th November 2004, 12:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts