Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- hello.. Can you please help us on the verilog code to obtain the two axis of the accelerometer.. i.e. X and Y axis?we dont have any idea how to change the demo code from having two axis readings.,Help please.,Thankyou --- Quote End --- Well I'm sorry, but I'm not so familiar with Verilog, only VHDL. If you want to work with that, I can maybe help. What do you mean you don't have any idea how to proceed? Can you change the demo code to read Y instead of X axis? Or Z axis? You have to be able to at least do that, or else you are in way over your head and you need to step back and either bone up on Verilog or figure out how to read a datasheet. You ought to be able to describe, in words, what registers you need to set and which ones to read in order to poll multiple axis. Yes? If you can post your pseudo-code then we can maybe work on translating that to Verilog or VHDL.