Pimping the mini-lathe

More
6 years 3 months ago #175546 by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
Another 7i96 config question, in addition to the one in the last post...

Do I have to use only the new MESA naming convention in HAL generated by the new PNCConf.
Code:
[HMOT](card0)...

or are these just place holders, and I have to modify each instance to the syntax used by HALshow?

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago - 6 years 3 months ago #175547 by PCW
Replied by PCW on topic Pimping the mini-lathe
That is just a way to have the card name in one place (in the ini file):

[HMOT]
# **** This is for info only ****
CARD0=hm2_7i96.0


in the hal file
hm2_7i96.0.xxxxxxxx
is the same as
[HMOT](card0).xxxxxxxx

if the ini file [HMOT] entry is CARD0=hm2_7i96.0
Last edit: 6 years 3 months ago by PCW.
The following user(s) said Thank You: RotarySMP

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago - 6 years 3 months ago #175551 by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
Thanks for the prompt replies. Now I can continue wiring up the VFD and configure it.

in the hal file
hm2_7i96.0.xxxxxxxx
is the same as
[HMOT](card0).xxxxxxxx


Replacing 10 characters with 13 characters doen't seem like a benefit, what is the advantage of this?
Mark
Last edit: 6 years 3 months ago by RotarySMP.

Please Log in or Create an account to join the conversation.

  • tommylight
  • Away
  • Moderator
  • Moderator
More
6 years 3 months ago #175552 by tommylight
Replied by tommylight on topic Pimping the mini-lathe

RotarySMP wrote: Replacing 10 characters with 13 characters doen't seem like a benefit, what is the advantage of this?

Make a config for say 5i25 and later want to use that same config for 7i92, now requires only changing the card name in the ini file and adding the IP address in the hal file.
Without this option it would require a lot of "search and replace" for everything referring to 5i25 in hal.
The following user(s) said Thank You: RotarySMP

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #175553 by PCW
Replied by PCW on topic Pimping the mini-lathe
It also can allow you to use the same hal file for different cards
The following user(s) said Thank You: RotarySMP

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago - 6 years 3 months ago #175878 by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
I havent made enough progress to merit editing a video this week. Sorry about that.

I installed mesaflash and read out the card. WIth only two step gens, one encoder and one pwmgen, it looks like this...
Code:
minilathe@minilathe:~$ sudo apt install git [sudo] password for minilathe: minilathe@minilathe:~/mesaflash$ mesaflash --device 7i96 --addr 10.10.10.10 --readhmid Configuration Name: HOSTMOT2 General configuration information: BoardName : MESA7I96 FPGA Size: 9 KGates FPGA Pins: 144 Number of IO Ports: 3 Width of one I/O port: 17 Clock Low frequency: 100.0000 MHz Clock High frequency: 200.0000 MHz IDROM Type: 3 Instance Stride 0: 4 Instance Stride 1: 64 Register Stride 0: 256 Register Stride 1: 256 Modules in configuration: Module: DPLL There are 1 of DPLL in configuration Version: 0 Registers: 7 BaseAddress: 7000 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: WatchDog There are 1 of WatchDog in configuration Version: 0 Registers: 3 BaseAddress: 0C00 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: IOPort There are 3 of IOPort in configuration Version: 0 Registers: 5 BaseAddress: 1000 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: PWM There are 1 of PWM in configuration Version: 0 Registers: 5 BaseAddress: 4100 ClockFrequency: 200.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: StepGen There are 4 of StepGen in configuration Version: 2 Registers: 10 BaseAddress: 2000 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: QCount There are 1 of QCount in configuration Version: 2 Registers: 5 BaseAddress: 3000 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: SSerial There are 1 of SSerial in configuration Version: 0 Registers: 6 BaseAddress: 5B00 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 64 bytes Module: Transformer There are 1 of Transformer in configuration Version: 0 Registers: 2 BaseAddress: 7D00 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Module: LED There are 1 of LED in configuration Version: 0 Registers: 1 BaseAddress: 0200 ClockFrequency: 100.000 MHz Register Stride: 256 bytes Instance Stride: 4 bytes Configuration pin-out: IO Connections for P1 Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir 1 0 IOPort None 14 1 IOPort None 2 2 IOPort None 15 3 IOPort None 3 4 IOPort None 16 5 IOPort None 4 6 IOPort None 17 7 IOPort None 5 8 IOPort None 6 9 IOPort None 7 10 IOPort None 8 11 IOPort Transformer 0 Drive (Out) 9 12 IOPort Transformer 0 Ref (Out) 10 13 IOPort Transformer 0 Null3 (Out) 11 14 IOPort Transformer 0 Null4 (Out) 12 15 IOPort Transformer 0 Null5 (Out) 13 16 IOPort Transformer 0 Null6 (Out) IO Connections for TB1 Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir 1 17 IOPort StepGen 0 Step/Table1 (Out) 14 18 IOPort StepGen 0 Dir/Table2 (Out) 2 19 IOPort StepGen 1 Step/Table1 (Out) 15 20 IOPort StepGen 1 Dir/Table2 (Out) 3 21 IOPort StepGen 2 Step/Table1 (Out) 16 22 IOPort StepGen 2 Dir/Table2 (Out) 4 23 IOPort StepGen 3 Step/Table1 (Out) 17 24 IOPort StepGen 3 Dir/Table2 (Out) 5 25 IOPort PWM 0 PWM (Out) 6 26 IOPort PWM 0 Dir (Out) 7 27 IOPort QCount 0 Quad-A (In) 8 28 IOPort QCount 0 Quad-B (In) 9 29 IOPort QCount 0 Quad-IDX (In) 10 30 IOPort SSerial 0 RXData1 (In) 11 31 IOPort SSerial 0 TXData1 (Out) 12 32 IOPort SSerial 0 TXEn1 (Out) Segmentation fault (core dumped) minilathe@minilathe:~/mesaflash$

So I need to connect the PWM to analog card to TB1 pins 5 and 6. Does it matter which is GND and which is signal?
Last edit: 6 years 3 months ago by RotarySMP.

Please Log in or Create an account to join the conversation.

Moderators: piasdom
Time to create page: 0.305 seconds
Powered by Kunena Forum