Hi Mike,
Thanks for your help, I need to use directly from PBP, I have an older version.
I'm thinking of using a single PWM PIC like PIC18F1320 to control two analogue values then use sample and hold get two outputs.
Regards,
Suded
Hi Mike,
Thanks for your help, I need to use directly from PBP, I have an older version.
I'm thinking of using a single PWM PIC like PIC18F1320 to control two analogue values then use sample and hold get two outputs.
Regards,
Suded
Frequency is controlled by the scaler in T2CON and the value of PR2. The setting I'm using provides for the slowest frequency possible with my OSC speed; PR2 = $FF. The reason I do this the long way is PBP3 will actually toggle PR2 between 2 values to deliver the frequency requested in the HPWM command (HPWM 1,DutyCycle,Frequency). I needed a consistent cycle-to-cycle period timing and couldn't achieve it with HPWM.
Bookmarks