Using the Newest Gen Arm Microcontrollers

I’ve written a few times about the new Freescale KL03 ARM Cortex M0+ microcontroller. This particular part comes only in very small packages, with the smallest being a 1.6 x 2mm WLCSP (wafer level, chip scale package) 0.4mm pitch, 20 bump BGA. That’s a mouthful — albeit a very tiny mouthful. Maybe just a toothful.

On the left, here, I’ve got a pair of them on a US postage stamp.

For us, it’s not a particularly difficult part to assembly; just a garden variety 0.4mm pitch BGA, as far as we’re concerned. We place loads of them. But, it can be a very different story for a designer. Conventional wisdom says that a PCB designer has two choices with a part like this: a very expensive PCB, or don’t use the part.

Escape routing becomes very difficult (read: expensive) at 0.4 mm pitch. This part only has six connections that need to be escaped, but that can still be a problem. You can’t fit vias between the pads to escape out the back side. You can’t put vias in the pads unless you have them filled and plated over at the board house. That’s expensive in small quantities.

This blog post series is going to examine some possible ways to use these parts with more of a standard fab, such as Sunstone Quickturn. I’ve got three different process blank PCBs, each with four different land patterns.

I’ve been asked about home reflow too, so as a bonus, I’ve done my best to duplicate hobbyist conditions for one of the board sets.

Duane Benson
“Screaming Reflowster” not sold here

http://blog.screamingcircuits.com

Polarized Non-Polarized Components: Inductors

We have a number of manufacturing engineers running around here at Screaming Circuits. They’re very good at what they do, as are our operators and technicians. They are not, however, electrical engineers. Our parent company has a big group of electrical engineers, but they’re at a different location.

What that means is, though we endeavor to be experts at building things, we often don’t know what the circuits and components do in your specific application. People tend to send us their difficult projects so we’ve probably seen just about everything possible go through our plant. But, every now and then we see something unfamiliar. It doesn’t happen very often, but it does happen.

Sometimes it’s an exotic new package (like the 0.3mm pitch wafer scale BGAs now
showing up). Other times, it’s something a bit older, but just not clear. Rather than put a job at risk, if we aren’t sure, we’ll always hunt down the designer and ask.

Okay. That was a long-winded intro.

We recently ran across just such an unknown; a “polarized” inductor, without an accompanying “polarity” mark on the PC board. Not only that, but the markings on the inductor were a bit ambiguous. One half is black and the other half is green. The datasheet is in black and white, so there’s more room for interpretation than we’re comfortable with.

At first glance, you might wonder why polarity / direction matters in an inductor. I did. It’s just wire. Right?

Almost: it’s not just wire, it’s coiled wire. In most cases, the direction doesn’t matter, but in cases with multiple inductors, or with super high speeds, it can matter due to the fact that the coil winding direction has an influence on the flux and the actual induction.

I won’t go into all of the theory, but think of walking. In most cases, it doesn’t matter whether you start with your left foot or your right. However, if you’re marching in a coordinated group, you want everyone to start with the same foot.

Look at the two sets of air-core inductors above. When set like this, directionality starts to make a bit of sense. Imagine the electrons being pushed around in theses things and try to picture the resulting lines of flux.

The moral of the story: eliminate ambiguity. If the part is polarized, either mark the board, or make it the direction clear to your manufacturer in build documentation. Do this even if the polarity doesn’t matter to you, ’cause we don’t know that.

After photographing these, I ended up recalling this bit of knowledge. It’s just so rarely needed that it had vanished in to the fog. I put a few more photos after my signature.

Duane Benson
Which way did he go?
Which way did he go?

http://blog.screamingcircuits.com/

 

 

Do You Need that Part, or is It Just Habit?

At the moment, I’m working on an Arduino compatible clock. Like most of my Arduino compatible boards, this one uses an Atmega32U4, with USB built in. With the Atmega32U4, I sacrifice a little in program memory and SRAM, but gain a bit in reduced parts count.

