Docsity

Digital Altimeter Hardware Description - Microcomputer-Based Design | ETEC 474, Study Guides, Projects, Research of Engineering

Partial preview of the text

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
  • 5 1 Res-Cer,RAD,5%,22,1/4W R
  • 6 1 Res-Cer,RAD,5%,4.7k,1/4W R
  • 7 1 Res-Cer,RAD,5%,3.9k,1/4W R
  • 8 1 Pot.,5%,20k,1/4W R
  • 23 14 Cap-Cer,X7R,RAD,10%,.1uF/50V C5,C10-C16,C19-C22,C
  • 24 1 Cap-Cer,X7R,SMD,10%,.1uF/50V C
  • 25 1 Cap-Cer,X7R,RAD,10%,.01uF/50V C
  • 26 1 Cap-Cer,X7R,RAD,10%,1.0uF/50V C
  • 28 2 Cap-Cer,X7R,RAD,10%,470pF/50V C3,C
  • 29 1 Cap-Cer,X7R,RAD,10%,330pF/50V C
  • 30 1 Cap-Cer,X7R,RAD,10%,10uF/50V C
  • 31 1 Cap-Cer,X7R,RAD,10%,.003uF/50V C
  • 33 2 Cap-Elec,FC,RAD,20%,100uF/50V C7,C
  • 34 1 Cap-Elec,FC,RAD,20%,4.7uF/50V C
  • 35 1 Diode-Schottky,1N5817,D0-204AL D
  • 36 1 Ind.-Power,10%,22uH/50V L
  • 40 4 Battery,AA-alkaline,1.5volt B1-B
  • 41 1 Buzzer-piezo,4.1kHz,12volt SP
  • 42 1 Crystal,16MHz X
  • 43 1 Connector,RS232,9-pin,DB9 J
  • 44 1 Connector,BDM,10-pin J
  • 45 1 IC-Dig,MC9S12DP256B,uP,112LQFP U
  • 46 1 IC-Dig,Temp. Sens.,MAX6662,8SO U
  • 47 1 IC-Dig,A/D, ADS1100, 6SOT23 U
  • 48 1 IC-An,Press. Sens.,MPX5100,6IL U
  • 49 1 IC-An,DC-DC Conv.,MAX710,16SO U
  • 50 1 IC-An,Reset-LVD,MC34164,TO-92 U
  • 51 1 IC-An,Analog switch,MAX4626,5SOT23 U
  • 52 1 IC-Dig,RS232 Transc.,SP232A,16SO U
  • 53 1 Keypad,16-key,GH5010 (96BB2-056-F) KP
  • 54 1 LCD, 16x2 disp.,LM162 LCD
  • 55 2 Res-Cer,RAD,1%,2k,1/4W R9,R
  • 56 1 4-AA Battery holder w/switch SW