Hi there,
I am having a problem with the PWM and ADC modules of my PIC16F690. The program I am trying to write should do the following:
The problems I have:
Thanks
I am having a problem with the PWM and ADC modules of my PIC16F690. The program I am trying to write should do the following:
- Display Lowest 4 bits of the ADC input on PORTC
- Receive 8 lowest bits into Vin
- On Timer2 interrupt (new PWM period), call the lookup table and return with the corresponding value.
- Set the new duty cycle equal to this value.
- Repeat
The problems I have:
- The binary values don't show on PORTC
- The PWM doesn't output anything.
Thanks
Attachments
-
7.2 KB Views: 31