10 hz wave with microcontroller

Status
Not open for further replies.
Obviously, yes! But can be square wave, triangular wave, sine wave, arbitrary....
 

With all types of uC's you can generate waveforms.

For a square wave form you need only to adjust timers to produce 0.05 sec delay (one for High part of wave and the second for low part).

For triangular form you can use increment instructions.

Finally for Sine wave you can use look up tables.

Regards
 

jit_singh_tara said:
can we generate a 10 hz wave using pic microcontroller , if yes then how?!


For a square wave:


while(1)
{

RB0=1;
delay_ms(50);
RB0=0;
delay_ms(50);

}
 

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…