A USB capable Arduino-compatible is, of course, programmed via USB, and can be powered by the USB port. Most Arduino boards also have a 5V regulator to be used when being powered by a wall-bug power supply. Naturally, I put the USB connector on the clock board, as well as the 5V regulator. With the two different supplies, I also put in circuitry to auto switch sources and protect the USB host when both supplies are connected at the same time.

My first PCB revision required a few hand-mods, but not many. Still, I decided to respin the board and remove the two mod wires. While doing so, it suddenly occurred to me — a blinding flash of the obvious — that most cellphones and other small devices are charged with a USB-connector 5V wall-bug power supply. Why then, would I also need a separate power supply and on-board 5V regulator?

By pulling the regulator off of the board, I could eliminate a few capacitors and the supply auto-select / protection circuitry. Not only did I save in component cost, but I was able to reduce the PCB size, and thus cost, by about a third.

  1. I had the 5V regulator in the design because Arduinos can be powered by either USB or a non-regulated power supply.
  2. The reverse power protection is necessary to prevent damage to the USB host if the other power is also connected.
  3. The auto-power switching circuit is necessary so that a user doesn’t need to flip a switch or change a jumper when changing power sources.
  4. I had two extra LEDs to indicate which supply was powering the clock.

I questioned my original assumptions, found a “because it’s always done that way” and eliminated it. Assumptions are meant to be challenged.

Duane Benson
Question authority!
And then get squashed
(or, squash extra space out of your PCB)

Freescale KL03 and PCB123 at 0.4mm Pitch

Small component packages seem to be a recurring theme with me. It’s understandable, I guess. Super tiny packages are becoming more and more common and we build a lot of product with them.

The smallest we’ve built is 0.3mm pitch. Those aren’t common enough to be considered standard — they’re still an experimental assembly — but not many chips use them yet. 0.4mm, on the other hand, is something we see on a pretty regular basis.

What’s so tough about that? The biggest challenge with these form-factors seems to be footprint design and escape routing. I can see why. There really isn’t room to follow any of the standard BGA practices. You can’t fit escape vias between the pads and you can’t put vias in the pads, unless they are filled and plated over at the board house. Filled and plated vias are the easiest way to go, but it can make for an expensive board fab.

KL03 WLCSP20 on a US Lincoln penny. One of my side projects involves trying to make the smallest possible motor driver. For this project, I’ve chosen the Allegro A3903 driver. It’s a 3 x 3mm DFN (dual flatpack no leads) with 0.5mm pitch pads and a thermal pad in the middle. The microcontroller will be the new Freescale KL03 32-bit ARM in a 1.6 x 2.0mm WLCSP (wafer level chip scale) package. It also comes in a 3 x 3 x 0.5mm pitch 16 pin QFN. Without an expensive PCB, that may be my only option.

Pick your CAD package. I’m using the newest version (5.1) of Sunstone Circuit’s CAD package, PCB123, but the principles here will apply to any CAD software. If you don’t already have a copy, download PCB123 V5.1 here.

If you’ve got fast Internet, you’re done now, so go ahead and install it. You’ll need the manual too, which you can get here.

I need to eat now, so stay tuned for Part 2.

Duane Benson
Nerfvana – It’s like Nerdvana, but with more foam darts.

http://blog.screamingcircuits.com/

VTP: Very Tiny Parts

A while back, I wrote about a new ARM Cortex M0+ chip from Freescale. It’s not the first M0+, but I do believe that it’s the smallest. I’ve been checking stock off and on and finally found the smallest package to be in stock and available to ship. 

I actually bought a couple of different types. First, there’s the WLCSP 20. It’s got 32K Flash, 2K SRAM and an 8K bootloader. The real kicker is that the package is only 1.6 X 2.0 mm. I also got a few in the QFM-16 package, which is a bit more workable at 3 X 3mm.

