Richard, Thanks for your help. By altering the addresses as you say, now I can record 100seconds each in 3 divisions. Earlier it was only 60 seconds. I think I have to try with lower sampling rate to get full rated time of the IC. Now I selected 6.4 Khz. I tried to read from APR6008 but the routine didn=92t worked. I think I can correct the mistake. The another problem is audio quality. Input audio is taken from PC Sound card=92s output. To limit the amplitude of the signal, simple resistor network is used as given below. L in - -------|__47K_____|-------| | |-------|__1K___|-------|GND | R in -------|___47K____|--------| | | OUT But there is noise in the output from IC. I gave separate earth to both analogue and digital circuits. Both tracks will only coincide near power supply. Any idea to reduce the noise? Thanking you, Victor On Mon, Dec 7, 2009 at 5:00 PM, Richard Seriani wrote: > Victor, > > The datasheet shows only 640 sectors, so your range is only 0x280, not > ox3ff. If you want to split that into three portions, they would have to > start at 0x000, 0x0d5, and 0x1ab. > > You may want to look at the Current Device Status (CDS) Overflow and > Illegal > Address flags to to help you see if either of those is a problem. > > Good luck. > > Richard > > > ----- Original Message ----- > From: "VICTOR PV" > To: > Sent: Sunday, December 06, 2009 11:34 PM > Subject: [PIC] Audio recording in APR6008 chip With PIC16F877A. > > > Hi all > > I am developing an automatic bell system which records audio in > APR6008 and plays at predetermined time. The controller used in PIC16F877= A. > I recorded audio in the APR6008 and played back. The problem is when > recording time increases early recorded area replaces with new data. > > The datasheet of APR6008 shows that there is 10bits address for > the memory(out of total 15 bits, 5 bits reserved for future use.) So my > plan > was to divide total 3FF range Divided into three portions. Since APR6008 > can > store 8min audio, now each section will get 160 seconds. The starting > addresses for each section selected as 0x 000, 0x155, 0x2AA. I wrote code > with this addresses. Then address 0x2AA didn=92t accepted by the device. > Other > two portions recorded but over lapped. This problem is confusing me for > some > days. If any body have idea please help. Thanks in advance. > Victor. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist