Datasheet
Figure 25. C Language Program to Log Data from MAX121 Conversions
Project : Maxim 121 to TMS320C30 Application Note
File: readdata.c
Purpose: This file contains a PC based program used to read data from the TMS320C30 Evaluation Module (EVM) and display the
data on the PC screen.
This file may be compiled with either the Microsoft C Compiler of Borland C++ Compiler.
Tabstops: 4
$Log : $
Edit History:
Date By Description
------ ---- ---------------
09/24/92 KHB Initial Creation
#include <stdio.h> /* for printf( ) */
#include <conio.h> /* for kbhit( ), getch( ), and inpw */
#define VERSION_STAMP 1
void
main(void)
{
int x;
int value;
int quit = 0;
int min = 32767;
int max = -32768;
printf( “\n”) ;
printf( “TMS320 EVM Data Display Program - Version %d\n”, VERSION_STAMP) ;
printf( ”m = reset Max/Min values, ESC to quit\n\n” )`
/*#*********************************************************************************************************************
*********************************************************************************************************************#*/
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
MAX121 308ksps ADC with DSP Interface and 78dB SINAD
www.maximintegrated.com
Maxim Integrated
│
21