Finally, I bought a Freedom development board with the 4 X 4mm QFN-24 package. The dev board is hardware compatible with Arduino shields, so that will make for some interesting possibilities.

Anyway, here at Screaming Circuits, I’m most interested in that 1.6 X 2.0mm package to see how easy (or difficult) it is to use – see if there are any particular layout challenges. The other stuff is just for after hours play time.

Duane Benson
I’m not a number. I’m a free development board!
(Free, as in named “Free…”, not free as in “don’t cost nothin”)

http://blog.screamingcircuits.com/

Cost Reduction in Design — More Advice

If you’re looking for the absolute, cheapest possible assembly service, you’ll need to look outside of North America. If you really need a decent price with good quality and good service, you can keep your gaze West of the Atlantic and East of the Pacific.

Like everything else in the modern world, design decisions can have a pretty big impact on your cost. So, lets take a look at some design decisions that can make your manufacturing more affordable.

  • Accept longer lead times

Lead times are one of the biggest factors in electronics manufacturing. Screaming Circuits can turn a kitted assembly job overnight, but it costs a lot of money to do that. Screaming Circuits also has a 20 day turn-around that is much, much more affordable. Accepting longer lead times on PCB fab will drop your cost as well.

  • Avoid leadless packages like QFNs and BGAs

We build tons of QFN and BGA boards – even down to 0.3mm pitch micro-BGAs. That’s great if you need those packages. However, since all of the leads are underneath, we have to x-ray every part. That adds a bit of cost to the process. If you can, stick with TSSOPs and other parts with visible leads.

  • Use reels, or 12″ or longer continuous strips

We will gladly assemble parts on strips of almost any size. But, to save costs, use full or partial reels or continuous strips of at least 12″ long. It costs us less time to work with reels and continuous strips, and we pass those saving on.

  • Stick with surface mount

These days, through-hole components tend to be hand-soldered. That costs more than machine assembly, so use surface mount wherever possible. Surface mount components tend to be less expensive than through-hole too. If you do need a few through-hole parts, this is an opportunity to put in a little sweat equity by soldering the through-hole yourself and save a bit of money.

  • Panelize small boards

We can work with really tiny boards individually, but sticking with a larger size makes the job easier, and, again, we’ll pass those saving on. If your PCB is smaller than 16 square inches, panelize it. We put in less labor and you get a price break.

By following these guidelines, you get a decent price and really good quality and service.

Duane Benson
That would be telling

http://blog.screamingcircuits.com/

Remote ESD

ESD, or electrostatic discharge, is of great concern to anyone who deals with electronics. That’s obvious. What’s not necessarily so obvious, is that some times, you don’t even need to be all that close to the circuit board or component to damage it.

This article by Douglas C. Smith illustrates why sometimes just a wrist strap isn’t enough.

That’s why we don’t only use wrist straps, but also have a grounded conductive floor and use ESD jackets and conductive foot straps to protect the boards and components out on our manufacturing floor.

Here’s a video showing the dreaded ESD monster and us protecting your gear from him:

 

https://www.youtube.com/watch?v=hWoyInZr2sU&list=PLZ6WZdSCHUOeuppvKHRdrOY9sDpsCbxJU

Duane Benson
Greased lightning is an interesting concept
Would it reduce power line transmission losses?

http://blog.screamingcircuits.com

 

Warped PCBs

You just got a nice big PCB back from the fab shop. You set one on your desk to admire only to discover that it’s warped. What do you do?

There are two primary types of causes of board warping: process related at the fab or assembly shop, and layout-related issues. If it’s warped before assembly, it’s between fab and layout. If it’s flat before assembly and warped, after, it’s most likely between layout and assembly — although sometimes a fab problem won’t show up until a pass through the reflow oven at your assembly partner.

Determining the root cause is generally a bit of an iterative process. It’s tempting to start right off with your fab or assembly partner, but you need some information before giving them a call. You’ll need such things as the amount of warpage per inch, board size and thickness. With that, you need to take a good look at your design and consider copper pours, component size and component placement.

