Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 26th August 2007, 02:50 PM   (permalink)
Default Need help ISD4002

Hi friends,

This is the first time i am writting here for your support and help about Chipcorder ISD4002.

I am making a project where i need to playback some recorded messages using ISD4002 IC.

I am using ATMEGA8 Microcontroller and connected the ISD4002 with the Microcontroller. The Play stop and Record commands are working fine and it is also reading the current pointer address too.

But when i record something it does not record and only play blank sound and only record blank.

Could you please provide me how icould cnnect my PC to input Wav file directly into ISD or using Microcontroller or what is the shematic to use Microphone.

regards,
Shan
zeeshan1978 is offline  
Old 23rd September 2008, 02:06 AM   (permalink)
Default

Hi,
I bought one and tried to run it, but still cannot work
Worse, actually i dont know how to debug it
Following is my code in Mikro C for recording
Code:
void main()
{
     ADCON1=0x06;  //RA5 Digital I/O
     TRISA=0x20;   //!RA5=SS: output for Chip Select
     TRISC=0x10;   //RC5:output SDO
                   //RC4: Input SDI
                   //RC3:output SCK
     Spi_Init();
     PORTA.F5=0; //!SS=0 chip enabled

     Spi_Write(0x20);   // Power up
     Spi_Write(0x00);
     Delay_ms(25);      //Tpud

     Spi_Write(0x20);   //Power  up
     Spi_Write(0x00);
     Delay_ms(50);      //2 x Tpud
     
     Spi_Write(0xB0);   //SETREC from location 0x00
     Spi_Write(0x00);
     
     Delay_ms(10000);   //delay 10s for recording
     
     Spi_Write(0x30);   //STOP
     Spi_Write(0x00);
     
     Delay_ms(50);      //Tstop;
}
http://s111.photobucket.com/albums/n...nt=isd4002.jpg



This is not my first time doing PIC and C. I have basic background using C for PIC16f877 (just some basic stuffs like keypad, LCD...)
The mikro C has built-in functions for SPI.
Actually, there is one thing I confused:
pin RA5/!SS/AN4 is used to select ISD4002--> it should be an digital output pin. But in datasheet, section9.1, it says that we have to set TRISA<5> which means RA5/!SS/AN4 will be a digital input.

Last edited by leejongfan; 24th September 2008 at 12:53 PM.
leejongfan is offline  
Old 24th September 2008, 02:58 PM   (permalink)
Default

Hello friend,

I think it is very long time i find finally how to work with the ISD4002. I am using BASCOM and it is working fine with me and i used in my project perfectly. If you need any help with BASCOM just write me back.

Regards,
Shan
zeeshan1978 is offline  
Old 24th September 2008, 03:12 PM   (permalink)
Default

Hi Shan,

Thanks a lot.
Could you please send me any materials of your project you keep. Although our projects are not very similar but I believe I can learn something from you
Thanks
leejongfan is offline  
Old 24th September 2008, 03:37 PM   (permalink)
Default

Quote:
Originally Posted by leejongfan View Post
Actually, there is one thing I confused:
pin RA5/!SS/AN4 is used to select ISD4002--> it should be an digital output pin. But in datasheet, section9.1, it says that we have to set TRISA<5> which means RA5/!SS/AN4 will be a digital input.
The RA5 pin should only be an input when the Pic is a slave, in this application the Pic is the master and so should control the slave select pin and RA5 should be an output.

Mike.
Pommie is online now  
Old 24th September 2008, 04:34 PM   (permalink)
Default

Quote:
Originally Posted by Pommie View Post
The RA5 pin should only be an input when the Pic is a slave, in this application the Pic is the master and so should control the slave select pin and RA5 should be an output.

Mike.
I've just changed. Still cannot work!
At least I think I should have something
leejongfan is offline  
Old 24th September 2008, 04:38 PM   (permalink)
Default

leejongfan,

I asked a few simple background questions that you did not answer.
How are we supposed to help, we can not read your mind.
Why should we help when you are so disrespectful!

Not angry just tired..
3v0 is offline  
Old 24th September 2008, 04:48 PM   (permalink)
Default

Quote:
* What is your background? Do you know C or understand the PIC you are using?
I have basic background in programming C for PIC such as LCD, Keypad, UART...
Quote:
* Is this your first micro contoller project?
Yes, it's my first project but not my project includes many small features
Quote:
* Do you have a debugger (ICD2 or PICkit2) that will allow you to step through the code. What is your programming setup?
I don't think I have such a thing. I use Mikro C to program and compile source code to .hex file, then use Winpic800 as Programmer
Quote:
* Can you verify that the SPI interface between the uC and isd4002 is working?
No
Quote:
* You will need to post all the code including the SPI code.
I used the built-in functions in Mikro C for SPI

Last edited by leejongfan; 24th September 2008 at 04:48 PM.
leejongfan is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:04 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker