Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20749 Discussions

pull up/down resistors

Altera_Forum
Honored Contributor II
2,262 Views

Hello people, 

 

I work on some project where I need to control some device via cyclone II FPGA (DE2 board). Using some FPGA pins I control device and using other FPGA pins I monitor the response of the controlled device. 

I need your opinion, do I need to use pull up or pull down resistors on the output of the FPGA pins ? 

 

thank you very much, 

All the best. 

Bojan
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,082 Views

Whilst the FPGA is being configured the pins are tri-stated. Any internal pull-up resistors you might have enabled, won't actually be active until configuration is complete. So during configuration unless another device pulls the signals one way or another, the signals connecting your FPGA to other devices will be floating. 

 

Whether or not you need pull ups/downs on those signals depends on how the other devices will behave with floating inputs - if you need to guarantee that their pins are held in a certain state then you will need pull-ups/downs. 

 

There's no simple answer other than looking at the details of your design. As an example though: 

 

Say you have multiple devices hanging off a bus - i.e. different devices can drive the same signals. Each device has an enable signal from the FPGA to prevent this conflict. While the FPGA is configuring itself you will need to pull up/down these enable lines to stop the devices fighting each other and causing damage. 

 

Hope this helps.
0 Kudos
Altera_Forum
Honored Contributor II
1,082 Views

It depends on your application. The larger the pullup resistor value is, the slower the rising and falling edges are. If the you think that you need pull-up or pull down resistors to set outputs to hight or low logical level for safety during power-up because I/O pins remain tri-stated during power-up, I think that you have to.  

 

Anyway, in Quartus-II, you can use the assignment editor to set output to weak pull-up.
0 Kudos
Altera_Forum
Honored Contributor II
1,082 Views

 

--- Quote Start ---  

Whilst the FPGA is being configured the pins are tri-stated. Any internal pull-up resistors you might have enabled, won't actually be active until configuration is complete. So during configuration unless another device pulls the signals one way or another, the signals connecting your FPGA to other devices will be floating. 

 

Whether or not you need pull ups/downs on those signals depends on how the other devices will behave with floating inputs - if you need to guarantee that their pins are held in a certain state then you will need pull-ups/downs. 

 

There's no simple answer other than looking at the details of your design. As an example though: 

 

Say you have multiple devices hanging off a bus - i.e. different devices can drive the same signals. Each device has an enable signal from the FPGA to prevent this conflict. While the FPGA is configuring itself you will need to pull up/down these enable lines to stop the devices fighting each other and causing damage. 

 

Hope this helps. 

--- Quote End ---  

 

 

AFAIK Altera devices have built-in weak pullups at all times (20K-100K or something like that) - so external pullups aren't necessary during configuration.
0 Kudos
Altera_Forum
Honored Contributor II
1,082 Views

It depends on the device - check the datasheet for the particular family of interest.

0 Kudos
Reply