Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/03 19:32
Read: times


 
#59481 - problem with AD7893-10
Hi!
How communicate betwen 8051 and A/D converte AD7893-10?
This kode doesn't work OK.

init: setb conv
mov tmod,#00010001b
setb ren
mov ie,#8ah

measure:
acall delay
mov r1,#0
mov r2,#0
clr conv
setb conv
nop
nop
push acc
push psw
call in_data
mov r1,a
call in_data
mov r2,a
mov 2ah,r1 ;high byt
mov 29h,r2 ;low byt

acall UbinFl1
acall FlBCD

acall convert
pop psw
pop acc
setb tr1

jmp measure

in_data:
jnb ri,$
mov a,sbuf
clr ri
ret

List of 2 messages in thread
TopicAuthorDate
problem with AD7893-10            01/01/70 00:00      
   RE: problem with AD7893-10            01/01/70 00:00      

Back to Subject List