Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI2C bus in vhdl file
hi! i would like to write a I2C file.vhdl (master) to communicate with several PCF8574 devices . I already wrote this library for PIC microntroller , without to use periperal and success...
Altera_Forum
Honored Contributor
20 years agovery nice .
I already wrote some custom peripheral and included in my system as vhdl files. After that wrote driver device and use them in NIOS II IDE . But in my case how i have to set the pin , as input , as output (not good ) or bidirectional if exist ? For PIC mcu i wrote library , and was possible because i can change direction "on flight" using TRIS register .Setting 0 or 1 change the direction but how to do in vhdl file ? thanks for helps ciao walter