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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/31/05 10:25
Read: times


 
#86186 - The whole story..............and problem
Responding to: ???'s previous message
Hello all,

I connected a pair is 0.1uf caps across the 5V input to the digital cctry, and still it stalls.
What gets me is the fact that it stalls in the same place and the same outputs are sent high although they have not been set anywhere in my code.
My code is simple, it just sets 7 inputs high 1second after the other and then clears all 7 before restarting the loop.
I am driving 7 12V relays which in turn switch 7 110V pnumatic pistons.
The stall normally occurs after the first 2 pistons are energised, at this point 3 other outputs are set high. These outputs are not mentioned anywhere in my code.
The stall happends randomly, sometimes after 2 cycles and other times after many, many cycles but the same outputs are set!

Below, please find my code, although I doubt that this is the problem!

There is another board designed by someone else that uses a PIC and the same input and output cctry as I am using including the 0.1 uf caps, this board however is powered by a 12V power supply and not the 110V switchmode that I am using.
This board seems to work fine without any hitches.

Now I am really stressing, I cant seem to fix this!

Thank you for your time.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
HUND EQU 100
COUNT EQU -10000
count1 equ -10000


ORG 0
LJMP MAIN
;ORG 0003H
;LJMP EX0ISR
;ORG 0013H
; LJMP EX1ISR

MAIN: mov 8EH,#00010001B

MOV IE,#00000000B
MOV TMOD,#00010001H
MOV IP,#00000001B

MOV P0,#00011111B
MOV P1,#0H
MOV P2,#01111111B; for test
MOV P3,#00001100B


notch0: MOV P1,#00000000B
CALL DELAYLOOP

SETB P1.1
SETB P1.0
CALL DELAYLOOP


SETB P1.3
SETB P1.2
CALL DELAYLOOP


SETB P1.4
CALL DELAYLOOP


SETB P1.5
CALL DELAYLOOP


SETB P1.6
CALL DELAYLOOP


LJMP NOTCH0





;*****************************************


;******************************************************************
DELAYLOOP: MOV R7,#HUND
ENTER: MOV TH0,#HIGH COUNT
MOV TL0,#LOW COUNT
SETB TR0
DELAY: JNB TF0,DELAY
CLR TR0
CLR TF0
DJNZ R7,ENTER
RET
;******************************************************************






List of 30 messages in thread
TopicAuthorDate
Stalling uC            01/01/70 00:00      
   Stalling?            01/01/70 00:00      
   it's noise            01/01/70 00:00      
   Why the new Thread?            01/01/70 00:00      
   WDT Palliative only            01/01/70 00:00      
   The whole story..............and problem            01/01/70 00:00      
      What have you actually done so far?            01/01/70 00:00      
      Real code?            01/01/70 00:00      
   Compiled your code. Errors shown below            01/01/70 00:00      
      Nicely formatted code!            01/01/70 00:00      
      Update, and also Code in correct format            01/01/70 00:00      
         One small step            01/01/70 00:00      
   Some findings            01/01/70 00:00      
      Now it's becoming clearer            01/01/70 00:00      
      5V regulator            01/01/70 00:00      
         ground bounce            01/01/70 00:00      
            [OT] 110V to 220V            01/01/70 00:00      
               Hmm            01/01/70 00:00      
               More [OT] But shocks hurt more            01/01/70 00:00      
               110V in Latin America            01/01/70 00:00      
                  picky picky            01/01/70 00:00      
                  110V in Latin America            01/01/70 00:00      
   More info & an ans to Russell's question            01/01/70 00:00      
      Picture Posting            01/01/70 00:00      
   New Findings!!!            01/01/70 00:00      
      find the following            01/01/70 00:00      
   Update & Stable supply network            01/01/70 00:00      
      I think there are still problems            01/01/70 00:00      
      patching            01/01/70 00:00      
         Update            01/01/70 00:00      

Back to Subject List