Some clarification
I guess I wasn't very clear about what I want to know. I'm holding back some info because this circuit may be very valuable.
Presently, I have the 2 HPWM outputs going to a quad 2-input AND gate with the other 4 digital outputs used for "steering" the 2 PWMs to 2 places each. They are the forward and reverse speed control of two motor control H-Bridges. PWM ANDED.JPG
This circuit works fine. I want to eliminate the 4 AND gates, thus the chip and caps from my PCB. See Un ANDED PIC.JPG
The question is about the PICBASIC PRO syntax.
PORTB.6 = PORTA.2 AND PORTB.2
Will this syntax work assuming the PIC is producing 2 varying duty cycle PWMs at 3KHZ, hard wire connected to general purpose digital inputs?
PORTA.2 tied to HPWM1, and PORTA.3 tied to HPWM2 (Pin 12-4 and Pin 13-5)
I get no errors when compiling, but I have no way to test the hardware.
Thanks!
The less you expect, the more you get.
Bookmarks