mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-07-08 07:27:44 -06:00
parent
1805bb3663
commit
a24a1d791d
565 changed files with 5380 additions and 3309 deletions
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2884,9 +2884,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2947,9 +2947,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2948,9 +2948,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2946,9 +2946,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2857,9 +2857,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2857,9 +2857,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2855,9 +2855,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2891,9 +2891,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2891,9 +2891,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2891,9 +2891,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2891,9 +2891,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2886,9 +2886,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2886,9 +2886,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2886,9 +2886,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2855,9 +2855,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2888,9 +2888,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -553,18 +553,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -574,9 +577,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2868,9 +2868,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2806,9 +2806,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -542,18 +542,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -563,9 +566,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2873,9 +2873,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2873,9 +2873,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2858,9 +2858,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2867,9 +2867,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2866,9 +2866,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2854,9 +2854,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -2868,9 +2868,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -549,18 +549,21 @@
|
||||||
//#define FAN_MAX_PWM 128
|
//#define FAN_MAX_PWM 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FAST PWM FAN Settings
|
* Fan Fast PWM
|
||||||
*
|
*
|
||||||
* Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
|
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally
|
||||||
* Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
|
* to produce a frequency as close as possible to the desired frequency.
|
||||||
* frequency as close as possible to the desired frequency.
|
|
||||||
*
|
*
|
||||||
* FAST_PWM_FAN_FREQUENCY [undefined by default]
|
* FAST_PWM_FAN_FREQUENCY
|
||||||
* Set this to your desired frequency.
|
* Set this to your desired frequency.
|
||||||
* If left undefined this defaults to F = F_CPU/(2*255*1)
|
* For AVR, if left undefined this defaults to F = F_CPU/(2*255*1)
|
||||||
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
* i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
|
||||||
* These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
|
* For non AVR, if left undefined this defaults to F = 1Khz.
|
||||||
|
* This F value is only to protect the hardware from an absence of configuration
|
||||||
|
* and not to complete it when users are not aware that the frequency must be specifically set to support the target board.
|
||||||
|
*
|
||||||
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
* NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
|
||||||
|
* Setting very high frequencies can damage your hardware.
|
||||||
*
|
*
|
||||||
* USE_OCR2A_AS_TOP [undefined by default]
|
* USE_OCR2A_AS_TOP [undefined by default]
|
||||||
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
* Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
|
||||||
|
@ -570,9 +573,17 @@
|
||||||
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
* PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
|
||||||
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
* USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
|
||||||
*/
|
*/
|
||||||
|
//#define FAST_PWM_FAN // Increase the fan PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
//#define FAST_PWM_FAN_FREQUENCY 31400
|
//#define FAST_PWM_FAN_FREQUENCY 31400 // Define here to override the defaults below
|
||||||
//#define USE_OCR2A_AS_TOP
|
//#define USE_OCR2A_AS_TOP
|
||||||
|
#ifndef FAST_PWM_FAN_FREQUENCY
|
||||||
|
#ifdef __AVR__
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1))
|
||||||
|
#else
|
||||||
|
#define FAST_PWM_FAN_FREQUENCY 1000U
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2853,9 +2853,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
|
@ -2852,9 +2852,6 @@
|
||||||
// :[1,2,3,4,5,6,7,8]
|
// :[1,2,3,4,5,6,7,8]
|
||||||
//#define NUM_M106_FANS 1
|
//#define NUM_M106_FANS 1
|
||||||
|
|
||||||
// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
|
|
||||||
//#define FAST_PWM_FAN
|
|
||||||
|
|
||||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue