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

Back to Subject List

Thread Closed: Drifted off-topic

???
05/16/03 20:16
Read: times


 
#45694 - For Erik Malund
Responding to: ???'s previous message
ok,

erik malud you think that i come on forum just to do jokes ..i think you have no idea what kind of condition iam in these days ...deisgning software for pulse dialing..



1) example No.1

LED Blinking Code:
Logic Low = LED ON
Logic high = LED OFF

Led is connected at P1.0 with 330 Ohms Register.

Using 12 Mhz Crystal ,

you did don't mentioned how should LED blink...so here is a rough code:-

ORG OOH
SJMP MAIN

ORG 030H ;skipping the intreuppt vector address

MAIN:
CLR P1.0 ;LED GOES ON
CALL DELAY
SETB P1.0
CALL DELAY
SJMP MAIN


; Delay works on nested loop concept,
250 x200 x 5 = 250000 micro-seconds delay On and for the same time off.

DELAY:
MOV R0,#5D
L2: MOV R1,#200D
L1: MOV R2,#250D
DJNZ R2,$
DJNZ R1,L1
DJNZ R0,L2
RET
END

2) Example No.2
Running Light thing which you might have seen in the famous Knight Rider Car Tv program.


; 8 leds connected from p1.0 to p1.7 with 330 ohms
; now firstly leds will run from left to right and then right to left.
; using the same delay as above of if you say i will change it.

ORG 00H
JMP MAIN


ORG 030H
MAIN:
MOV A,#11111110B
AGAIN: MOV P1,A
RL A
CALL DELAY
CJNE A,#01111111B,AGAIN
AGAIN2:
MOV P1,A
RR A
CALL DELAY
CJNE A,#11111110B,AGAIN2
SJMP AGAIN

DELAY:
MOV R0,#5D
L2: MOV R1,#200D
L1: MOV R2,#250D
DJNZ R2,$
DJNZ R1,L1
DJNZ R0,L2
RET
END


3) You were asking for one led blink...here is the program for blink 7 leds at a time:-


ORG 00H
JMP MAIN


ORG 030H
MAIN:
MOV A,#00000000B ; ALL LEDS ON DATA
AGAIN: MOV P1,A ; 8 LEDS GOES ON
CPL A
CALL DELAY
SJMP AGAIN

DELAY:
MOV R0,#5D
L2: MOV R1,#200D
L1: MOV R2,#250D
DJNZ R2,$
DJNZ R1,L1
DJNZ R0,L2
RET
END

USING INTERRUPTS BLINKING ONE LED AFTER 50N MICRO-SECONDS:-

ORG 00H
LJMP MAIN
ORG 000BH ; TIMER 0 VECTOR ADDRESS
LED:
CPL P1.0
RETI
ORG 030H
MAIN:
MOV TMOD,#02H ; TIMER 0 RELOAD MODE
MOV TH0,#-50D ; 50 MICRO-SECONDS DELAY
SETB TR0
MOV IE,#82H ; ENABLE TIMER 0 INTERRUPT
SJMP $
END


what else i have to do to prove that iam a hard working guy and this pulse dialing is really getting on my head











List of 87 messages in thread
TopicAuthorDate
DMTF and Pulse Dialing            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      RE: DMTF and Pulse Dialing            01/01/70 00:00      
         RE: DMTF and Pulse Dialing            01/01/70 00:00      
            RE: DTMF and Pulse Dialing            01/01/70 00:00      
               RE: DTMF and Pulse Dialing            01/01/70 00:00      
            RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
               RE: DMTF and Pulse Dialing -- Dan            01/01/70 00:00      
   Just one small example            01/01/70 00:00      
   RE: DMTF and Pulse Dialing-Waqar            01/01/70 00:00      
   RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
      RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
         RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
   forum people            01/01/70 00:00      
   only steps i need            01/01/70 00:00      
      RE: only steps i need            01/01/70 00:00      
         RE: only steps i need            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      really its not happening            01/01/70 00:00      
         RE: really its not happening            01/01/70 00:00      
            My Objective in Clear Words.Hal Albach..            01/01/70 00:00      
         does it work, or not?!?!            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
   other things            01/01/70 00:00      
      RE: other things            01/01/70 00:00      
         RE: other things            01/01/70 00:00      
            RE: other things            01/01/70 00:00      
               RE: other things            01/01/70 00:00      
      RE: other things            01/01/70 00:00      
         RE: a suggested condition for Waquar            01/01/70 00:00      
            For Erik Malund            01/01/70 00:00      
               RE: For Erik Malund            01/01/70 00:00      
   People try to understand            01/01/70 00:00      
   people try to understand            01/01/70 00:00      
      RE: people try to understand            01/01/70 00:00      
         RE: Michael            01/01/70 00:00      
      RE: people try to understand            01/01/70 00:00      
         RE: people try to understand            01/01/70 00:00      
            try to read it with soft heart            01/01/70 00:00      
               RE: Software Filter            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      come on iam doing this            01/01/70 00:00      
         RE: come on iam doing this            01/01/70 00:00      
    where are you sir erik malund            01/01/70 00:00      
      RE: where are you sir erik malund            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      RE: DMTF and Pulse Dialing            01/01/70 00:00      
      suggest some thing about this code            01/01/70 00:00      
         RE: suggest some thing about this code            01/01/70 00:00      
         RE: suggest some thing about this code            01/01/70 00:00      
   RE: Kai            01/01/70 00:00      
      RE: Hans / Kai            01/01/70 00:00      
         RE: Hans / Kai            01/01/70 00:00      
            RE: Hans / Kai            01/01/70 00:00      
               RE: Hans / Kai            01/01/70 00:00      
                  RE: Hans / Kai            01/01/70 00:00      
      RE: Kai            01/01/70 00:00      
         RE: Kai            01/01/70 00:00      
            RE: Kai            01/01/70 00:00      
               RE: Waqar            01/01/70 00:00      
         the most helpful one            01/01/70 00:00      
            RE: the most helpful one            01/01/70 00:00      
            RE: the most helpful one            01/01/70 00:00      
   software filtering advice needed            01/01/70 00:00      
      RE: software filtering advice needed            01/01/70 00:00      
         RE: software filtering advice needed            01/01/70 00:00      
            RE: software filtering advice needed            01/01/70 00:00      
      RE: software filtering advice needed            01/01/70 00:00      
         RE: software filtering advice needed            01/01/70 00:00      
            oh sorry michael            01/01/70 00:00      
         something is happening            01/01/70 00:00      
            RE: something is happening            01/01/70 00:00      
               i got the point            01/01/70 00:00      
                  RE: i got the point            01/01/70 00:00      
                     RE: i got the point            01/01/70 00:00      
                         Kai Klaas oscilloscope            01/01/70 00:00      
                           RE: Kai Klaas oscilloscope            01/01/70 00:00      
                           RE: oscilloscope            01/01/70 00:00      
   He's up to his old tricks again            01/01/70 00:00      
      RE: Waquar, Michael            01/01/70 00:00      
         RE: Waquar, Michael            01/01/70 00:00      
            RE: Waquar, Michael            01/01/70 00:00      
               RE: Waquar, Michael            01/01/70 00:00      
         erik malund..what happen to you            01/01/70 00:00      
      Donald Catto think before speaking            01/01/70 00:00      
         RE: Donald Catto think before speaking            01/01/70 00:00      

Back to Subject List