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.
THE DESIGN CYCLE<br />
supplied to P0.14, which enables<br />
normal operation of the LPC2136<br />
ollowing a reset. With resistor R5<br />
switched into the voltage divider, a<br />
logical low level is placed on pin<br />
P0.14. The low level on P0.14 causes<br />
the LPC2136 to enter ISP mode<br />
following a valid reset operation.<br />
Using the DIP switch and voltage<br />
divider circuitry eliminates the need<br />
to clone the DTR circuitry made up of<br />
R1, D2, R2, Q1, and R3 to set the<br />
required ISP logic level at P0.14.<br />
The RS-232 DTR signal from the<br />
PC serial port is fed into the base of Q1<br />
via a voltage divider (R1 and R2) and<br />
clamp (D2). Diode D2 insures that the<br />
maximum reverse emitter-base voltage<br />
of Q1 is not exceeded. The reverse<br />
emitter-base voltage threshold of Q1<br />
— a Philips BC846 — is six volts.<br />
Some PC serial ports swing to<br />
between ±10.0 volts. Positive voltage<br />
swings are tempered to suitable levels<br />
by the voltage divider formed by<br />
R1 and R2. The negative swings of the<br />
DTR line are clamped by diode D2 to -<br />
0.6 volts. When the portion of SW1<br />
that is connected to the collector of<br />
Q1 is ON, R3 is connected to Q1’s<br />
collector. The junction of R3 and Q1’s<br />
collector is connected to the<br />
LPC2136’s RESET pin.<br />
Thus, when DTR is asserted, Q1 is<br />
activated and the junction of R3 and<br />
Q1’s collector dips to a logical low<br />
level, which puts the LPC2136 into<br />
reset. Otherwise, DTR is not asserted,<br />
Q1 is OFF, and a logical high level is<br />
shown to the LPC2136 reset pin. The<br />
LPC2000 Flash Utility toggles DTR to<br />
alternately activate and deactivate Q1<br />
creating a reset pulse at the LPC2136<br />
reset pin. As you can see, both poles<br />
of the DIP switch SW1 must be ON for<br />
the LPC2000 Flash Utility to have any<br />
effect on the LPC2136.<br />
FIRE IT UP<br />
Okay, what we have right now is a<br />
minimal LPC2136 system. At this<br />
point, we should be able to access the<br />
LPC2136 using a PC serial port and<br />
the LPC2000 Flash Utility, and that’s<br />
just what I have done in Photo 4. The<br />
LPC2136 responded to commands<br />
issued by the LPC2000 Flash Utility<br />
and as a result, our preliminary core<br />
hardware design is verified.<br />
The LPC2000 Flash Utility allows<br />
you to read, write, erase, and blank<br />
check the LPC2XXX device at the<br />
other end of the serial cable.<br />
However, you can’t do much useful<br />
debugging with it. Next time, we’ll<br />
add a JTAG interface, finish up the<br />
LPC2136 design, and take a look<br />
at some tools you can use to code,<br />
program, and debug the beast.<br />
In the meantime, I’ll make the<br />
LPC21XX printed circuit board<br />
adapters available to you via the<br />
EDTP website at www.edtp.com<br />
I’ll see you next month and we’ll<br />
continue on our way to ARMing your<br />
Design Cycle. NV<br />
Atmel AVR based Micro64/128<br />
Embedded Controller Module<br />
8-Channel Analog to Digital Convertor<br />
Real Time Clock/Calender<br />
29 Digital I/O<br />
SPI & I 2 C Bus<br />
Two Serial Ports<br />
Serial Boot Loader<br />
RS-232, 422 or 485<br />
Selectable Baud<br />
Rates up to 250 Kbps<br />
Only 1.5 Cubic Inches<br />
Supports Assembly,<br />
BASIC and C Prog. Languages<br />
Inexpensive CodeVision C Compiler<br />
ABOUT THE AUTHOR<br />
■ Peter Best can be contacted via<br />
email at peterbest@cfl.rr.com<br />
Starting at Only<br />
- Single Qty<br />
$119<br />
Start Developing<br />
The Micro6/128 Development<br />
Board takes the Micro64/128 I/O<br />
pins and expands them out to<br />
solder pads and headers for ease<br />
of connection when developing.<br />
It also connects USART1 to RS-232<br />
drivers or directly to screw<br />
terminals for RS-422 or RS-485<br />
communication. USART0 is also<br />
connected to RS-232 drivers. The<br />
RS-232 drivers are connected to<br />
two DB9 connectors. This board<br />
includes a prototyping area so the user can add external<br />
circuitry. There is an onboard voltage regulator for powering the<br />
Micro64/128 and additional circuitry. The Micro64/64A/128/128A<br />
development system comes complete with a Micro64, Micro64A,<br />
Micro128 or Micro128A, a Micro64/128 Development Board, and a<br />
power supply.<br />
VISIT WWW.MICROMINT.COM FOR MORE<br />
INFORMATION or Call 1-800-635-3355<br />
April 2006 93