From: Jan Michel Date: Fri, 18 Nov 2022 08:16:19 +0000 (+0100) Subject: few updates to xml pages regarding I2C X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1cb2c07f463581d5a75013213879a068dc4928c1;p=daqtools.git few updates to xml pages regarding I2C --- diff --git a/web/htdocs/addons/mimosis.pl b/web/htdocs/addons/mimosis.pl index a8dfe14..0b71c74 100755 --- a/web/htdocs/addons/mimosis.pl +++ b/web/htdocs/addons/mimosis.pl @@ -46,6 +46,13 @@ push(@setup,({name => "I2C", period => 1000, rates => 1, address => 1})); + + +push(@setup,({name => "ADC", + cmd => "I2C-0xa000-I2C", + period => 1000, + rates => 1, + address => 1})); xmlpage::initPage(\@setup,$page); diff --git a/xml-db/database/ADC_Controller.xml b/xml-db/database/ADC_Controller.xml index 839a6cb..5bf1a8b 100644 --- a/xml-db/database/ADC_Controller.xml +++ b/xml-db/database/ADC_Controller.xml @@ -5,7 +5,7 @@ address="d480" > Registers for the onboard ADC for Trb3sc++ - + diff --git a/xml-db/database/I2C.xml b/xml-db/database/I2C.xml new file mode 100644 index 0000000..abdec1c --- /dev/null +++ b/xml-db/database/I2C.xml @@ -0,0 +1,78 @@ + + + Registers for I2C + + + + + First I2C register + + Multiples of 8 System clock cycles for 1/2 I2C clock + + + + + Second I2C register + + Select to send one byte (0) or one word (1) + + + Skip command, send only address plus data + + + Select to write (0) or read (1) + + + + + Third I2C register / Command and data + + Trigger I2C action + + + I2C address byte, r/w bit is ignored + + + Command byte, sent after address + + + Data word, sent after command + + + + + + + + + + Fourth I2C register / Status and read-back + + Data word read back + + + Status flags of I2C master + + + Status of I2C state machine + + + Operation finished + + + I2C master busy + + + Data valid + + + + + + + + diff --git a/xml-db/database/Mimosis.xml b/xml-db/database/Mimosis.xml index eee4ff2..71dfc18 100644 --- a/xml-db/database/Mimosis.xml +++ b/xml-db/database/Mimosis.xml @@ -90,7 +90,7 @@ - 16bit words in last frame + 32bit words in last frame @@ -146,6 +146,9 @@ Select to send one byte (0) or one word (1) + + Skip command, send only address plus data + Select to write (0) or read (1) @@ -153,8 +156,8 @@ Third I2C register / Command and data - - I2C address byte, r/w bit is ignored + + I2C address byte Command byte, sent after address