2007-02-21 14:53:24 -05:00
|
|
|
#include <pic.h>
|
|
|
|
#include "config.h"
|
|
|
|
#include "serial.h"
|
|
|
|
#include "dac.h"
|
|
|
|
|
|
|
|
__CONFIG(CONFIGWORD);
|
|
|
|
|
|
|
|
void main(void) {
|
|
|
|
CMCON = 7;
|
2007-02-26 17:36:28 -05:00
|
|
|
GIE = 1;
|
2007-02-21 14:53:24 -05:00
|
|
|
|
|
|
|
serial_init();
|
|
|
|
dac_init();
|
|
|
|
|
|
|
|
while(1)
|
|
|
|
{
|
|
|
|
dac_set(serial_get());
|
|
|
|
}
|
|
|
|
}
|