Welcome to AN624 for the Microchip PIC14000

			*** THE FOLLOWING IS THE FILES WHICH MAKE UP THE MPLAB PROJECT ***

DEM14K.ASM--Build file for PIC14000 data acquisition app note.

P14000.INC--This header file defines configurations, registers, and other useful bits of
information for the PIC14000 microcontroller.  These names are taken to match the 
data sheet as closely as possible.  

COMMON.H--This module defines the general purpose macros and equates.

RMAP.H--This module defines the general purpose file register allocation for 
variables.

MHDEF.H--This module defines macros and equates for math routines
module math.asm.

PINMAP1.H--This module defines the pin mapping (signal name to port bits)
for PIC14000 demo.

MKSTART.ASM--This module contains the start vector and interrupt vector originations.

MKISR.ASM--This routine services interrupts.

MKINIT.ASM--This is the power on initialization function and main loop.

ADINIT2.ASM--This module initialzes the A/D hardware and RAM variables. It is
designed to run once after power up.

ADTASK.ASM--This module controls the operation of the A/D converter.

DELAYS.ASM--Software variable delay module.

HWDELAY.ASM--This module sets up and runs the ADtimer for use as a 8mS hardware delay.

CLTASK.ASM--This module converts the counts from the ADTask to Engineering units
for each sequence(1-16).

LDSV4A.ASM--This module loads floating point accumulator A with contents of registers starting
at pointer FSR.

LDSV4B.ASM--This module loads floating point accumulator B with contents of registers starting
at pointer FSR.

MATH.ASM--PIC16 32 BIT FLOATING POINT LIBRARY     VERSION 1.18

ADSCHTAB.ASM--This module defines the sequence of A/D operation performeds by ADTask.

CVPHYS.ASM--This task converts A/D voltage values to the physical (amps, Kelvin, volts)
that they represent and transmits these values via RS232.

CMTASK.ASM--Initial communications task which will be used to output data.
Port_c bit 6 is used as the output pin.
The data will be transmited a bit at a time, LSB first. 'Bitdelay' provides
the bit delay time. The data format is start bit, 8 data bits, and 1 stop bit.

USERROM.ASM--Tables that store the user programmable variables in ROM.

CALROM.ASM--Table that defines the addresses for the factory calibration variables in ROM.

			*** OTHER INFORMATION ***

A simple Windows program which displays current, two different voltages,
and temperature is also included.  This is in a separate directory, and contains a setup
utility which can be invoked from File Run under the Windows Program Manager.

When running this application note demo, you will notice that the current reading is not
zeroed, nor is the VBat reading scaled properly.  These are code enhancements that were
not done due to numerous requests for AN624 availability.

Also, a schematic of the demo circuit which was built for AN624 is included.  It was
created under OrCad ESP V4.10.

			*** TWO ADDITIONAL CODE SEGMENTS ARE ALSO INCLUDED ***

1) A code segment which shows a minimal operation of the A/D.  This is an easy way to get
started operating the PIC14000 A/D as it is different than any A/D technology on
previous PIC devices.

2) A code segment which performs a simple repeating min/max sweep of the DAC or programmable
reference from RCO/LDACA (pin 19) on the PIC14000.  This is another good starting point
for a user to become accustomed to operating this peripheral.

			*** ASSEMBLY AND PROGRAMMING INFORMATION ***

All code included on this diskette was created and debugged using MPLAB Rev 2.20.00

All prototype parts programmed for these applications and code segments had the 
following fuse selections:

OSC-Internal
WDT-Off
CP-Off





