MPLAB SIM timing vs Real life


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking ... nothing new under the sun ...

    Hi,

    What I can tell you is the twin PWM, as you intend to use it, Works pretty well ...

    I have played with it for 10 years aboard my twin model boats. ( 18F876 used with PWM @ 4000 Hz ... and steering comp. included )


    What can't work properly is this section ...

    Code:
    PORTC.7 = 0 'LEFT_BACKWARD OFF
    PORTC.6 = 1 'LEFT_FORWARD ON
    PORTB.5 = 1 'RIGHT_FORWARD ON
    PORTB.4 = 0 'RIGHT_BACKWARD OFF
    PORTB.6 = PORTB.5 & PORTC.1 'RIGHT_PWM_FORWARD 
    PORTB.7 = 0 'RIGHT_PWM_BACKWARD OFF
    PORTC.4 = PORTC.6 & PORTC.2 'LEFT_PWM_FORWARD 
    PORTC.5 = 0 'LEFT_PWM_BACKWARD OFF
    so, use a different bridge wiring or a PIC dedicated to bridge driving ... ( 18F ???)


    Now, stop thinking simulators are the truth ... MPSIM is one of the "less worse" but also has its own limitations ...

    just good to waste your time and money ... no more !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Also - you have goto R_FWD with a RETURN at the end of R_FWD.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. MPLab SIM question
    By presario1425 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2007, 22:22
  2. Linker/COFF debugging in MPLAB SIM
    By RichardBowser in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th January 2007, 19:28
  3. Using MPLAB SIM
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th July 2006, 05:20
  4. Tracing code in MPLAB Sim
    By ErnieM in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th August 2005, 17:00
  5. pause loop lockup with mplab sim
    By power67 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2005, 14:10

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