Noob Q - Analog Outputs
I have some circuits to build that will fade on and off various lights based on sensor inputs. I can do this with timers, op-amps, logic IC's etc. but it may be time to graduate to PICs.
Couple simple questions.
From what I've read so far, PICs do not support D-to-A conversion or any analog output. Since I need to fade several sets of lights on or off over time, I presume the solution is PWM control?
Do I have to write the code to do the PWM or are there simple native commands and HW support that allow me to, for example, specify the frequency and duty cycle? Or is programming PWM outputs a long and complex process?
Are there only certain chips I can use? Only certain outputs?
Can I have more than one PWM output per chip?
Are there only certain high level languages (C, Basic) that support PWM control?
TIA
-- Dan
I have some circuits to build that will fade on and off various lights based on sensor inputs. I can do this with timers, op-amps, logic IC's etc. but it may be time to graduate to PICs.
Couple simple questions.
From what I've read so far, PICs do not support D-to-A conversion or any analog output. Since I need to fade several sets of lights on or off over time, I presume the solution is PWM control?
Do I have to write the code to do the PWM or are there simple native commands and HW support that allow me to, for example, specify the frequency and duty cycle? Or is programming PWM outputs a long and complex process?
Are there only certain chips I can use? Only certain outputs?
Can I have more than one PWM output per chip?
Are there only certain high level languages (C, Basic) that support PWM control?
TIA
-- Dan