From: Maps Date: Fri, 13 Dec 2013 12:26:05 +0000 (+0100) Subject: next version of cbcontroller files X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=8c34ea0c074d9d1e897b0a4637b1baab79982132;p=daqtools.git next version of cbcontroller files --- diff --git a/web/htdocs/mvd/cb_controller.pl b/web/htdocs/mvd/cb_controller.pl new file mode 100755 index 0000000..51baf4d --- /dev/null +++ b/web/htdocs/mvd/cb_controller.pl @@ -0,0 +1,39 @@ +&htsponse(200, "OK"); +print "Content-type: text/html\r\n\r\n"; + + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "Converter Board Controller Register"; +$page->{link} = "../"; + +my @setup; +$setup[0]->{name} = "Status"; +$setup[0]->{cmd} = "CbController-0xf252-CbStatus"; +$setup[0]->{period} = 1000; + +$setup[1]->{name} = "SpiRam"; +$setup[1]->{cmd} = "CbController-0xf252-CbSpiRam"; +$setup[1]->{period} = 1000; + +$setup[2]->{name} = "UcRegs"; +$setup[2]->{cmd} = "CbController-0xf252-CbUcRegs"; +$setup[2]->{period} = 1000; + +xmlpage::initPage(\@setup,$page); + + + + +1; + + + diff --git a/xml-db/database/CbController.xml b/xml-db/database/CbController.xml new file mode 100644 index 0000000..3c72d37 --- /dev/null +++ b/xml-db/database/CbController.xml @@ -0,0 +1,153 @@ + + + The registers of the Converter Board Controller entity. + + + + + + + + + + + Register containing the bit pattern that can be measured at the corresponding pins. + + + + + Register containing the bit pattern that can be measured at the corresponding pins. + + + + + a bitmask that defines the data direction (input or output) of the GPIO pins + + + + + Select UART baudrate: 0->300, 1->600, 2->1200, 3->2400, 4->4800, 5->9600, 6->19200, 7->38400, 8->57600, 9->115200 + + + + + + Write a byte here to send it via UART, returns fill status of input FIFO + + + + + Shows rx_buffer_empty_bit(MSB) and the last received UART byte. + + + + + Override the default UART functionality for debug reasons. If set to 1, UartDataIn and UartDataOut operate the UART directly. + + + + + Debug register for the UART + + + + + + the last received SPI word + + + + + Set what the FPGA returns to the microcontroller over SPI line. + + + + + counts how many spi data words have been received + + + + + Brings the uC to reset, when set Lo. + + + + + + + + Data word with timestamp in the SPI ram, received from the CB Microcontroller. + + + + + + + + + + + Address of the register that has to be sent to the FPGA. + + + + + Set all Converter Board switches. + + Enable analog power for chip 0. + + + Enable digital power for chip 0. + + + + + + + + + +