Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Could Accelerometer on DE0 NANO can communicate in I2C

HI,I have a de0 nano,and i description the I2C in VHDL by myself.as http://wenku.baidu.com/view/4a4240eeb8f67c1cfad6b8b5.html it`s OK work on AT24C02

.Now I like have a try on Accelerometer,but I want`t to communication with SPI,because I haven`t description SPI before,if the program is wrong i can`t sure is the SPI work abnormaly or set the Accelerometer in wrong.

SO could you tell me,can I communication with the Accelerometer in I2C,on DE0 NANO? THANKS A LOT!:-P

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    SO could you tell me,can I communication with the Accelerometer in I2C,on DE0 NANO?

    --- Quote End ---

    Why not look at the schematic? It quite clearly routes I2C to the accelerometer.

    The accelerometer data sheet indicates that I2C mode is slow (relative to SPI mode), so you'll have to use the accelerometer in one of its slower update/sampling modes.

    Cheers,

    Dave