Author Topic: Pin order vs. routing ease  (Read 2913 times)

0 Members and 1 Guest are viewing this topic.

Offline shadewindTopic starter

  • Frequent Contributor
  • **
  • Posts: 329
Pin order vs. routing ease
« on: April 22, 2011, 11:56:56 pm »
I'm making a small PCB for driving a Nixie tube. The driving transistors are controlled by a decoder. The problem is, on this small little circuit board, I want the decoder behind the tube so that the tube front is as close to the edge as possible. The problem is that this leaves the tracks to the decoder reversed so the only way to make it work is through lots of via magic.

Should I simply reverse the pin mappings? It doesn't really matter for my application since I can just change the software to remap it automatically for me. Is it considered bad practice to use "weird" pin mappings for ease of routing?
 

Offline Leo Bodnar

  • Frequent Contributor
  • **
  • Posts: 824
  • Country: gb
Re: Pin order vs. routing ease
« Reply #1 on: April 23, 2011, 01:09:59 am »
I'm making a small PCB for driving a Nixie tube. The driving transistors are controlled by a decoder. The problem is, on this small little circuit board, I want the decoder behind the tube so that the tube front is as close to the edge as possible. The problem is that this leaves the tracks to the decoder reversed so the only way to make it work is through lots of via magic.

Should I simply reverse the pin mappings? It doesn't really matter for my application since I can just change the software to remap it automatically for me. Is it considered bad practice to use "weird" pin mappings for ease of routing?

I always do that.  The firmware is the composer's score, but the PCB layout is the performance.

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18129
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Pin order vs. routing ease
« Reply #2 on: April 23, 2011, 05:15:33 am »
I've done it on pic's movng my pic functions around to make the pcb easier
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14125
  • Country: gb
    • Mike's Electric Stuff
Re: Pin order vs. routing ease
« Reply #3 on: April 23, 2011, 11:51:01 am »
Should I simply reverse the pin mappings? It doesn't really matter for my application since I can just change the software to remap it automatically for me.
It is almost always easier to fix things in software than hardware. A lookup table is quick, easy and obvious.
Quote
Is it considered bad practice to use "weird" pin mappings for ease of routing?
Excuse the rant but this is a pet annoyance of mine...
There is no such thing as "good practice" or "bad practice", and people who declare things as either without context are generally dickheads with a narrow, sometimes quasi-religious viewpoint and should generally be ignored and/or ridiculed.

Every application has different requirements and priorities, and any implementation is always a compromise based on those priorities. More useful terms might be "more  appropriate" or "less appropriate" to a specific set of requirements.
 
For example in the above simple case, fixing in software would typically be the best policy as it simplifies the hardware, maybe allows fewer vias and/or shorter /wider traces (all of which are better for manufacturing yield) , makes the board smaller, may use fewer layers, and has negligible impact on performance.
However if the PCB was going to be used by many different people writing their own software (or in an environment like medical where everything has to be documented in extreme detail for approval), it might be better to have the pins in a logical order, as a scrambled order requires more documentation. Similarly if the processor was likely to be so full that every last byte had to be squeezed out, a hardware fix might be more appropriate. Or if you were driving something that needed very fast update which couldn't afford the time to juggle the pins in software.
Maybe the board already needs to have more layers due to other aspects, which might eliminate any additional cost or complexity in arranging the pins nicely.

Something I've yet to see any PCB tool handle nicely is the concept of "These two groups of pins can be connected in any order, juggle as appropriate to make the layout nice", so it's one of those things you need to learn to do manually.   
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline shadewindTopic starter

  • Frequent Contributor
  • **
  • Posts: 329
Re: Pin order vs. routing ease
« Reply #4 on: April 23, 2011, 02:04:44 pm »
I greatly approve of your rant in any case. Coming from the software world, there are lots of people on IRC channels going on about what is good and bad practice all the time.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf