Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM Pins on J20 #1

Open
jeffeb3 opened this issue May 14, 2020 · 1 comment
Open

PWM Pins on J20 #1

jeffeb3 opened this issue May 14, 2020 · 1 comment

Comments

@jeffeb3
Copy link

jeffeb3 commented May 14, 2020

I am trying to help some people (from the V1Engineering.com forums) find a suitable PWM pin that isn't in use. We thought pin 53 PB14 would work, but it isn't scaling, it is only outputting 3.3V or 0V.

Looking at this variant.cpp file, it looks like it is defined with NOT_ON_PWM. It looks like most of the pins are that way.

But I also noticed that pin 4, which looks like it is for FAN1, is also not defined as a PWM pin (although it says it has a timer).

I can't imagine the sam3x only has 10 PWM outputs. Is it possible for your to enable more PWM outputs on J20 on the Archim (1&2)?

@V1EngineeringInc @Allted

@mperino
Copy link

mperino commented Aug 4, 2021

This still appears to be an issue with Archim on Marlin 2.0.7.2.
WIth:
#define SPINDLE_LASER_ENA_PIN 70 // digital pin J20 connector pin22 (PA17 aka digital pin 70)
#define SPINDLE_LASER_PWM_PIN 53 // digital pin - MUST BE HARDWARE PWM J20 connector pin17 (PB14 PWMH2 aka digial pin 53)

Building in release mode
Compiling .pio/build/DUE_archim/src/src/HAL/DUE/DebugMonitor.cpp.o
In file included from Marlin/src/HAL/DUE/../../core/../inc/MarlinConfig.h:49:0,
from Marlin/src/HAL/DUE/../../core/serial.h:24,
from Marlin/src/HAL/DUE/DebugMonitor.cpp:25:
Marlin/src/HAL/DUE/../../core/../inc/SanityCheck.h:3075:8: error: #error "SPINDLE_LASER_PWM_PIN not assigned to a PWM pin."
#error "SPINDLE_LASER_PWM_PIN not assigned to a PWM pin."
^~~~~
In file included from Marlin/src/HAL/DUE/../../core/../inc/MarlinConfig.h:50:0,
from Marlin/src/HAL/DUE/../../core/serial.h:24,
from Marlin/src/HAL/DUE/DebugMonitor.cpp:25:
Marlin/src/HAL/DUE/../../core/../inc/../HAL/DUE/inc/SanityCheck.h:56:4: error: #error "Features requiring Hardware PWM (FAST_PWM_FAN, SPINDLE_LASER_FREQUENCY) are not yet supported on DUE."
#error "Features requiring Hardware PWM (FAST_PWM_FAN, SPINDLE_LASER_FREQUENCY) are not yet supported on DUE."

It's not seeing Pin 53 (aka PB14) as a valid PWM pin...

Ticket is over a year old, can we bump up the priority?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants