C
comm_eng2
Guest
Jeg bruker isd4004 gjennom pic16f877 i min oppgradering prosjektet.Jeg sender strøm opp og slå kommandoer til isd4004 og reagerer med kommandoer (Audout og Audin pins spenning = 1.2V).problemet mitt er å sende recoding og avspilling kommandoene er det ingen svar fra IC.
Mine spørsmål er: --
we know isd4004 has three bytes one control byte and two for address .how can i form addresses to the isd4004 or is there any specific form for addressing?
1 -
vi vet isd4004 har tre bytes en kontroll byte og to på adressen. Hvordan kan jeg form adresser til isd4004 eller er det noen spesiell form for adressering?
My input is from function generator and im seeing output throuh oscilliscope, is there any problem using this?
2 -
Min inngang fra funksjon generator og im se utdataene throuh oscilliscope, er det noe problem å bruke dette?
Im bruker picbasic pro språk og i vedlagt kildefilen.Im venter svar så snart som mulig"""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""'
Inkluder "modedefs.bas"
DEFINE OSC 20
Symbol DATA_PIN = PORTc.5 "Display Data RB6
Symbol CLK_PIN = PORTc.3 "Vis klokke RB7
makt var byte
REC var byte
adressen var ordet
stp var byte
spille var byte
setplay var byte
setrec var byte
REC =% 10110000
setrec =% 10100000
strøm = $ 20
adresse = $ 000000010011001
stp =% 00110000
spille =% 11110000
setplay =% 11100000
'---------------------------------------------- Flashing
Oppstart:
høy portb.3
pause 500
lav portb.3
pause 500
høy portb.3
pause 500
lav portb.3
pause 500
goto Chek
'------------------------------------------------- Key sjekk
Chek:
pause 5
høy porta.5
lav portb.2
lav portb.3
hvis portb.0 == 1 deretter
goto rec1
ellers
hvis portb.1 == 1 deretter
goto play2
ellers
goto Chek
endif
endif
'------------------------------------------------ Recording kommandoer
rec1:
lav porta.5
pauseus 5
'---------------- Oppstart 1 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 50
høy porta.5
pauseus 3
lav porta.5
pauseus 3'----------------- Oppstart 2 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 3
'----------------- OPPTAK Adresse og COMAND bytes ----
HIGH portb.2
SHIFTOUT PORTc.5, PORTc.3, 1, [addres/16, setrec]
pauseus 3
høy porta.5
pause 15000
lav porta.5
pauseus 5'----------------- STOP COMMAND BYTE -----
SHIFTOUT PORTc.5, PORTc.3, 1, [stp / 8]
goto Chek'----------------------------------------------- Playback kommandoer
play2:
lav porta.5
pauseus 5
'------------------- Oppstart 1 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 5SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 5
'------------------- AVSPILLING COMMAND -----
høy portb.3
SHIFTOUT PORTc.5, PORTc.3, 1, [addres/16, setplay / 8]
høy porta.5
pause 15000
goto Chek
"""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""
Mine spørsmål er: --
we know isd4004 has three bytes one control byte and two for address .how can i form addresses to the isd4004 or is there any specific form for addressing?
1 -
vi vet isd4004 har tre bytes en kontroll byte og to på adressen. Hvordan kan jeg form adresser til isd4004 eller er det noen spesiell form for adressering?
My input is from function generator and im seeing output throuh oscilliscope, is there any problem using this?
2 -
Min inngang fra funksjon generator og im se utdataene throuh oscilliscope, er det noe problem å bruke dette?
Im bruker picbasic pro språk og i vedlagt kildefilen.Im venter svar så snart som mulig"""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""'
Inkluder "modedefs.bas"
DEFINE OSC 20
Symbol DATA_PIN = PORTc.5 "Display Data RB6
Symbol CLK_PIN = PORTc.3 "Vis klokke RB7
makt var byte
REC var byte
adressen var ordet
stp var byte
spille var byte
setplay var byte
setrec var byte
REC =% 10110000
setrec =% 10100000
strøm = $ 20
adresse = $ 000000010011001
stp =% 00110000
spille =% 11110000
setplay =% 11100000
'---------------------------------------------- Flashing
Oppstart:
høy portb.3
pause 500
lav portb.3
pause 500
høy portb.3
pause 500
lav portb.3
pause 500
goto Chek
'------------------------------------------------- Key sjekk
Chek:
pause 5
høy porta.5
lav portb.2
lav portb.3
hvis portb.0 == 1 deretter
goto rec1
ellers
hvis portb.1 == 1 deretter
goto play2
ellers
goto Chek
endif
endif
'------------------------------------------------ Recording kommandoer
rec1:
lav porta.5
pauseus 5
'---------------- Oppstart 1 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 50
høy porta.5
pauseus 3
lav porta.5
pauseus 3'----------------- Oppstart 2 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 3
'----------------- OPPTAK Adresse og COMAND bytes ----
HIGH portb.2
SHIFTOUT PORTc.5, PORTc.3, 1, [addres/16, setrec]
pauseus 3
høy porta.5
pause 15000
lav porta.5
pauseus 5'----------------- STOP COMMAND BYTE -----
SHIFTOUT PORTc.5, PORTc.3, 1, [stp / 8]
goto Chek'----------------------------------------------- Playback kommandoer
play2:
lav porta.5
pauseus 5
'------------------- Oppstart 1 -----
SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 5SHIFTOUT PORTc.5, PORTc.3, 1, [strøm / 8]
pause 100
pauseus 3
høy porta.5
pauseus 3
lav porta.5
pauseus 5
'------------------- AVSPILLING COMMAND -----
høy portb.3
SHIFTOUT PORTc.5, PORTc.3, 1, [addres/16, setplay / 8]
høy porta.5
pause 15000
goto Chek
"""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""