Pin 14 is a PWMgen for compatiblity with the C11G breakout
(it would be PWMgen 0 in the hal file)
The stepgens are addressed as stepgen 0,1,2 etc in hal
These go to appropriate C11G pins (look at the pinout file
or the results of a readhmid command)
For example, Stepgen 0 is connected to DB25 pins 2 and 3 (step and dir respectively)
The optional qcount can be ignored, just use the GPIO inputs
IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort None
14 1 IOPort PWMGen 0 PWM (Out)
2 2 IOPort StepGen 0 Step (Out)
15 3 IOPort None
3 4 IOPort StepGen 0 Dir (Out)
16 5 IOPort None
4 6 IOPort StepGen 1 Step (Out)
17 7 IOPort StepGen 4 Step (Out)
5 8 IOPort StepGen 1 Dir (Out)
6 9 IOPort StepGen 2 Step (Out)
7 10 IOPort StepGen 2 Dir (Out)
8 11 IOPort StepGen 3 Step (Out)
9 12 IOPort StepGen 3 Dir (Out)
10 13 IOPort QCount 0 Quad-A (In)
11 14 IOPort QCount 0 Quad-B (In)
12 15 IOPort QCount 0 Quad-IDX (In)
13 16 IOPort None
I should add that if you are creating a hal/ini file set from scratch with pncconf
you should use pncconfs discover option and set:
encoders=0
stepgens=4
pwmgens=0
and then all the required GPIO will be available to setup in pncconf