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 12:20
Read: times


 
#86192 - Update, and also Code in correct format
Responding to: ???'s previous message
Thank you,
Russell, Erik, Andy and Charles!

Below is my code in, I hope, the correct format.

To answer Andy's question, I have a parallel pair of 0.1uf caps across the entire 5V input between 5V and Ground.
I did not yet connect them across each IC as the PCB board was already designed and populated by someone else, so I tried to solve the problem on the already built board, without having to design a new one, the people here are very worried about cost!

I did however run the PIC cct of the power supply and when my cct stalls the PIC board runs as normal, even though that both have the 0.1uf cap network asross the supply inputs.

Charles, Thank you for taking the time to compile my code, am I correct by saying the error that is spoken off is on line 57
" MOV TMOD,#00010001H "
I will fix this and include the END, but do you feel that the code is in any the problem?
Because as I mentiones everything runs as it is supposed to on the test bench co0nnected to a 12V supply?

Again, thank you all for your time, I really appreciate it!

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,#00010001B
        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
;******************************************************************

end





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