Browse Source

Merge pull request #6109 from thinkyhead/rc_soft_pwm_dither

PWM dithering followup
Scott Lahteine 8 years ago
parent
commit
b47eaf14ae

+ 6
- 0
Marlin/example_configurations/Cartesio/Configuration.h View File

1426
 // at zero value, there are 128 effective control positions.
1426
 // at zero value, there are 128 effective control positions.
1427
 #define SOFT_PWM_SCALE 0
1427
 #define SOFT_PWM_SCALE 0
1428
 
1428
 
1429
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1430
+// be used to mitigate the associated resolution loss. If enabled,
1431
+// some of the PWM cycles are stretched so on average the wanted
1432
+// duty cycle is attained.
1433
+//#define SOFT_PWM_DITHER
1434
+
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1435
 // Temperature status LEDs that display the hotend and bed temperature.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1436
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.
1437
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/Felix/Configuration.h View File

1409
 // at zero value, there are 128 effective control positions.
1409
 // at zero value, there are 128 effective control positions.
1410
 #define SOFT_PWM_SCALE 0
1410
 #define SOFT_PWM_SCALE 0
1411
 
1411
 
1412
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1413
+// be used to mitigate the associated resolution loss. If enabled,
1414
+// some of the PWM cycles are stretched so on average the wanted
1415
+// duty cycle is attained.
1416
+//#define SOFT_PWM_DITHER
1417
+
1412
 // Temperature status LEDs that display the hotend and bed temperature.
1418
 // Temperature status LEDs that display the hotend and bed temperature.
1413
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1419
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1414
 // Otherwise the RED led is on. There is 1C hysteresis.
1420
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

1409
 // at zero value, there are 128 effective control positions.
1409
 // at zero value, there are 128 effective control positions.
1410
 #define SOFT_PWM_SCALE 0
1410
 #define SOFT_PWM_SCALE 0
1411
 
1411
 
1412
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1413
+// be used to mitigate the associated resolution loss. If enabled,
1414
+// some of the PWM cycles are stretched so on average the wanted
1415
+// duty cycle is attained.
1416
+//#define SOFT_PWM_DITHER
1417
+
1412
 // Temperature status LEDs that display the hotend and bed temperature.
1418
 // Temperature status LEDs that display the hotend and bed temperature.
1413
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1419
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1414
 // Otherwise the RED led is on. There is 1C hysteresis.
1420
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/Hephestos/Configuration.h View File

1418
 // at zero value, there are 128 effective control positions.
1418
 // at zero value, there are 128 effective control positions.
1419
 #define SOFT_PWM_SCALE 0
1419
 #define SOFT_PWM_SCALE 0
1420
 
1420
 
1421
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1422
+// be used to mitigate the associated resolution loss. If enabled,
1423
+// some of the PWM cycles are stretched so on average the wanted
1424
+// duty cycle is attained.
1425
+//#define SOFT_PWM_DITHER
1426
+
1421
 // Temperature status LEDs that display the hotend and bed temperature.
1427
 // Temperature status LEDs that display the hotend and bed temperature.
1422
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1428
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1423
 // Otherwise the RED led is on. There is 1C hysteresis.
1429
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h View File

1420
 // at zero value, there are 128 effective control positions.
1420
 // at zero value, there are 128 effective control positions.
1421
 #define SOFT_PWM_SCALE 0
1421
 #define SOFT_PWM_SCALE 0
1422
 
1422
 
1423
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1424
+// be used to mitigate the associated resolution loss. If enabled,
1425
+// some of the PWM cycles are stretched so on average the wanted
1426
+// duty cycle is attained.
1427
+//#define SOFT_PWM_DITHER
1428
+
1423
 // Temperature status LEDs that display the hotend and bed temperature.
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1424
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1425
 // Otherwise the RED led is on. There is 1C hysteresis.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/K8200/Configuration.h View File

1460
 // at zero value, there are 128 effective control positions.
