/*
 * test program for adc library 
 * author 
 */

#include <bsplib.h>

void main(void)
{
    uInt8_t conv_data;
    
    /* system init */
    adc_init();
    led2_init();
    led3_init();
    led4_init();
    led5_init();
    
    /* test application */
    while (1) {
        
        conv_data = adc_read();
        
        LATA = (uInt8_t) (conv_data & 0xF0);

        Nop();
    }      
}
