Forum Discussion
Altera_Forum
Honored Contributor
14 years agoWeak pull-up resistors
Hi everyone! I enabled weak pull-ups for the input and output pin (cyclone II device). But when I measure the voltage on these pins, on the input pin is 3V and on the output pin is 0V. Shouldn...
Altera_Forum
Honored Contributor
14 years agoHi Nikola,
--- Quote Start --- According to the datasheet, the peripheral that I want to connect to my fpga should have all 4 SPI signals pulled high with internal pull-up. But when I power the peripheral up, only SDO (which should be connected to MISO) is high, the other signals are low. I wanted to make sure that pull-ups in the fpga are on initially, so that I do not cause any damage to the devices when I connect them because I don't know if the pull-ups are on initially in my peripheral. --- Quote End --- What is the SPI device (post a link). What is your circuit for connecting the SPI device to the FPGA, eg., do you have a separate power supply, or are you using a power pin on the FPGA kit? You should really simulate your design. That is the only way you can really understand what logic levels are to be expected on the I/Os. Since you did not write the SPI controller, you either need to read the code, or simulate. Simulation is faster, and it will be more useful in the long run. Cheers, Dave