[gnea/grbl-Mega Issue#144] Remap spindle speed pin

未分类 bolang 4个月前 (10-15) 22次浏览

Issue #144 | 状态: 已关闭 | 作者: TheBaum87 | 创建时间: 2021-05-11


Hey there,

I gotta remap most of the pins since my arduino connects to a Board with, well, a different pin-mapping.
No problem with the digital IO-pins, but I’m encountering issues with the PWM-pin for spindle speed. I made remapping, but any value bigger than 0 cranks it up to 100. I guess I have to change a few registers which I don’t see right now. just so you know I wanna have spindle speed on pin9, which is bit 6 from port H, hooked up tp OC2B.

I hope anyone can help me since I’m new to that bare to the bone PWM stuff so as registers


评论 (1)

#1 – TheBaum87 于 2021-05-11

> Hey there,
>
> I gotta remap most of the pins since my arduino connects to a Board with, well, a different pin-mapping.
> No problem with the digital IO-pins, but I’m encountering issues with the PWM-pin for spindle speed. I made remapping, but any value bigger than 0 cranks it up to 100. I guess I have to change a few registers which I don’t see right now. just so you know I wanna have spindle speed on pin9, which is bit 6 from port H, hooked up tp OC2B.
>
> I hope anyone can help me since I’m new to that bare to the bone PWM stuff so as registers

I solved it by myself. OC2B is a 8-bit timer so i had to set the PWM max to 255. now it works


原始Issue: https://github.com/gnea/grbl-Mega/issues/144

喜欢 (0)