ragul07
Junior Member level 1
hey all....
Am trying to generate PWM for a certain constant frequency and the PWM module works fine...
But when i interface it with an 16x2 LCD and also add some routines to detect the status f PORTA:sad:
The duty cycle of the PWM signal varies and it behaves erratically...!
The program is simple but i does function as desired...
This is my pic with Proteus..
Here i had attached my code...
View attachment PWM+LCD.txt
Am trying to generate PWM for a certain constant frequency and the PWM module works fine...
But when i interface it with an 16x2 LCD and also add some routines to detect the status f PORTA:sad:
The duty cycle of the PWM signal varies and it behaves erratically...!
The program is simple but i does function as desired...
This is my pic with Proteus..
Here i had attached my code...
View attachment PWM+LCD.txt