Welcome! Log In Create A New Profile

Advanced

timers in MARLIN

Posted by lunaperdiz 
timers in MARLIN
August 01, 2015 09:41AM
Hi!, my name is Nicolas, im from argntina. I dont speak very well english, sorry for this.
Im looking at the code but could not find, how marlin make configuration about the timer to PWM (hotend) output or timer interruption for read temperature?
Thanks!!!
Re: timers in MARLIN
August 01, 2015 06:09PM
Nothing? grinning smiley
Re: timers in MARLIN
August 09, 2015 08:34AM
PWM is for driving a heater, not for measuring temperature. Can't say about Marlin either, but Teacup code is here:

Heater PID and PWM output: [github.com] Quite a bit of code, because it deals with _all_ PWM outputs on any variant of ATmega. Many repeating patterns, though. For PWM only, heater_init() and heater_set() are sufficient.

Analog readings: [github.com]
Translating analog readings into temperatures: [github.com]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Sorry, only registered users may post in this forum.

Click here to login