2019-08-14 06:28 AM
Hi everyone.
I have a position encoder connected to a motor drive. The encoder transmit every 0.1ms a 73-bit data package using a protocol called EnDat 2.2 to the drive. The clock frequency is set to 5MHz, meaning one bit is 0.2 microsecond.
Now I want to "sniff" this signal using STM32 without disrupting the connection between the encoder and the drive, meaning I won't send any signal to the encoder nor the drive, I just want to "eavesdrop". For example 150 bits every 1 sec.
Do you know how to do it or what kind of protocol I have to use? Would SPI work?
Thank you in advance
2019-08-14 06:53 AM
Just google stm32 logic analyzer, here are some links (not checked)
https://sysprogs.com/w/how-we-turned-8-popular-stm32-boards-into-powerful-logic-analyzers/
http://slemi.info/2018/03/26/stm32-logic-analyzer/
https://www.hackster.io/vincenzo-g/diy-logic-analyzer-f61ee5
If this is not some kind of assignment I would just buy a ready-to-go cheap logic-analyzer or the "Bus Pirate" device.
2019-08-14 07:00 AM
Thank you so much for your help. I'll have a look into the tutorials.