Nuts & Volts
Nuts & Volts
Nuts & Volts
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
■ PHOTO 1. This is a bird’s eye view of<br />
the LPC2106 adapter board. Note the<br />
three .1 μF bypass capacitors mounted<br />
on the bottom side.<br />
the LPC2136. In fact, the only major<br />
differences between the LPC2106 and<br />
the LPC2136 are the number of peripherals<br />
and the power requirements.<br />
Figure 2 shows us that the<br />
LPC2136 is a larger microcontroller in<br />
terms of peripherals, SRAM, and Flash<br />
storage. The LPC2136 isn’t the Big<br />
Daddy here and has a big brother —<br />
the LPC2138 — which carries 512KB of<br />
Flash and 32KB of SRAM. The LPC2136<br />
matches the LPC2138’s SRAM size, but<br />
only houses half of the LPC2138’s<br />
available Flash program memory.<br />
The give and take between the<br />
LPC2106 and the LPC2136 lies in the<br />
LPC2106’s larger SRAM size and<br />
reduced peripheral count versus the<br />
LPC2136’s smaller amount of available<br />
SRAM and increased peripheral count.<br />
This offset of SRAM versus peripheral<br />
count correlates with the first rule of<br />
embedded computing which states that<br />
nothing is free. If you want more peripherals,<br />
you must give up something else.<br />
In this case, that something else<br />
is SRAM. As you can see in the<br />
LPC2106, the first rule of embedded<br />
computing works in the opposite way<br />
as peripherals are sacrificed for additional<br />
SRAM. This give and take is a<br />
good thing, as it produces multiple<br />
variants of the LPC210X and LPC213X<br />
microcontrollers, which allows for<br />
more cost effective designs.<br />
The LPC2106 is a 48-pin device.<br />
Since Figure 2 shows us that the<br />
LPC2136 has 16 more general-purpose<br />
I/O pins and pairs of I 2 C, SPI, and<br />
analog-to-digital converter interfaces,<br />
it would be logical to deduce that the<br />
LPC2136 is a physically larger part. The<br />
extra peripheral general I/O interfaces<br />
push the LPC2136’s pin count to 64.<br />
Note, also, that the LPC2136 supports<br />
an on-chip digital-to-analog converter<br />
subsystem. Another advanced feature<br />
of the LPC2136 is the battery-backup<br />
capable real time clock.<br />
Many of the hardware design<br />
points that exist for the LPC2106 are<br />
common to the LPC2136. However,<br />
we must take the battery-backable<br />
real time clock of the LPC2136 into<br />
account if we plan to use it. Also,<br />
there is no need for a +1.8 VDC power<br />
source for the LPC2136, as it only<br />
requires a +3.3 VDC power source.<br />
We’ll get to know the LPC2106<br />
and the LPC2136 internals better<br />
when we begin the coding phases of<br />
our ARM7 designs. So, let’s attack the<br />
hardware design points and build up<br />
some ARM7 hardware.<br />
FABRICATING ARM7<br />
MICROCONTROLLER<br />
SYSTEMS<br />
THE DESIGN CYCLE<br />
We won’t be using custom printed<br />
circuit boards at the system level<br />
in this installment, as you may want<br />
to create your own flavor of the<br />
LPC21XX designs I’m about to present<br />
to you. With that thought in mind,<br />
I’ve decided to use some prototype<br />
boards from other EDTP products that<br />
contain +3.3 VDC power supplies and<br />
ready-to-go RS-232 serial ports. Once<br />
we’ve verified the basic operations of<br />
the ARM7 parts, I’ll put the final<br />
designs down onto some professional<br />
printed circuit boards, which I will<br />
make available to you via the EDTP<br />
Electronics website.<br />
Now that I’ve chosen to use<br />
cast-away prototype boards, the first<br />
obstacle we have to negotiate is how<br />
we will mount the fine-pitched<br />
LPC21XX devices. The LPC2106 is<br />
tiny and its 48 pins are positioned<br />
equally around seven square<br />
millimeters. The LPC2136 is equally<br />
difficult to breadboard, as it is not<br />
much larger with its 64 pins being<br />
■ PHOTO 2. Here’s a shot of the<br />
LPC2136 adapter board top and bottom.<br />
The far right bottom capacitor is an<br />
0805 SMT 10 μF at 6.3V tantalum that<br />
is filtering the Vref pin. The rest of the<br />
capacitors are .1 μF 0805 SMT devices,<br />
which are acting in the power supply<br />
bypass role.<br />
April 2006 89