From 0ad6b48185c7dcad30b74ab49a407df38ca3603e Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Tue, 28 Nov 2023 16:51:44 +0800 Subject: [PATCH] Add LVDS instructions Signed-off-by: Egor Savkin --- src/SUMMARY.md | 1 + src/hw/lvds_dio.md | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 src/hw/lvds_dio.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index ffb1c16..59fa9e2 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -17,6 +17,7 @@ - [Sinara 8452 DSP Stabilizer](./hw/stabilizer.md) - [Sinara 9805 RF Power Amplifier Booster](./hw/booster.md) - [Sinara 8451 Thermostat](./hw/thermostat.md) + - [Sinara 2245 LVDS DIO](./hw/lvds_dio.md) - [Software/Support](./sw_sup/software_support.md) - [Building legacy firmware](./sw_sup/artiq_legacy.md) - [Networking](./sw_sup/networking.md) diff --git a/src/hw/lvds_dio.md b/src/hw/lvds_dio.md new file mode 100644 index 0000000..0546f4b --- /dev/null +++ b/src/hw/lvds_dio.md @@ -0,0 +1,38 @@ +# Sinara 2245 LVDS DIO card + +* [Wiki](https://github.com/sinara-hw/DIO_LVDS_RJ45/wiki) +* [Datasheet](https://m-labs.hk/docs/sinara-datasheets/2245.pdf) + +## JSON + +Be aware of the reversed EEM order on the card: + +```json +[ + { + "type": "dio", + "board": "DIO_LVDS", + "ports": [1], + "bank_direction_low": "input", + "bank_direction_high": "input", + "edge_counter": false // or true + }, + { + "type": "dio", + "board": "DIO_LVDS", + "ports": [0], + "bank_direction_low": "output", + "bank_direction_high": "output" + } +] +``` + +## Setup + +Switch DIPs in required position per each channel individually. Each RJ45 have 4 channels. + +## Testing + +You can test channels by connecting Ethernet RJ45 cable. Since the artiq_sinara_tester allows to choose only one DIO +port, you will need to run the test 4 times and choose different output source and track that every 4th is passing the test. +It is also incompatible with other TTL cards, so you will need to use same or other LVDS card for proper testing. \ No newline at end of file