Posted: Mon Dec 03, 2007 3:39 pm Post subject: Why this Function don't work?
Dear Friends
I have written code for read NRam memory and it work. After I have wrapper it in a function but with my surprise it don't work.
Can you help me to discovery why? Thanks.
working code
call Set_Address(3)
waitms 1
CE = Attivato
waitms 1
OE = Attivato
waitms 1
print Get_Byte()
waitms 1
OE = Disattivato
CE = Disattivato
NOT WORKING CODE
Declare Function Read_Byte(Byval Indirizzo as Integer) as byte
....
print read_byte(3)
....
Function Read_Byte(ByVal Indirizzo as Integer) as byte
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum