]> sigrok.org Git - sigrok-test.git/commitdiff
ds1307: Add an additional test-case.
authorUwe Hermann <redacted>
Tue, 12 Feb 2019 17:11:23 +0000 (18:11 +0100)
committerUwe Hermann <redacted>
Tue, 12 Feb 2019 17:11:23 +0000 (18:11 +0100)
decoder/test/ds1307/rtc_ds1307_500khz_sqw32khz_mode12h_pm.output [new file with mode: 0644]
decoder/test/ds1307/test.conf

diff --git a/decoder/test/ds1307/rtc_ds1307_500khz_sqw32khz_mode12h_pm.output b/decoder/test/ds1307/rtc_ds1307_500khz_sqw32khz_mode12h_pm.output
new file mode 100644 (file)
index 0000000..4570aae
--- /dev/null
@@ -0,0 +1,38 @@
+167-207 ds1307: reg-seconds: "Seconds" "Sec" "S"
+167-172 ds1307: bit-clock-halt: "Clock halt: 0" "Clk hlt: 0" "CH: 0" "CH"
+172-207 ds1307: bit-seconds: "Second: 41" "Sec: 41" "S: 41" "S"
+215-255 ds1307: reg-minutes: "Minutes" "Min" "M"
+215-220 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+220-255 ds1307: bit-minutes: "Minute: 39" "Min: 39" "M: 39" "M"
+263-303 ds1307: reg-hours: "Hours" "H"
+263-268 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+268-273 ds1307: bit-12-24-hours: "12-hour mode" "12h mode" "12h"
+273-278 ds1307: bit-am-pm: "PM" "P"
+278-303 ds1307: bit-hours: "Hour: 8" "H: 8" "H"
+310-350 ds1307: reg-day: "Day of week" "Day" "D"
+310-315 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+315-320 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+320-325 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+325-330 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+330-335 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+335-350 ds1307: bit-day: "Weekday: Friday" "WD: Friday" "WD" "W"
+358-398 ds1307: reg-date: "Date" "D"
+358-363 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+363-368 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+368-398 ds1307: bit-date: "Date: 2" "D: 2" "D"
+406-446 ds1307: reg-month: "Month" "Mon" "M"
+406-411 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+411-416 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+416-421 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+421-446 ds1307: bit-month: "Month: 2" "Mon: 2" "M: 2" "M"
+454-494 ds1307: reg-year: "Year" "Y"
+454-494 ds1307: bit-year: "Year: 19" "Y: 19" "Y"
+501-541 ds1307: reg-control: "Control" "Ctrl" "C"
+506-511 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+511-516 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+521-526 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+526-531 ds1307: bit-reserved: "Reserved bit" "Reserved" "Rsvd" "R"
+501-506 ds1307: bit-out: "Output control: 0" "OUT: 0" "O: 0" "O"
+516-521 ds1307: bit-sqwe: "Square wave output: disabled" "SQWE: disabled" "SQWE: 0" "S: 0" "S"
+531-541 ds1307: bit-rs: "Square wave output rate: 32768Hz" "Square wave rate: 32768Hz" "SQW rate: 32768Hz" "Rate: 32768Hz" "RS: 0" "RS" "R"
+10-552 ds1307: read-datetime: "Read date/time: Friday, 02.02.2019 08:39:41"
index 052ed5d9c63a0ee64c8a778ee2ffaee0ff8bb24c..303746799258350e6898f31c69bfb4b90b5efef3 100644 (file)
@@ -4,3 +4,10 @@ test rtc_ds1307_200khz
        stack i2c ds1307
        input i2c/rtc_dallas_ds1307/rtc_ds1307_200khz.sr
        output ds1307 annotation match rtc_ds1307_200khz.output
+
+test rtc_ds1307_500khz_sqw32khz_mode12h_pm
+       protocol-decoder i2c channel scl=0 channel sda=1 initial_pin scl=1 initial_pin sda=1
+       protocol-decoder ds1307
+       stack i2c ds1307
+       input i2c/rtc_dallas_ds1307/rtc_ds1307_500khz_sqw32khz_mode12h_pm.sr
+       output ds1307 annotation match rtc_ds1307_500khz_sqw32khz_mode12h_pm.output