Author Topic: Basys 3 Pmod Tips  (Read 531 times)

0 Members and 1 Guest are viewing this topic.

Offline AidanWTopic starter

  • Newbie
  • Posts: 5
  • Country: us
Basys 3 Pmod Tips
« on: March 22, 2023, 07:43:35 pm »
Hello everyone!

I am doing a project for my Electronics II class, and I would like to use the Pmod connectors to get a signal from a breadboard. The signal will be high (3.3V) or low, and drives some LEDs on the FPGA. Is there anything I need to be careful about when using the Pmod connectors? Do I need to connect the ground of the Pmod ports to the ground of the breadboard for reference? I looked at the master xdc file, and it looks somewhat straight forward, but if there's anything different than constraining the usual IO switches and LEDs, please let me know :). I'm mostly concerned about frying the board or ruining the port.

Thanks for all your help!
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Basys 3 Pmod Tips
« Reply #1 on: March 22, 2023, 08:12:32 pm »
Hi! PMODs are pretty robust.

Yes - you will need to connect the Ground of the PMOD to the breadboard ground (if you intend to use any GND connections on the breadboard).

Some PMOD connectors are "high speed" others are "low speed" and have a 200 Ohm resistor in series - this may be an unexpected extra current limiting resistor for such things as driving LEDs.

The one little annoyance is that they are unkeyed - so you can get your Power and data pins mixed up if not careful. Seems a bit odd for something aimed at the education market...

Be careful when probing, as a slip of the ground probe can short the power rail. My solution to this is to use a PMOD-TPH2 ( https://digilent.com/shop/pmod-tph2-12-pin-test-point-header/ ) that I have my logic analyzer connected to. They are cheap as so well worth getting a couple, and makes adding the analyzer into the mix pretty simple.  MAKING YOUR OWN VERSION OF THESE IS AN EXCELLENT FIRST KICAD/CUSTOM PCB PROJECT - so much value for so little cost. A lifetime supply of these adapters for $2 plus shipping and a few dollars for connectors.

Oh, and also be aware that the DRIVE_STRENGTH setting on a FPGA pin is not a current limiting setting - don't try to use it as one (for example to limit current to an LED). Think of it as how much current can be sourced/sunk while still maintaining a the high or low logic level. For digital high level, the 15mA setting sort of means that when loaded with a 200 Ohm resistor the pin will still be at 3V. The short-circuit current may be much higher.

When connecting probes directly to a PMOD port I use a 2x5 male-male pin header block, missing out the Vcc pins. Keeps me from stuffing things up.
« Last Edit: March 23, 2023, 01:12:49 am by hamster_nz »
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf