Forum Discussion
Altera_Forum
Honored Contributor
12 years agoBidirection port (PIO) in uClinux
Hi all, does somebody design and program, in which is using pio core in bidirection mode ? I need to communicate between two FPGAs with one control bus (in output pio mode) and bidirection ...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- IO_PIO_SMER = IO_PIO base address + 1 --- Quote End --- You might want to try IO_PIO_SMER = IO_PIO base address + 4 instead. The hardware documentation usually talks about offsets for 32-bit registers, while the address used in software is in a 8-bit space. You need to jump 4 bytes to get to the next offset.