NSSBC : Eagle library

When you're not familiar with the eagle library format, you're tempted to stick to what you get for standard and what you can fit afterwards. But the eagle library format is quite simple. This contradicts certain online tutorials.
An Eagle library consists of three factors:

in that order. Let's draw an analogy here. Let's assume electricity is like chemistry. The symbols in a library are the atoms. The devices are the molecules, made up by combining symbols. The packages are the crystal structures, lattices, in which the molecules are stored.

The Eagle library editor makes distinction between these three. Symbols are stored in the library as .sym entities. Packages are stored as .pkg entities. And devices are .dev entities. In the next section I will guide you through a first new part for our own library.

For the record, I downloaded zilog.lbr from the CADSOFT.de download site.

Your own private library

When you run with a Linux system, chances are you installed the eagle software in /opt/eagle. Which means that you cannot write new libraries and library parts. So it is a good idea to make a 'libs' directory inside your eagle projects directory. In this directory you create a 'custom.lbr' library. In it, you keep the parts you use most, or the parts you borrowed from other people's libraries. Suppose a finnish student wrote a nice lbr file but for you, only two components are useful. So why keep the full lbr? Eagle offers a method to do just that: keep what you need in a place where you can change it and discard the rest.

The power of Eagle is in the command line window. When making pcb boards, it is very convenient to be able to type

show clk
so Eagle highlights the copper traces with that netname. Also,
ripup gnd
is very convenient. This command line property shows that Eagle has more inherited from Unix or DOS than from Windows. The command line enables you to get things done in a fast, friendly and reliable way.

To get a custom library, do as follows:
  1. start eagle
  2. from the eagle commander issue 'File', 'New', 'Library'
  3. the name of the new library will be 'custom'; eagle adds the lbr extension automatically
  4. switch to the new window, the library editor
  5. in the command line bar enter: copy z80dart@zilog
  6. save and exit the library editor
You now have created your own personal library that keeps one copy of one part. A part that can be edited and saved. But you need to 'use' the library first, as explained below. Still, if there are parts you need a lot, but which are required in a slightly changed form, this is the way to go. To enable a library to be used, do as follows Done. Your custom library is now ready to be used.

Your first private part

The Sparkfun tutorial guides you through the process of creating a private part from scratch. That is not my intention. There are so many building blocks to use, that it is a waste to reinvent the wheel. So I will 'borrow' a part from an existing library and change and extend it. When you can do this kind of thing, creating new parts is a lot easier. Start the eagle commander. Then:

You are now editing the z8530scc.sym symbol. The databus is ok. So we leave it like this. But RESET, M1, IORQ are not in the SCC. So we're gonna give them another name: That's it! Now switch back to 'device' (fourth from the left, 4 'and' tokens in a box). Choose the SCC. You now see the new pins in the package. But most of the pin numbers are wrong. So we'll fix this. Done. Now go back to the symbol editor. The SCC is now done. But we might as well create a version for the PLCC44 package: You have a library now with two private parts :0) Now go use them:

Congratulations. You're a pro now!

Further additions

In the mean time I have added several other parts to the nssbc library. And improved others. The major improvement made, was splitting off the Power/Ground pins from each package and adding a PWRGND symbol in each device. This results in a lower pin count for each component. The parts added were:

Page created on 16 April 2011 and

Page equipped with SEO technology