Download Digital Altimeter Hardware Description - Microcomputer-Based Design | ETEC 474 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!
Jason McKeon
ETEC 474
Hardware Description
Digital Altimeter
April 27, 2004
Introduction:
The digital altimeter will be a battery operated portable device that will be capable of
measuring altitude, pressure, and temperature. Altitude will be derived from the temperature and
pressure measurements and is relative to sea level. Applications of this device include hiking,
outdoor activities, and travel. Users will be able to navigate different modes of operation using
the 16-button keypad and the 2 x 16 character LCD.
Hardware Description:
The important hardware components of the project include the MC9S12DP256 (9S12)
microcontroller, MPX5100 absolute pressure sensor, MAX6662 digital temperature sensor,
ADS1100 16-bit analog to digital converter, MAX710 DC-DC converter, GH5010 16-button
keypad, and LM162 2 x 16 LCD display. Additional components that will be used in the project
are a piezo buzzer, MAX4626 analog switch, MC34164 reset circuit, and a SP232A RS
transceiver. The hardware block diagram of Figure 1 shows the interface between the hardware
components and the 9S12 microcontroller. Each of the main hardware components and their
functions will be explained in further detail.
Microcontroller:
The MC9S12DP256 16-bit microcontroller (U1) will be used to control the entire system.
This microcontroller was chosen for this project because of its on-chip resources and the
software tools available for this processor. Another reason this microcontroller was chosen was
for its high operating speed. It runs at a bus frequency of 25 MHz which is derived from the 16
MHz crystal (X1) and the PLL circuit connected to the VDDPLL and XFC pins of the
microcontroller. The on-chip resources used for this project are the general-purpose I/O ports,
the I2C bus (SDA,SCL), serial peripheral interface (SPI0), and the serial communications
main components connected to the MAX710 are an inductor (L1) and Schottky diode (D1). To
allow sufficient output current capability, L1 is around 22uH. For improved output switching
efficiency, a Schottky diode is used. The MAX710 is a switching regulator that outputs 5V if the
input is between 2 and 11V. This allows the system to continue to operate at the required level of
5 volts even if the battery voltage drops below this value. This power supply circuit provides the
power for the entire system.
Pressure Sensor:
The pressure sensor used for this project is a Motorola MPX5100 absolute pressure
sensor. It measures the current atmospheric pressure relative to vacuum. The output of the
MPX5100 (U3) is a DC voltage between 0 and 5V that is proportional to the current atmospheric
pressure. This device has internal signal conditioning, therefore, the only external components
needed are three filter capacitors (C1-C3), used at the input and output of the chip. This device
only uses three of its six pins. These pins are used for Vin, Vout, and GND. To convert the
output voltage of the MPX5100 to a digital value for use in software, a 16-bit A/D converter is
used.
16-bit A/D Converter:
The A/D converter used in this project is an ADS1100 16-bit A/D converter (U4) from
Texas Instruments. This device communicates with the 9S12 microcontroller using the I2C
interface. It has a differential voltage input which is connected to Vout of the MPX5100 and
GND. The power supply is used as the reference voltage for this chip.
An A/D converter of 16-bits was chosen because a voltage of 0.45mV needs to be
resolved from the pressure sensor in order to detect a 1 meter change in altitude. The ADS
can be programmed to make conversions from 8 to 128 samples per second. A sample rate of 8
samples per second was chosen since it allows for maximum resolution and data only needs to be
sent to microcontroller between 2 to 4 times per second. Data is sent to the microcontroller
through the SDA line, and the clock source to the ADS1100 is supplied by the SCK line of the
9S12. These lines have open drain outputs and therefore have two 2kohm pull-up resistors (R9,
R10) connected.
Digital Temperature Sensor:
The temperature sensor used in this project is a MAX6662 12-bit digital temperature
sensor (U5). Communication with the 9S12 microcontroller takes place through the SPI interface
(SPI0). A 3-wire interface between the MAX6662 and the 9S12 is used for communication. The
bidirectional line (MOSI0/PS5) provides the serial input/output, SCK0 provides the 1MHz clock
signal to the MAX6662, and the SS_L (PP7) enables the MAX6662. The GPIO pin PP7 of the
9S12 is used as the SS_L line instead of the PS7/SS pin in order for the MAX6662 to be enabled
for the full 24 clock cycles required to read its output registers. Temperature values are converted
using an internal A/D converter on the MAX6662 2 times per second and are stored in a 16-bit
register.
User Interface:
The user interface hardware consists of the Sharp LM162 2x16 character LCD display
(LCD1) and the Grayhill GH5010 16-button keypad (KP1). Buttons for numbers 0-9, โ*โ and โ#โ
characters, and letters A-B are present on the keypad. The keypad is connected as a 4x4 matrix to
the 9S12 through the I/O ports PB0 โ PB7. Four 10kohm pull-up resistors (R3 โ R6) are used on
the I/O lines.
The 2x16 character LCD is connected to the ports PA0-PA7 and PK0-PK2. To adjust the
contrast of the LCD, a 20kohm potentiometer (R7) is connected between Vcc and Vss of the
Parts List:
1 4 Res-Cer,RAD,1%,10k,1/4W R3-R Item Quantity Part Description Designators