Hello everyone,
I'm trying setup pwm frequency for tiva C in Energia but failed at this line: analogFrequency(PWM_FREQ)
// define PWM pins
#define PWM_1 PD_6
// define PWM frequency
#define PWM_FREQ 20000
void setup()
{
pinMode(PWM_1, OUTPUT);
analogFrequency(PWM_FREQ);
}
void loop()
{
analogWrite(PWM_1, 50);
}
Can help me with the problem, thank!