With that information in hand you can make your phone call. If the board is warped before assembly, call your fab shop. If it’s flat pre-assembly and warped post-assembly, call your assembly house.

The shop you call will want to talk over your design to help you pinpoint the cause. If you can rule out a design issue,then you need to talk with your partner to determine whether it’s a fab or assembly issue and next steps to take care of you.

 Here are a few design issues that could contribute to warping:

  • Uneven copper pour. Copper and FR-4 are a good match relative to thermal expansion, but they aren’t exact. A large pour on one side or corner of your board can lead to warping due to dissimilar expansion characteristics. This could cause warpage either at the fab shop or the assembly house.
  • Components with large thermal mass grouped together on the board. This would be more likely to cause problems during assembly than during fab. The thermal mass will act as a heat sink for that area on the board, which can lead to uneven expansion and uneven soldering.
  • A board that’s too thin for the size or number of components could lead to warping at any stage.
  • Odd shapes or large cutouts could also lead to warping at any point.

There may be other, more obscure causes, but those are the main design related causes. If it’s none of those talk with your partner.

Occasionally, design requirements lead to a board that is essentially non-manufacturable. Hopefully you never have this situation, but if you do, make sure that thickness, component location, pours, or cut outs really, really, really, need to be the way they are.

If you absolutely, positively can’t change anything, go back and try again. Then you can to look for heroic means to get the board fabbed and built.

Slight warpage might go away when the board is mounted. Just be careful with that. Some components may not stay securely soldered when you flatten it.

The board may need a special fixture during assembly to prevent warping. This will likely cost extra, but if you can’t change your design, and still need it built, it may be your best option.

Finally, if nothing works, you may need to look harder at the design, or look for a new fab or assembly house. We all like to think we can do just about anything, but every shop has its limits, and on rare occasion those limits can be difficult to spot.

Duane Benson
What if Godot was late because he was waiting for John Galt?

http://blog.screamingcircuits.com

Circuit Design ECOsystem

Years and years ago, I was a product manager at In Focus, the projector manufacturer. It was a great time to be in the display industry. New technology was being invented left and right (and center and back, and some over in that far corner too). Competition was still reasonably light and we were ahead of most of it.

It was always interesting to take one of the early overhead projector-style displays through airport security. Laptops were rare at the time, let alone a big clear display that looked like a see-through touch-pad computer, but without the computer. But that’s not the point.

Back in our engineering department, we had the electronics engineers, a few folks to work on firmware, a layout specialist, documentation specialists to deal with all the documentation (duh), purchasing people to buy the parts and PCBs, technicians build up the prototypes, manufacturing people to get the pre-production and production going. And here,s the contrast today. Quite a few engineers I talk to these days have to do all of those jobs except final production. That wouldn’t be too much of a problem except that while all of those jobs were being assigned to the engineer, everything got more difficult. Parts got smaller, timelines shrank, competition got more fierce, clock speed increased and a lot of formerly company functions, got out-sourced. It’s a lot of work and a lot of ground for that engineer to navigate.

A handful of companies — Digi-Key, NXP, National Instruments, Sunstone Circuits and Screaming Circuits (my company) — have gotten together to form the Circuit Design ECOsystem; a cross-company organization designed to help that design engineer get a design from inside the brain to the market.

NXP makes components and is creating library components for the CAD software made by National Instruments and Sunstone. Sunstone allows quoting and ordering of Screaming Circuits assembly service on their website and Screaming Circuits does the same with Sunstone PCB fab. Digi-Key is working to improve the data-flow to Sunstone’s PCB123 CAD and streamline the parts procurement process to Screaming Circuits.

It’s still early in the process, but the idea is to take the, now fragmented, design to manufacture process and make it easier for the electrical engineer to get through – to remove roadblocks, add in new services and improve communications to make it easier to produce a quality product.