ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Wed May 02, 2012 10:49 am |
|
|
Hi,
They are both required. The "driver" contains functions that directly read and write to the external hardware (in this case an RTC), and the "test program" contains calls to these functions, and display routines to output the data.
I use the command line version of the PCM compiler with MPLAB IDE. I would create a working program using this code by placing both files inside the same directory, and then compiling the test program using the CCS compiler. It will automatically find the driver file (notice that it's referenced in the test program), and do everything necessary to make the block of code you would program into your PIC.
John |
|