... 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 " !!!
*****************************************
Bookmarks