Create a FPGA board for raspberry

More
4 years 8 months ago #234740 by Boaschti
Is there any manual where the ssr funktionality is explained? 
The output in the HAL Configuration says that hm2_7c80.0.ssr.00.out-01 is off (yellow) All other outputs are red.
The hardware switches all outputs to high.

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

More
4 years 8 months ago #234751 by D.L.

Yes, I tried it also in the hm2_rpspi config string.
The message is here " invalid token in config string: "num_ssrs=0" "
 
It bug in hostmot2 driver(hostmot2.c: hm2_parse_config_string()), no code for reading "num_ssrs=" value.
Affected 2.8 and 2.9, in 2.7 hostmot2 driver not support ssr.
Fix code:
Code:
        } else if (strncmp(token, "num_ssrs=", 9) == 0) {             token += 9;             hm2->config.num_ssrs = simple_strtol(token, NULL, 0);

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

More
4 years 8 months ago #234777 by PCW
Yes that was missed because there is no actual hardware where
disabling SSRs makes sense . For the OPs use, 7C80 firmware with no SSRs
makes more sense

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

More
4 years 8 months ago - 4 years 8 months ago #235057 by Boaschti
Oh.
What I have to do if i have to compile linuxcnc with fixed driver?
Follow this  steps?

Can anybody make a bit File with following Pinout (IOPort<=>Pin from 7c80spi.ucf)?
Code:
IO Connections for StepGens+Misc Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir  0      0   IOPort       StepGen          0        Step/Table1     (Out)  0      1   IOPort       StepGen          0        Dir/Table2      (Out)  0      2   IOPort       StepGen          1        Step/Table1     (Out)  0      3   IOPort       StepGen          1        Dir/Table2      (Out)  0      4   IOPort       StepGen          2        Step/Table1     (Out)  0      5   IOPort       StepGen          2        Dir/Table2      (Out)  0      6   IOPort       StepGen          3        Step/Table1     (Out)  0      7   IOPort       StepGen          3        Dir/Table2      (Out)  0      8   IOPort       StepGen          4        Step/Table1     (Out)  0      9   IOPort       StepGen          4        Dir/Table2      (Out)  0     10   IOPort       StepGen          5        Step/Table1     (Out)  0     11   IOPort       StepGen          5        Dir/Table2      (Out)  0     12   IOPort       SSerial          0        RXData0         (In)  0     13   IOPort       SSerial          0        TXData0         (Out)  0     14   IOPort       SSerial          0        TXEn0           (Out)  0     15   IOPort       QCount           0        Quad-A          (In)  0     16   IOPort       QCount           0        Quad-B          (In)  0     17   IOPort       QCount           0        Quad-IDX        (In)  0     18   IOPort       PWM              0        PWM             (Out)  0     19   IOPort       PWM              0        /Enable         (Out)  0     20   IOPort       None             0     21   IOPort       None             0     22   IOPort       InMux            0        Addr0           (Out)  0     23   IOPort       InMux            0        Addr1           (Out)  0     24   IOPort       InMux            0        Addr2           (Out)  0     25   IOPort       InMux            0        Addr3           (Out)  0     26   IOPort       InMux            0        Addr4           (Out) IO Connections for Outputs+P1 Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir  0     27   IOPort       InMux            0        Data0           (In)  0     28   IOPort       OUT              0        Out-00          (Out)  0     29   IOPort       OUT              0        Out-01          (Out)  0     30   IOPort       OUT              0        Out-02          (Out)  0     31   IOPort       OUT              0        Out-03          (Out)  0     32   IOPort       OUT              0        Out-04          (Out)  0     33   IOPort       OUT              0        Out-05          (Out)  0     34   IOPort       OUT              0        Out-06          (Out)  0     35   IOPort       OUT              0        Out-07          (Out)  0     36   IOPort       None  0     37   IOPort       PWM              1        PWM             (Out)             0     38   IOPort       QCount           1        Quad-A          (In)             0     39   IOPort       QCount           1        Quad-B          (In)             0     40   IOPort       QCount           1        Quad-IDX        (In)             0     41   IOPort       None  0     42   IOPort       None  0     43   IOPort       SSerial          0        RXData2         (In)  0     44   IOPort       SSerial          0        TXData2         (Out)  0     45   IOPort       SSerial          0        RXData1         (In)  0     46   IOPort       SSerial          0        TXData1         (Out)  0     47   IOPort       None  0     48   IOPort       QCount           2        Quad-A          (In)  0     49   IOPort       QCount           2        Quad-B          (In)  0     50   IOPort       QCount           2        Quad-IDX        (In)  0     51   IOPort       QCount           3        Quad-A          (In)  0     52   IOPort       QCount           3        Quad-B          (In)  0     53   IOPort       QCount           3        Quad-IDX        (In) Does anybody knows what th ssr funktionality is for? Out0..7 in phase with AC Ref == on and Out0..7 out of phase with AC Ref == off. The only logical for following hardware is a XOR chip. We never have seen sth like this and i cannot find sth about it.  
Last edit: 4 years 8 months ago by Boaschti.

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

More
4 years 8 months ago #235060 by PCW
It makes zero sense to change the driver, you need to make a
bitfile that matches your hardware.

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

More
4 years 8 months ago - 4 years 8 months ago #235064 by D.L.

Can anybody make a bit File with following Pinout (IOPort<=>Pin from 7c80spi.ucf)?
 
Bitfile for 7c80 without ssr module:

File Attachment:

File Name: 7c80d.zip
File Size:104.2 KB

Bitfile for 7c80 without ssr module and with PWM0 /Enable output:

File Attachment:

File Name: 7c80v2.zip
File Size:105.18 KB

Pinfile from 7c80v2.zip was tested on Hostmot2 ethernet hardware:

 
Last edit: 4 years 8 months ago by D.L..

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

Moderators: PCW, jmelson
Time to create page: 0.067 seconds
Powered by Kunena Forum