Variable Frequency From input button

Status
Not open for further replies.

codewiz

Member level 5
Joined
Sep 14, 2008
Messages
80
Helped
10
Reputation
20
Reaction score
8
Trophy points
1,288
Activity points
1,717
button frequency

I want to generate square wave oscillation using PIC16F873A with fixed duty cycle say 50% but i want to be able to change the frequency of oscillation from 1Hz to 1MHz by keying in the required value and make the PIC generate it. 20MHz crystal oscillator is used. pls, i need help on how to do this.
 

The internal PWM module cannot go as high as 1MHZ in small steps.
A software generator can also not be set in small steps.

If you need small steps you could use a DDS chip, connected to the pic.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…