Page 1 of 1

Req: PWM pin reassignment

Posted: Wed Apr 06, 2011 1:15 pm
by KW1252
I had a chat with Fred about PWM, and an interesting discovery was made concerning PWM pin assignments.

Right now, there are two drivers connected to ports PP0.1 and two signal outputs at PP6.7, while ports 2 through 5 are for stepper controller.

The request is to rearrange PWM output to pins 0 through 3, and so that drivers connects to P0 and P2. This allows flexibility in PWM configuration, allowing either two 16-bit drivers or two 8-bit drivers with two 8-bit signal outputs.

Re: Req: PWM pin reassignment

Posted: Wed Apr 06, 2011 1:46 pm
by Fred
+1

Marcos, put the two on-board drivers on two 16 bit channels and put the two matched pins out as GP. That way you can have two 16 bit pwm drivers and two GP pins OR 4 8 bit pwm outputs, two with drivers, two without.

The way it is at the moment sets it up with the same 4 8 bit outputs, but in 16 bit mode you get one on board and one off board, and one GP on board driver and one GP output header.

The reason I prefer the other option is that the majority of people are going to want the best performance out of the on board drivers, ie, idle control for one output and boost for the other.

Fred

Re: Req: PWM pin reassignment

Posted: Wed Apr 06, 2011 10:37 pm
by nitrousnrg
Ack, good one.

Is in the TODO now.