/*LOOPCI.C - LOOP PROGRAM USING INTERRUPTS */ #include "aiccomc.c" /*AIC comm routines */ int AICSEC[4] = {0x162C,0x1,0x4892,0x67}; /*AIC data for Fs = 8 kHz */ int data_in, data_out; /*declare global variables*/ void c_int05() /*XINT0 interrupt routine */ { data_in = UPDATE_SAMPLE(data_out); /*update sample to SP0 AIC*/ data_out = data_in; /*loop input to output */ } main() { AICSET_I(); /*configure SP0 of AIC */ for (;;); /*wait for interrupt */ }