AN1921 Motorola / Freescale Semiconductor, AN1921 Datasheet - Page 19

no-image

AN1921

Manufacturer Part Number
AN1921
Description
AN1921 General DSP568xx Interface Examples using the Embedded SDK
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
The IntFaceBaro.c code’s header files includes two new header files: lcd.h and TLC2543.h, which
provide the defines necessary to ease the use of the LCD/keypad and the TLC2543 ADC chip. The
new header files are shown in
Set up the serial and SPI0 ports as in earlier examples. A message is displayed on the LCD to indicate
the demo, and asks the user for input. In this case, to insert a pressure adjustment, input an “A” and “E”
(=CR); for keypad key assignment values, see
procedure BaroAdj() requests the pressure adjustment; BaroAdj() works only for positions at or above
sea level. The adjustment value is added to the measured value.
determining this barometric pressure adjustment. If the user selects any other key, the procedure
displays the barometric pressure from the MAX4115A without adjustment.
The barometric pressure results appear on the display. Since the barometric pressure changes rather
slowly, you can show a rapid change of pressure by using a straw to blow into the tube-like extension
that projects perpendicular to the MAX4115A cylindrical body. While blowing, you should see the
barometric pressure value change on the LCD. Using the straw to blow across the pressure device’s
tube should decrease the pressure, an example of theVenturi Effect.
}
icount = 0;
while (true)
{
}
iarray[icount] = 0;
sscanf(iarray, "%d", &temp );
*padj = (Word32)temp;
read( Uart, &iarray[icount], 1 );
if ( iarray[icount] == CR[0] ) break;
if ( (iarray[icount] >= ’0’) && (iarray[icount] < ’9’))
{
}
Interface Examples Using the Embedded SDK
write( Uart, &iarray[icount], 1 );
icount++;
Appendix C.
Figure
4. Another screen is generated when the
Integrating Devices With the EVM Board
Appendix D.
provides information on
19

Related parts for AN1921