1460
 // at zero value, there are 128 effective control positions.
1461
 #define SOFT_PWM_SCALE 0
1461
 #define SOFT_PWM_SCALE 0
1462
 
1462
 
1463
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1464
+// be used to mitigate the associated resolution loss. If enabled,
1465
+// some of the PWM cycles are stretched so on average the wanted
1466
+// duty cycle is attained.
1467
+//#define SOFT_PWM_DITHER
1468
+
1463
 // Temperature status LEDs that display the hotend and bed temperature.
1469
 // Temperature status LEDs that display the hotend and bed temperature.
1464
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1470
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1465
 // Otherwise the RED led is on. There is 1C hysteresis.
1471
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/K8400/Configuration.h View File

1426
 // at zero value, there are 128 effective control positions.
1426
 // at zero value, there are 128 effective control positions.
1427
 #define SOFT_PWM_SCALE 0
1427
 #define SOFT_PWM_SCALE 0
1428
 
1428
 
1429
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1430
+// be used to mitigate the associated resolution loss. If enabled,
1431
+// some of the PWM cycles are stretched so on average the wanted
1432
+// duty cycle is attained.
1433
+//#define SOFT_PWM_DITHER
1434
+
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1435
 // Temperature status LEDs that display the hotend and bed temperature.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1436
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.
1437
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h View File

1426
 // at zero value, there are 128 effective control positions.
1426
 // at zero value, there are 128 effective control positions.
1427
 #define SOFT_PWM_SCALE 0
1427
 #define SOFT_PWM_SCALE 0
1428
 
1428
 
1429
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1430
+// be used to mitigate the associated resolution loss. If enabled,
1431
+// some of the PWM cycles are stretched so on average the wanted
1432
+// duty cycle is attained.
1433
+//#define SOFT_PWM_DITHER
1434
+
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1435
 // Temperature status LEDs that display the hotend and bed temperature.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1436
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.
1437
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

1426
 // at zero value, there are 128 effective control positions.
1426
 // at zero value, there are 128 effective control positions.
1427
 #define SOFT_PWM_SCALE 0
1427
 #define SOFT_PWM_SCALE 0
1428
 
1428
 
1429
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1430
+// be used to mitigate the associated resolution loss. If enabled,
1431
+// some of the PWM cycles are stretched so on average the wanted
1432
+// duty cycle is attained.
1433
+//#define SOFT_PWM_DITHER
1434
+
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1435
 // Temperature status LEDs that display the hotend and bed temperature.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1436
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.
1437
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/RigidBot/Configuration.h View File

1427
 // at zero value, there are 128 effective control positions.
1427
 // at zero value, there are 128 effective control positions.
1428
 #define SOFT_PWM_SCALE 0
1428
 #define SOFT_PWM_SCALE 0
1429
 
1429
 
1430
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1431
+// be used to mitigate the associated resolution loss. If enabled,
1432
+// some of the PWM cycles are stretched so on average the wanted
1433
+// duty cycle is attained.
1434
+//#define SOFT_PWM_DITHER
1435
+
1430
 // Temperature status LEDs that display the hotend and bed temperature.
1436
 // Temperature status LEDs that display the hotend and bed temperature.
1431
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1437
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1432
 // Otherwise the RED led is on. There is 1C hysteresis.
1438
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/SCARA/Configuration.h View File

1441
 // at zero value, there are 128 effective control positions.
1441
 // at zero value, there are 128 effective control positions.
1442
 #define SOFT_PWM_SCALE 0
1442
 #define SOFT_PWM_SCALE 0
1443
 
1443
 
1444
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1445
+// be used to mitigate the associated resolution loss. If enabled,
1446
+// some of the PWM cycles are stretched so on average the wanted
1447
+// duty cycle is attained.
1448
+//#define SOFT_PWM_DITHER
1449
+
1444
 // Temperature status LEDs that display the hotend and bed temperature.
1450
 // Temperature status LEDs that display the hotend and bed temperature.
