On Fri, 20 Sep 2019 at 19:11, John Dammeyer <[email protected]> wrote:

So what Andy andn you are saying is if I set output-type to 4 instead of
> one the pwmgen.00 will magically appear on DB-25 pin 16?
>

In the case of that bitfile I think what would happen is that pin 14 would
become the PWM DIR output, and pin 16 would remain as GPIO.
The _definitive_ pin allocation file is the .vhd file, from which the
bitfile is made.

(PIN_C11Gx2_34.vhd)

constant PinDesc : PinDescType :=(
-- Base func  sec unit sec func sec pin -- external DB25
IOPortTag & x"00" & NullTag & NullPin, -- I/O 00 PIN 1 Spindle start just
GPIO
IOPortTag & x"00" & PWMTag & PWMAOutPin, -- I/O 01 PIN 14   Spindle speed
PWM
IOPortTag & x"00" & StepGenTag & StepGenStepPin, -- I/O 02 PIN 2    X Step
(0)
IOPortTag & x"00" & NullTag & NullPin, -- I/O 03 PIN 15 Fault in just GPIO
IOPortTag & x"00" & StepGenTag & StepGenDirPin, -- I/O 04 PIN 3 X Dir  (0)
IOPortTag & x"00" & NullTag & NullPin, -- I/O 05 PIN 16   Spindle direction
or GPIO
IOPortTag & x"01" & StepGenTag & StepGenStepPin, -- I/O 06 PIN 4 Y Step (1)
IOPortTag & x"04" & StepGenTag & StepGenStepPin, -- I/O 07 PIN 17 Charge
pump stepgen (5)
IOPortTag & x"01" & StepGenTag & StepGenDirPin, -- I/O 08 PIN 5 Y Dir  (1)
IOPortTag & x"02" & StepGenTag & StepGenStepPin, -- I/O 09 PIN 6 Z Step (2)
IOPortTag & x"02" & StepGenTag & StepGenDirPin, -- I/O 10 PIN 7 Z Dir  (2)
IOPortTag & x"03" & StepGenTag & StepGenStepPin, -- I/O 11 PIN 8 A Step (3)
IOPortTag & x"03" & StepGenTag & StepGenDirPin, -- I/O 12 PIN 9 A Dir  (3)
IOPortTag & x"00" & QCountTag & QCountQAPin,   -- I/O 13 PIN 10 Input 1
(Quad A0)
IOPortTag & x"00" & QCountTag & QCountQBPin,   -- I/O 14 PIN 11 Input 2
(Quad B0)
IOPortTag & x"00" & QCountTag & QCountIdxPin,     -- I/O 15 PIN 12 Input 3
(Quad Idx0)
IOPortTag & x"00" & NullTag & NullPin,   -- I/O 16 PIN 13 Input 4 just GPIO

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to