Guest
#4202344
Hi, I have been trying to combine 2 of the available options of my encoder into a cpld with vhdl, I wrote my own bit bang function to obtain the absolute position via spi, from here once run I would like to pass the 12bit angle position into "count", where the quadrature would pick up and start adjusting angle position according to A&B pulses and an index "count" reset. both of the codes when separate work perfect, but I cannot figure out how to join these two codes together, either fails from multiple signal assignment or spi section is not compiled correctly and "data" is trimed out. I bet its something simple, but im only a few months in as a hobby, with minimal background in avr/arduino. Current hardware is a Xilinx Xc9572xL cpld and a 64macrocell Coolrunner II, would preffer to have it operating on the 9572. Thank you for your help.