mesa datapainter

More
8 years 3 months ago #114791 by vre
mesa datapainter was created by vre
I have installed xilinx ise 14.7 and i know how to build mesa firmware
but i don't know how to build a firmware that has datapainter module for rf laser.
rf laser needs tickle signal (5khz 1us pulse width for synrad 48-2 series tubes for preionization of the laser.Without this signal laser tube will damaged according to manual) and modulation for example is done by 5khz pwm 0%-99% duty cycle.

I want datapainter module for raster engaving at constant speed.
Can someone help me how to do this setup (build firmware & linuxcnc configuration)

I have 7i80hd and i want 3 pwm generators, 3 encoder readers, 1 step-dir, datapainter and the rest GPIO

Please Log in to join the conversation.

More
8 years 3 months ago #114968 by andypugh
Replied by andypugh on topic mesa datapainter
It's probably easier to see if PCW has a firmware.
Then you need to work on driver support.
Luckily there are lots of example drivers.

Look at led.c as the simplest one
github.com/LinuxCNC/linuxcnc/blob/master.../mesa-hostmot2/led.c

You need entries in hostmot2.c
github.com/LinuxCNC/linuxcnc/blob/master...mot2/hostmot2.c#L273
including a new GTAG type

Then the Mesa firmware "regmap" file contains the rest of the information required, ie what the register-level interface of the FPGA looks like.
However I can't see the data painter module in the regmap.

Please Log in to join the conversation.

More
8 years 3 months ago #114975 by PCW
Replied by PCW on topic mesa datapainter
You would need the regmap file from a recent hostmot2 firmware source zipfile:

Attachment not found



Edit: added real time PWM scaling ( RT_scale * FIFO_PWMVAL ) for velocity dependent
modulation of pattern intensity and idle (data gate off) PWM value

Please Log in to join the conversation.

More
8 years 3 months ago #115118 by andypugh
Replied by andypugh on topic mesa datapainter
Thanks PCW
vre: Is the way forward fairly clear? If not, just ask. I have written a few drivers now.
(My very first bit of work on LinuxCNC, and the first time I had used C, was adding the led driver to Hostmot2. As a precursor to adding the 3-phase PWM)
Seb made a good job of covering for future expansion when he wrote the hostmot2 driver.

Please Log in to join the conversation.

More
8 years 3 months ago #115167 by vre
Replied by vre on topic mesa datapainter
I have good java knowledge but very little at c.
I must read pointers/memory allocation/release/data structures in c before any modification.
Code seems to be near asm i had forgotten that exists goto in c.

Please Log in to join the conversation.

Time to create page: 0.187 seconds
Powered by Kunena Forum