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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/22/07 15:39
Read: times


 
#137764 - search found
Responding to: ???'s previous message
Dear all,
I found by goooooogle about circuit for reading floating probe for my project.
here is my circuit:


and here is my program:

;-----------------------------
LED_H BIT P1.7
LED_L BIT P1.6
FLOAT BIT P3.5
PROBE BIT P3.4
FLOAT_B BIT 00H

INIT:
SETB PROBE
SETB FLOAT
SETB LED_H
SETB LED_L
CLR FLOAT_B
LOOP:
LCALL FLOAT_CHK
JB FLOAT_B,LOOP
JNB PROBE,LOGIC_1
CLR LED_L
SETB LED_H
LJMP LOOP

LOGIC_1:
CLR LED_H
SETB LED_L
LJMP LOOP

FLOAT_CHK:
SETB FLOAT
LCALL DELAY
JB PROBE,NOT_FLOAT
CLR FLOAT
LCALL DELAY
JNB PROBE,NOT_FLOAT
SETB FLOAT_B
SETB LED_H
SETB LED_L
RET

NOT_FLOAT:
CLR FLOAT_B
CLR FLOAT
RET

DELAY:
MOV R1,#2
LD1:
MOV R2,#10
LD2:
MOV R3,#10
DJNZ R3,$
DJNZ R2,LD2
DJNZ R1,LD1
RET
;-----------------------------

please give correction if any.
thank and regard

hendry

List of 23 messages in thread
TopicAuthorDate
tri state input reading            01/01/70 00:00      
   tri-state            01/01/70 00:00      
   Reading TriState            01/01/70 00:00      
   Hi-Z reading            01/01/70 00:00      
   Logic Probe Concept            01/01/70 00:00      
      Window Comparator            01/01/70 00:00      
   Build Or Buy            01/01/70 00:00      
      Using Analogue Methods to test for Hi-Z            01/01/70 00:00      
         Spare ADC and DAC on your micro?            01/01/70 00:00      
   search found            01/01/70 00:00      
      Some mistake            01/01/70 00:00      
         100k resistor            01/01/70 00:00      
   An idea...            01/01/70 00:00      
      Fundamental Logic and Hi-Z impedance            01/01/70 00:00      
         Some thoughts on the tristate detection            01/01/70 00:00      
            not 'the first', but THE problem            01/01/70 00:00      
               Heisenberg            01/01/70 00:00      
                  agreed            01/01/70 00:00      
      thank you            01/01/70 00:00      

Back to Subject List