Outlines Introduction System Design Hardware System Firmware System

  • Slides: 26
Download presentation

Outlines Introduction System Design Hardware System Firmware System EPICS Driver CSS Operate Interface Summary

Outlines Introduction System Design Hardware System Firmware System EPICS Driver CSS Operate Interface Summary YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 2

Hardware Design YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 8

Hardware Design YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 8

Firmware Design YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 10

Firmware Design YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 10

The Firmware Design ADS_PSC数据传输协议 Protocol Set setpoint Read status & readbacks ADS-PSC Frame ID=0

The Firmware Design ADS_PSC数据传输协议 Protocol Set setpoint Read status & readbacks ADS-PSC Frame ID=0 x 15 Data=Setpoint Aux. = Aux. Bits ID=0 x Data=Command Aux. =Not used ID=0 x 40 Data=Not used Aux. =Not used ID=0 x 55 Data=Setpoint Aux. = Aux Bits ID=0 x Data=Command Aux. = Not used ID=0 x 00 Data=Not used Aux. =Not used Delay Read Configuration ID=0 x 01 Data=Not used Aux. =Not used 0 us Reserved ID=0 x 02 Data= Not Used Aux. = Not used Send command. Read status & readbacks Set setpoint only Send command only Read setpoint & command 1. 5 us 3 us 0 us Frame 1 Same as Received Frame Same as Received Frame 2 ID=0 x 93 Data=Status Aux. = 0 x 0 ID=0 x 95 Data=Command Aux. = 0 x 0 ID=0 x 96 Data={version, b 0} Aux. = 0 x 0 Frame Response from DPSCM Frame 3 Frame 4 ID=0 x 80 ID=0 x 90 Data=ADC 1 Data=ADC 2 Aux. = 0 x 0 ID=0 x 80 ID=0 x 90 Data=ADC 1 Data=ADC 2 Aux. = 0 x 0 Frame 5 ID=0 x. A 0 Data=ADC 3 Aux. = 0 x 0 Frame 6 ID=0 x. B 0 Data=ADC 4 Aux. = 0 x 0 ID=0 x Data=Setpoint Aux. = 0 x 0 ID=0 x 8 B Data={b 0, fiber_good, SW 1 status]} Aux. = 0 x 0 7*43 bits/5 Mbps = 7* 8. 6 us = 60. 2 us YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 12

The Software Design based on EPICS The EPICS frame ON/OFF CA gateway CA Read/Write

The Software Design based on EPICS The EPICS frame ON/OFF CA gateway CA Read/Write Current CA gateway CA Read/Write PV Warning/ Error CA gateway Power Status Channel Access YY. Du(IHEP) CA Read Only Ethernet PC 2014核电子学与核探测技术学术年会·兰州 CSS Interface 15

What is EPICS driver? Software interface between EPICS records and hardware Main Parts: n

What is EPICS driver? Software interface between EPICS records and hardware Main Parts: n n Device support q dev. FPGA. c // Interfaces to records q fpga. dbd // The Database Definition File Does not care about hardware Driver q drvfpga. c // EPICS driver for FPGA q drvfpga. h // head file of drvfpga. c Does not care about records YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 16

Record - Device Support – Driver - Hardware Does not know about drivers Record

Record - Device Support – Driver - Hardware Does not know about drivers Record specific Device support function tables dev. FPGA. c Device Support The "glue" Driver specific Does not know about records Driver API functions drv. FPGA. h Driver drv. FPGA. c Hardware specific Register access Hardware YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 17

The Driver Design based on EPICS Driver YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 18

The Driver Design based on EPICS Driver YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 18

CSS Operate Interface YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 19

CSS Operate Interface YY. Du(IHEP) 2014核电子学与核探测技术学术年会·兰州 19