mesa datapainter

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
25 Jul 2018 04:00 #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 or Create an account to join the conversation.

More
27 Jul 2018 17:29 - 27 Jul 2018 17:30 #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.
Attachments:
Last edit: 27 Jul 2018 17:30 by andypugh.

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

More
27 Jul 2018 18:26 - 27 Jul 2018 23:43 #114975 by PCW
Replied by PCW on topic mesa datapainter
You would need the regmap file from a recent hostmot2 firmware source zipfile:

File Attachment:

File Name: regmap_201...27-2.txt
File Size:72 KB


Edit: added real time PWM scaling ( RT_scale * FIFO_PWMVAL ) for velocity dependent
modulation of pattern intensity and idle (data gate off) PWM value
Attachments:
Last edit: 27 Jul 2018 23:43 by PCW.

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

More
30 Jul 2018 12:01 #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 or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
30 Jul 2018 19:51 #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 or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.059 seconds
Powered by Kunena Forum