1445
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1451
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1446
 // Otherwise the RED led is on. There is 1C hysteresis.
1452
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/TAZ4/Configuration.h View File

1447
 // at zero value, there are 128 effective control positions.
1447
 // at zero value, there are 128 effective control positions.
1448
 #define SOFT_PWM_SCALE 0
1448
 #define SOFT_PWM_SCALE 0
1449
 
1449
 
1450
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1451
+// be used to mitigate the associated resolution loss. If enabled,
1452
+// some of the PWM cycles are stretched so on average the wanted
1453
+// duty cycle is attained.
1454
+//#define SOFT_PWM_DITHER
1455
+
1450
 // Temperature status LEDs that display the hotend and bed temperature.
1456
 // Temperature status LEDs that display the hotend and bed temperature.
1451
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1457
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1452
 // Otherwise the RED led is on. There is 1C hysteresis.
1458
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/WITBOX/Configuration.h View File

1418
 // at zero value, there are 128 effective control positions.
1418
 // at zero value, there are 128 effective control positions.
1419
 #define SOFT_PWM_SCALE 0
1419
 #define SOFT_PWM_SCALE 0
1420
 
1420
 
1421
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1422
+// be used to mitigate the associated resolution loss. If enabled,
1423
+// some of the PWM cycles are stretched so on average the wanted
1424
+// duty cycle is attained.
1425
+//#define SOFT_PWM_DITHER
1426
+
1421
 // Temperature status LEDs that display the hotend and bed temperature.
1427
 // Temperature status LEDs that display the hotend and bed temperature.
1422
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1428
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1423
 // Otherwise the RED led is on. There is 1C hysteresis.
1429
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

1426
 // at zero value, there are 128 effective control positions.
1426
 // at zero value, there are 128 effective control positions.
1427
 #define SOFT_PWM_SCALE 0
1427
 #define SOFT_PWM_SCALE 0
1428
 
1428
 
1429
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1430
+// be used to mitigate the associated resolution loss. If enabled,
1431
+// some of the PWM cycles are stretched so on average the wanted
1432
+// duty cycle is attained.
1433
+//#define SOFT_PWM_DITHER
1434
+
1429
 // Temperature status LEDs that display the hotend and bed temperature.
1435
 // Temperature status LEDs that display the hotend and bed temperature.
1430
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1436
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1431
 // Otherwise the RED led is on. There is 1C hysteresis.
1437
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h View File

1531
 // at zero value, there are 128 effective control positions.
1531
 // at zero value, there are 128 effective control positions.
1532
 #define SOFT_PWM_SCALE 0
1532
 #define SOFT_PWM_SCALE 0
1533
 
1533
 
1534
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1535
+// be used to mitigate the associated resolution loss. If enabled,
1536
+// some of the PWM cycles are stretched so on average the wanted
1537
+// duty cycle is attained.
1538
+//#define SOFT_PWM_DITHER
1539
+
1534
 // Temperature status LEDs that display the hotend and bed temperature.
1540
 // Temperature status LEDs that display the hotend and bed temperature.
1535
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1541
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1536
 // Otherwise the RED led is on. There is 1C hysteresis.
1542
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/delta/generic/Configuration.h View File

1516
 // at zero value, there are 128 effective control positions.
1516
 // at zero value, there are 128 effective control positions.
1517
 #define SOFT_PWM_SCALE 0
1517
 #define SOFT_PWM_SCALE 0
1518
 
1518
 
1519
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1520
+// be used to mitigate the associated resolution loss. If enabled,
1521
+// some of the PWM cycles are stretched so on average the wanted
1522
+// duty cycle is attained.
1523
+//#define SOFT_PWM_DITHER
1524
+
1519
 // Temperature status LEDs that display the hotend and bed temperature.
1525
 // Temperature status LEDs that display the hotend and bed temperature.
1520
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1526
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1521
 // Otherwise the RED led is on. There is 1C hysteresis.
