Is the libaray support the parralel #26
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Clear, so the question is how to get data from an AD7606 analogue converter into the Orin AGX via parallel port (kind of), the answer is: it is doable but I don't recommend it, with or without my library, I would recommend to use the SPI interface. So the situation would be something like this below, where the "digital host" is the Orin AGX: The Orin machines (all models) do not have some kind of "parallel" interface per se, you would need to bit bang/create that interface yourself, you would need 16 pins for data + 2 for control (busy & CS/RD). In order to bit bang that, you have to sample each pin individually and compose a word with the sample from the AD7606, it would be something like: Read interrupt pin (busy pin)--> if Interrupt is low/0 --> read pins AD 16 to 33 This can be done with my library (if my library supported the AGX)? yes, but the pins would be read sequentially, (data pin16 to pin33), would they be read fast enough? Maybe, If the AD7606 keeps the latest sample value for a few us, then yes, reading the AD7606 manual it seems it does but I never played with this AD so not sure, I can't confirm it would be OK. Summary:
Finally, probably you are already aware but there are alternatives to my library, see this one for python: https://github.com/NVIDIA/jetson-gpio or this one for c++: https://github.com/pjueon/JetsonGPIO both support the AGX Orin but none of them is going to give you an easy/ready to go way of getting data from the AD7606. The main difference between those and mine is that mine is faster :) |
Beta Was this translation helpful? Give feedback.
Clear, so the question is how to get data from an AD7606 analogue converter into the Orin AGX via parallel port (kind of), the answer is: it is doable but I don't recommend it, with or without my library, I would recommend to use the SPI interface. So the situation would be something like this below, where the "digital host" is the Orin AGX:
The Orin machines (all models) do not have some kind of "parallel" interface per se, you would need to bit bang/create that interface yourself, you would need 16 pins for data + 2 for control (busy & CS/RD). In order to bit bang that, you have to sample each pin individually and compose a word with the sample from the AD7606, it would be something like: