Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | need help on ISD 4004 !?!?!?!?!?

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

need help on ISD 4004 !?!?!?!?!? - eng_mohamad86 - Apr 17 11:17:36 2008

HI,

I'm doing my graduation project now on smart home and as a part of my
project I've to get a voice confirmation for some orders done using
the ISD4004 and the PIC16F877 microcontroller.
I've read the data sheet, alot of application forms & searched alot
of websites for any help but I couldn't find any thing.
I tried many shemes and programs but it was of no help. finally I
wrote a programe that seems to give me some response with the IC but
not the desired one which is recording and playing back the messages.
the programe below is the one I wrote.
So could any one help me on my prject ? ? ? ? ? ? ?

'*******************************************************************
'***************************ISD4004 Test****************************
'*******************************************************************

'
Include "modedefs.bas"

DEFINE OSC 20
Symbol DATA_PIN = PORTc.5 'Display Data is RB6
Symbol CLK_PIN = PORTc.3 'Display CLOCK is RB7
power var byte
rec var byte
addres var word
stp var byte
play var byte
setplay var byte
setrec var byte

rec=%10110000
setrec=%10100000
power=$20
addres=$000000010011001
stp=%00110000
play=%11110000
setplay=%11100000

'---------------------------------------------- Flashing
start:
high portb.3
pause 500
low portb.3
pause 500
high portb.3
pause 500
low portb.3
pause 500
goto chek

'------------------------------------------------- Key check
chek:
pause 5
high porta.5
low portb.2
low portb.3
if portb.0==1 then
goto rec1
else
if portb.1==1 then
goto play2
else
goto chek
endif
endif
'------------------------------------------------ Recording commands
rec1:

low porta.5
pauseus 5
'----------------POWER UP 1-----
SHIFTOUT PORTc.5, PORTc.3, 1,[power/8]
pause 50
high porta.5
pauseus 3
low porta.5
pauseus 3
'-----------------POWER UP 2-----

SHIFTOUT PORTc.5, PORTc.3, 1,[ power/8]
pause 100
pauseus 3
high porta.5
pauseus 3
low porta.5
pauseus 3

'-----------------RECORDING Address and COMAND BYTEs----
HIGH portb.2

SHIFTOUT PORTc.5, PORTc.3, 1,[addres/16,setrec]
pauseus 3
high porta.5

pause 15000

low porta.5
pauseus 5

'-----------------STOP COMMAND BYTE-----

SHIFTOUT PORTc.5, PORTc.3, 1,[stp/8]

goto chek
'----------------------------------------------- Playback commands
play2:
low porta.5

pauseus 5
'-------------------POWER UP 1-----
SHIFTOUT PORTc.5, PORTc.3, 1,[ power/8]
pause 100

pauseus 3
high porta.5
pauseus 3
low porta.5
pauseus 5
SHIFTOUT PORTc.5, PORTc.3, 1,[ power/8]
pause 100
pauseus 3
high porta.5
pauseus 3
low porta.5
pauseus 5

'-------------------PLAYBACK COMMAND-----
high portb.3
SHIFTOUT PORTc.5, PORTc.3, 1,[addres/16,setplay/8]
high porta.5
pause 15000
goto chek

'*****************************************************************
'*****************************finish******************************
'*****************************************************************

I hope I will hear from you as soon as possible

my mail: e...@yahoo.com
m...@yahoo.com

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )