On Sun, 7 Mar 2004, Nicholas wrote: > I am using PIC18F452 Chip with two I2C devices (EEPROM + DAC). My wave file in the EEPROM has a sampling rate at 8KHz, 8bits. I need to send the wave file byte by byte from the EEPROM to the DAC. Can someone teach me how to write a timer function to sampling my wave file from 400KHz to 8KHz using PIC C language with MPlab C18 complier? What is it that you're having difficulty with? How to configure a timer to interrupt every 125 microseconds? What is the 400kHz? Your I2C bus speed? -- John W. Temples, III -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu