EmbDev.net

Forum: FPGA, VHDL & Verilog Modifying a PCA955 vhdl code


von Guest (Guest)


Attached files:

Rate this post
useful
not useful
Hello there,

I have downloaded this PCA955 vhdl code from Frank Buss it work 
according to the datasheet. I am trying to modify the " Read from 
Register " so that it can match the receiving signal.

The Read from Register step goes:

    I2C Start
    Write Address(W)
    Command Byte
    I2C(repeated) Start condition
    Write address(R)
    Read Data
    I2C Stop

The Read from Register step in my case goes:

    I2C Start
    Write Address(W)
    Command Byte
    I2C Stop        -- This is the step I would like to add
    I2C(repeated) Start condition
    Write address(R)
    Read Data
    I2C Stop

So far I have tried but the output signal is the inverse of the expected 
one

I have attached the two file and I hope someone can help me

Regards,

von Guest (Guest)


Rate this post
useful
not useful
Hello again,

I don't know if it will help but it's just for a Simulation purpose. I 
am also thinking About modifying the slave code but it seems a bit 
difficult. Any help?

Thanks

von Guest (Guest)


Rate this post
useful
not useful
Hello again,

well it turns out my outpout signal was the right one due to some 
internal port mapping in the Code.

Thanks

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.