Author Topic: Protecting against bus contention in prototype  (Read 1723 times)

0 Members and 1 Guest are viewing this topic.

Offline ivan747Topic starter

  • Super Contributor
  • ***
  • Posts: 2046
  • Country: us
Protecting against bus contention in prototype
« on: June 30, 2024, 04:27:01 pm »
Hi everyone,

I want to embark on a project that wil conenct an FPGA to a device parallel bidirectional bus. The bus is not clearly documented, so I am not 100% sure when the device will output data on the bus. I want to protect both the FPGA dev board and the device because they cost some money.

I think resistors in series on every line is a good solution, but I don't know what value should I choose. The bus is 3.3V and its clock runs at up to 17MHz. Single data rate. I will have a ribbon cable (at least 20cm for ergonomics). So signal integrity is a factor, I think.

If I go with a value that limits the current below the FPGA's rating, say 3.3mA, the resistance is 1kohm. Empirically I think that's too high of an impedance considering the ribbon cable. If I go with something like 100ohm, empirically I think it can drive the ribbon cable but I don't know if the FPGA can survive that.

Is there a magical solution?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11615
  • Country: us
    • Personal site
Re: Protecting against bus contention in prototype
« Reply #1 on: June 30, 2024, 06:49:11 pm »
Use bus transceiver ICs between the devices. Consider them to be disposable, but generally they are more robust and 100 Ohm current limiting is sufficient.
Alex
 
The following users thanked this post: ivan747

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: ie
    • LinkedIn
Re: Protecting against bus contention in prototype
« Reply #2 on: June 30, 2024, 07:57:33 pm »
Get the minimum of maximum load current of FPGA output and maximul load current of target device. Then divide logic high voltage to this current. You will get resistors value.

Example: 20mA of max current, 3.3V of logic 1 give 165R
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7982
  • Country: ca
Re: Protecting against bus contention in prototype
« Reply #3 on: July 01, 2024, 12:10:30 am »
I use 74xx245 on my PCB, with optional resistor packs beneath the 245 buffers so I may use either / or just  by mounting the 245 or 2x 4sip parallel resistor packs since the 8 bit bus comes in and out in parallel on each side of the 245.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf