mikroC compiler question

Thread Starter

yagami86

Joined Aug 2, 2010
1
for this command > PWM_Init(frequency_value). What is the frequency value it refer to? can anyone help me please?
 

DumboFixer

Joined Feb 10, 2009
217
did you have a look at the help file for the compiler ?

From the help text:

Parameter freq is a desired PWM frequency in Hz (refer to device data sheet for correct values in respect with Fosc).
So if you wanted a frequency of 5KHz you would use

Rich (BB code):
PWM_Init(5000)
 
Top