triffid / FiveD_on_Arduino

Rewrite of reprap mendel firmware
http://forums.reprap.org/read.php?147,33082
GNU General Public License v2.0
30 stars 12 forks source link

Changes to make termistor work #14

Closed jv4779 closed 13 years ago

jv4779 commented 13 years ago

Fixed the analog ISR since it originally wasn't starting a new conversion after the ADC interrupt was re-enabled. Then changed it again to do continuous ADC conversions because the on-demand disable was causing a 250ms lag between when the ADC was sampled and when the PID logic used the value.

Fixed the raw temp conversion in temp.c, the scaling was wrong when converting to 14.2 pseudo float.

Changed temp_tick so that the temp is always updated so M105 works before and after M104 has a set point.

Changed REFERENCE in config.h.dist to AVCC, this is the default stock arduino analogRead uses and the only value allowed by official FiveD firmware.