Forum Discussion
Altera_Forum
Honored Contributor
15 years agoBidirectional vs Output
Hello everybody,
I want to be able to switch an output between the usual VDD/VSS outout, ie digital 1 and digital 0 as well as being able to set the output to tristate, speak the pin on the other side of my CPLD will see a high resistance input. Is the solution to control a regular output with a tristate buffer or to use a bidir pin with a tristate buffer in order that the externally connected component can "see" the high impedance of the bidir pin when the tristate is enabled on the other side ? Seems like if I use a regular output the pin on the other side will only see a 1 or a 0 on the other side. Thanks in advance - Eric3 Replies
- Altera_Forum
Honored Contributor
Cool, thanks for the answers guys !!
- Altera_Forum
Honored Contributor
Kaz is right. You need the bidir pin only if you want to read the level possibly driven by the other side when your output is in high impedance state.
- Altera_Forum
Honored Contributor
For an output you can apply '0' or '1' or 'Z' without the need to declare bidirectional pin (normally).