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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/04/02 12:46
Read: times


 
#31981 - RE: ADCs (max1112 and TI0838) Code check?
Jeff:

I looked over your code and see a small problem.

A snippett of your code:
MOV R6, #8 

Extra_clocks: 
MOV R6, 6 
SETB P1.0 
CALL Time_Delay_Very_Short 
CLR P1.0 
CALL Time_Delay_Very_Short 
DJNZ R6, Extra_Clocks 


Needs to be changed to:
MOV R6, #6      ;;#8 wrong count

Extra_clocks: 
;; MOV R6, 6   this line is questionable 
SETB P1.0 
CALL Time_Delay_Very_Short 
CLR P1.0 
CALL Time_Delay_Very_Short 
DJNZ R6, Extra_Clocks 


---------
Also - Your control byte value indicates that you selected external clocking so make sure that you are not clocking too fast through the last two clocks of the control byte so the Tacq time from the MAX1112 data sheet is met.

Also - On the MAX1112 data sheet they indicate to make sure the total converion time does not exceed 1 ms to avoid excessive T/H droop. (See the Simple Software Interface section).
Good Luck
Mike Karas






List of 6 messages in thread
TopicAuthorDate
ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      
RE: ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      
RE: ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      
RE: ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      
RE: ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      
RE: ADCs (max1112 and TI0838) Code check?            01/01/70 00:00      

Back to Subject List