- I do not know how to write a timer function in C to sample the wave file from the EEPROM at 8KHz to the DAC. - The PIC18F452 and both I2c devices have a frquecy of 400KHz. - As the DAC (MAX517) does not have a clk input to allow me to sample the data at 8KHz to the amplifier, therefore I need to write a PIC-C timer function. - Is there any sample source code for timer function for me to follow for MPlab C18 complier? Thank you. ----- Original Message ----- From: To: Sent: Sunday, March 07, 2004 2:53 AM Subject: Re: [PIC]:How to write timer function for PIC18F452? > 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 > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu