Open
Description
I think we should document experience on a per-firmware basis, so starting here. Documenting the current status of exploring this fw version.
configuration:
- one Charles' adapter board 'DE0-Nano-DB25 V1.0' on gpio0
- one 7i76 connected to P2 of same
- mk: my firmware-proto-dev branch mhaberler/machinekit@49acfec
- hal config
- linuxcnc.log
- following http://www.mesanet.com/pdf/parallel/7i76man.pdf
- 12V 'field power', 5V supply via DB25 connector (4.75V at TB2-1 TB2-6)
- the config uses hm2 IRQ but this should not matter
- W4, W5, W6 jumpered towards DB25 (single-ended operation)
configuration:
- 5 stepgens
- 1 encoders
what I am not sure about: the hm2 config line, in particular the sserial_port=
syntax, is this correct?
loadrt hm2_soc_ol config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dtbo num_stepgens=5 num_encoders=2 sserial_port_0=00xxxxxx" timer1=211812352
what works:
- the stepgens create step+/- and dir+/- signals and their on TB2 and TB3(2-5) outputs as documented
- encoders: fed by 500Hz A/B signal from Rigol 1022U, 5V, 90deg shift, to pins TB3 - ENCA+ ENCB+
- gives velocity 2000; shifting the phase from -90 to +90 deg gives velocity -2000 - looks reasonable
- increase frequency to 100kHz - works fine (velocity 40000/-40000)
- increase frequency to 650kHz - works fine
- stops working around 700kHz.
Yee-haw!
what does not work yet:
- gpios - could be my problem understanding the 7i76 manual vs HAL pin naming
manual says:
TB6 CONNECTOR PINOUT
TB6 PIN I/O TB6 PIN I/O
1 INPUT0
I assume TB6-1 corresponds to hm2_de0n.0.gpio.000.in ? help me across the street ;)
hm2_de0n.0.gpio.000.in shows noise.
- leds on DPIO adapter board (this fwid has num_leds = 2 so I'll fix it to have 4, but I guess the ones on GPIO0 would be CR01/CR02 regardless) - should blink as connected to clock signal, no reaction
- this image seems lack any pwmgen functions? (log:
Jul 18 11:51:35 mksocfpga msgd:0: hal_lib:1649:rt hm2/hm2_de0n.0: PWMGen: 0
)
Metadata
Assignees
Labels
No labels
Activity