AN1921 Motorola / Freescale Semiconductor, AN1921 Datasheet - Page 9

no-image

AN1921

Manufacturer Part Number
AN1921
Description
AN1921 General DSP568xx Interface Examples using the Embedded SDK
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
Code Example 2. InitTLC2543.c
Figure 6. Integrated Pressure and TLC2543 Connections on Prototype Board
1.0 F
/*
#include "io.h"
#include "fcntl.h"
#include "bsp.h"
#include "spi.h"
#include "stdio.h"
#include "string.h"
#include "port.h"
#include "timer.h"
#include "types.h"
#include "math.h"
void main(void)
{
0.01 F
InitTLC2543.c - Procedure used to test interface to TLC2543 -
12-bit
inputs. The DSP56824’s SPI0 port is employed. The software is
developed for the DSP56824 EVM environment. Jan 26, 2001*/
spi_sParams
int
struct timespec OneMillisecond = {0,1000000};
UWord16
static UWord16
Word16
static Word32
static Word16
Power Supply
Baro. Pressure
Transducer
MPX4114A
5 Volt
Interface Examples Using the Embedded SDK
analog-to-digital converter with serial control and 11 analog
i, ii;
ADcmd = 0x8c00;
750
SpiParams;
SPIMaster;
sum, mean;
Vcount;
Datain, DataStore[70];
0.33 F
Interfacing to Serial Devices Using the SPI Port
TLC2543
1
I/O CLOCK
DATA OUT
DATA IN
CS (SS)
9

Related parts for AN1921