EmbDev.net

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


Author: Guest (Guest)
Posted on:
Attached files:

Rate this post
0 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,

Author: Guest (Guest)
Posted on:

Rate this post
0 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

Author: Guest (Guest)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.