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 – 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