/* pcmad.c Copyright 1996 WinSystems. All Rights Reserved */
/***************************************************************************
*
*
Project
: PCM-AD12
*
*
Purpose
: Test, Example code, calibration code
*
*
Revision
: 1.02
*
*
Date
: January 15, 1996
*
*
Author
: Steve Mottin
*
*****************************************************************************
*
*
Changes :
*
*
Revision
Date
Desciption
*
--------
------
---------------------------------------------
*
1.00
10/22/95
Original
*
1.01
01/15/96
Removed swap code for REV A board deficiency.
*
1.02
02/07/96
Clean-up and comments for release.
*
******************************************************************************
*/
/* Permission is hereby granted to users of the Winsystems PCM-A/D-12 and
PCM-A/D-16 boards to freely use this source code as-is or in any user
modified form for personal or commercial use. WinSystems provides this
sample source code on an as-is basis and makes no warranty as to fitness
of purpose. In no event shall WinSystems be liable for consequential,
incidental or special damages of any kind through the use of this
software source code or works derived thereof.
*/
#include <stdio.h>
#include <dos.h>
#include <conio.h>
/* The BASE address of the board is assumed to be at 110H. Change this define
to change the base address.
*/
#define AD_BASE 0x110
/* The interrupt used is assumed to be IRQ5. The vector for IRQ5 is 8 + 5 = 13.
The mask for IRQ5 is (1 << 5) = 0x20. Change these two appropriately for a
different interrupt.
*/
#define IRQ_VECTOR 0x0d
#define IRQ_MASK 0x20
/* Function prototypes for functions used in this module */
void wait_complete(void);
void interrupt (*old_isr)();
void interrupt ad_isr();