Re: [myhdl-list] *** GMX Spamverdacht *** Re: Hello World
Brought to you by:
jandecaluwe
From: Günther S. <gue...@gm...> - 2015-04-26 05:06:56
|
Thank you for your quick response. Yes it is the latest board with cyclone-IV No, i am communicating over SPI. This is just the port name wich has I2C in the name. I am sorry it is not in a github. I think it is just to small. The point is, i am not shure if i am using the tristate signal wich i call "io" in a correct way. When i look at the simulation, then i have according to the altera documentation: https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/ug/de0_nano_user_manual_v1.9.pdf the adress 0x31 set with the value 0x40 after that i am trying to read the DEVID from the adress 0x00 which is 0x80 because i am setting the read-bit in the SPI-3 wire mode. after that at the position for reading the DEVID is according to the simulation in a NONE Value of the tristate port. So it is looking ok for me, but there is some error. Mybe i am not using the tristate signal in a correct way. If you could tell me if the tristate signal looks ok in myhdl - way than it would help me a lot, than i would guess, that i still miss something in the SPI communication. Than you very much. ;-)guenther Am 25.04.2015 um 23:26 schrieb Christopher Felton: > On 4/25/15 1:12 PM, Günther Stangassinger wrote: >> Hello, >> i am quite new to Myhdl and playing around with the de0-nano Board. >> I was trying to access the ADXL345 over the SPI 3 wire bus. (just >> trying to read the DEVID) >> The small code example is working in simulation mode as far as i can judge. >> But on the real board i get 0x0 for the DEVID which should be 0xE5 > Is this the latest DE0 with the cyclone-IV? > > If you are intending to communicate over I2C are > you keeping the CSn signal high to the ADXL345? > (I have dug through the code yet). If you are > not > > Do you have this in a public repo, like github > or bitbucket? > > Regards, > Chris > > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > -- Mit freundlichen Grüßen Günther Stangassinger |