Altera_Forum
Honored Contributor
15 years agoI2C slave in Cyclone II device
Hi,
I have written a simple I2C slave receiver in vhdl that I want to put in a cyclone II device. It is asynchronous and detects start and stops and device address + Rd/Wr and subadress. If both the device and sub address are correct then the databyte will be accepted. It looks good when I simulate it but I get problems when I put it in HW. I use a microprocessor on another PCB as a Master I2C. I runs at 200KHz. My slave in the FPGA ACK:s the way it should after both the device and subaddress. BUT, when it comes to the transfer of the databyte it goes all wrong! After the 7:th I2C clockpulse the clockgeneration stops and the SDA line are pulled LOW. I have 2 DVI circuits on the same board as the FPGA and this circuits is easaly configured. I know this is a asynchronous construction but it seems to work on the two first bytes. Is there anyone experienced a problem like mine? Thank You!