1527
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

1520
 // at zero value, there are 128 effective control positions.
1520
 // at zero value, there are 128 effective control positions.
1521
 #define SOFT_PWM_SCALE 0
1521
 #define SOFT_PWM_SCALE 0
1522
 
1522
 
1523
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1524
+// be used to mitigate the associated resolution loss. If enabled,
1525
+// some of the PWM cycles are stretched so on average the wanted
1526
+// duty cycle is attained.
1527
+//#define SOFT_PWM_DITHER
1528
+
1523
 // Temperature status LEDs that display the hotend and bed temperature.
1529
 // Temperature status LEDs that display the hotend and bed temperature.
1524
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1530
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1525
 // Otherwise the RED led is on. There is 1C hysteresis.
1531
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

1519
 // at zero value, there are 128 effective control positions.
1519
 // at zero value, there are 128 effective control positions.
1520
 #define SOFT_PWM_SCALE 0
1520
 #define SOFT_PWM_SCALE 0
1521
 
1521
 
1522
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1523
+// be used to mitigate the associated resolution loss. If enabled,
1524
+// some of the PWM cycles are stretched so on average the wanted
1525
+// duty cycle is attained.
1526
+//#define SOFT_PWM_DITHER
1527
+
1522
 // Temperature status LEDs that display the hotend and bed temperature.
1528
 // Temperature status LEDs that display the hotend and bed temperature.
1523
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1529
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1524
 // Otherwise the RED led is on. There is 1C hysteresis.
1530
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

1529
 // at zero value, there are 128 effective control positions.
1529
 // at zero value, there are 128 effective control positions.
1530
 #define SOFT_PWM_SCALE 0
1530
 #define SOFT_PWM_SCALE 0
1531
 
1531
 
1532
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1533
+// be used to mitigate the associated resolution loss. If enabled,
1534
+// some of the PWM cycles are stretched so on average the wanted
1535
+// duty cycle is attained.
1536
+//#define SOFT_PWM_DITHER
1537
+
1532
 // Temperature status LEDs that display the hotend and bed temperature.
1538
 // Temperature status LEDs that display the hotend and bed temperature.
1533
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1539
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1534
 // Otherwise the RED led is on. There is 1C hysteresis.
1540
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/makibox/Configuration.h View File

1429
 // at zero value, there are 128 effective control positions.
1429
 // at zero value, there are 128 effective control positions.
1430
 #define SOFT_PWM_SCALE 0
1430
 #define SOFT_PWM_SCALE 0
1431
 
1431
 
1432
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1433
+// be used to mitigate the associated resolution loss. If enabled,
1434
+// some of the PWM cycles are stretched so on average the wanted
1435
+// duty cycle is attained.
1436
+//#define SOFT_PWM_DITHER
1437
+
1432
 // Temperature status LEDs that display the hotend and bed temperature.
1438
 // Temperature status LEDs that display the hotend and bed temperature.
1433
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1439
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1434
 // Otherwise the RED led is on. There is 1C hysteresis.
1440
 // Otherwise the RED led is on. There is 1C hysteresis.

+ 6
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

1422
 // at zero value, there are 128 effective control positions.
1422
 // at zero value, there are 128 effective control positions.
1423
 #define SOFT_PWM_SCALE 0
1423
 #define SOFT_PWM_SCALE 0
1424
 
1424
 
1425
+// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
1426
+// be used to mitigate the associated resolution loss. If enabled,
1427
+// some of the PWM cycles are stretched so on average the wanted
1428
+// duty cycle is attained.
1429
+//#define SOFT_PWM_DITHER
1430
+
1425
 // Temperature status LEDs that display the hotend and bed temperature.
1431
 // Temperature status LEDs that display the hotend and bed temperature.
1426
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1432
 // If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
1427
 // Otherwise the RED led is on. There is 1C hysteresis.
1433
 // Otherwise the RED led is on. There is 1C hysteresis.

Loading…
Cancel
Save