SlideShare a Scribd company logo
REGISA                 EQU                0X20                       RETARDO CON TMR                                           EN MICRO C
                                       REGISB                 EQU                0X21                                    ORG              0X5                         VOID MAIN()
                                                              ORG                0X5                        INICIO       CLRF             PORTC                       {
                                       INICIO                 CLRF               PORTC                                   MOVLW            b’00000111’                 PortC = 0;
                                                              BSF               STATUS ,RP0                              OPTION                                       TrisC = 0;
                                                              MOVLW             b’11111110’                              BSF              STATUS,RP0                  While(1)
                                                              MOVWF             TRISC                                    MOVLW            b’11111110’                 {
                                                              BCF               STATUS,RPO                               MOVWF            TRISC                       PortC.f0=~Portc.f0;
                                       OTRO                   BCF               PORTC,0X0                                BCF              STATUS,RP0                  Delay_ ms(50);
                                                              CALL              RETARDO                     OTRO         BCF              PORTC,0X0                   }
                                                              BSF               PORTC,0X0                                CALL             RETARDO
                                                              CALL              RETARDO                                  BSF              PORTC,0X0
                                                              GOTO              OTRO                                     CALL             RETARDO
                                       RETARDO                MOVLW             D’66’                                    GOTO             OTRO
                                                              MOVWF             REGISA                      RETARDO      MOVLW            D’195’
                                                              MOVLW             D’26’                                    MOVWF            TMR0
                                                              MOVWF             REGISB                                   COMF             TMR0
                                       RETARD                 DECFSZ            REGISB,1                    RETARD       BTFSS            INTCON,T0IF
                                                              GOTO              RETARD                                   GOTO             RETARD
                                                              DECFSZ            REGISA,1                                 BCF              INTCONT,T0IF
                                                              GOTO              RETARD                                   RETURN
                                                              RETURN                                                     END

                                                              END




                                            REGISA              EQU                 0X20                RETARDO CON TMR                                  EN MICRO C
                                            REGISB              EQU                 0X21                                      ORG      0X5               VOID MAIN()
                                                                ORG                 0X5                 INICIO                CLRF     PORTC             {
                                            INICIO              CLRF                PORTC                                     MOVLW    b’00000111’       PortC = 0;
                                                                BSF                 STATUS ,RP0                               OPTION                     TrisC = 0;
                                                                MOVLW               b’11111110’                               BSF      STATUS,RP0        While(1)
                                                                MOVWF               TRISC                                     MOVLW    b’11111110’       {
                                                                BCF                 STATUS,RPO                                MOVWF    TRISC             PortC.f0=~Portc.f0;
                                            OTRO                BCF                 PORTC,0X0                                 BCF      STATUS,RP0        Delay_ ms(50);
                                                                CALL                RETARDO             OTRO                  BCF      PORTC,0X0         }
                                                                BSF                 PORTC,0X0                                 CALL     RETARDO
                                                                CALL                RETARDO                                   BSF      PORTC,0X0         List p=16f870
                                                                GOTO                OTRO                                      CALL     RETARDO           #include p16f870.inc
                                            RETARDO             MOVLW               D’66’                                     GOTO     OTRO              __CONFIG_XT_OSC&_WDT_OFF&_PW
                                                                                                                                                         RTE_ON&_LVP_OFF
                                                                MOVWF               REGISA              RETARDO               MOVLW    D’195’
                                                                                                                              MOVWF    TMR0              ORG 0X0;
                                                                MOVLW               D’26’                                     COMF     TMR0              GOTO INICIO;
                                                                MOVWF               REGISB              RETARD                BTFSS    INTCON,T0IF       ORG              0X5;
                                            RETARD              DECFSZ              REGISB,1                                  GOTO     RETARD            INICIO:BSF STATUS,RP0
                                                                GOTO                RETARD                                    BCF      INTCONT,T0IF      MOVLW            0X0
                                                                DECFSZ              REGISA,1                                                             MOVWF            TRISB
                                                                GOTO                RETARD                                    RETURN                        BCF STATUS,RP0
                                                                RETURN                                                        END                        MOVWF            PORTB
                                                                                                                                                         END
                                                                END




Palabra cocina con retardo     Bcd Con Pulsante micro c          REGIS20 EQU 0X20presenta hola y con la interrupción cocina
REGISA EQU 0X20                                                          ORG    0X0
REGISB EQU 0X21                int contador=0;                           GOTO INICIO
REGISC EQU 0X22                void interrupt() {
       ORG 0X0                 contador++;                              ORG    0X04
       GOTO INICIO             intcon.intf = 0;                         GOTO
       ORG 0X5                 }                                        ORG    0X5
                               void main(){                      INICIO MOVLW 0X90
INICIO BSF STATUS,RP0          trisb=0xff;                       MOVWF INTCON
       MOVLW 0X0               trisc=0x0;                               CLRF PORTC
       MOVWF TRISB             intcon=0x90;                             MOVLW b'11010110'
       BCF STATUS,RP0                                                   OPTION
OTRO MOVLW 0X46                while(1)
       MOVWF PORTB             {                                          BSF STATUS,RP0
CALL RETARDO                    switch(contador){                         MOVLW 0X0
      MOVLW 0X40                  case 0: portc=0xc0;break;               MOVWF TRISC
      MOVWF PORTB                 case 1: portc=0xf9;break;               BCF STATUS,RP0
      CALL RETARDO                case 2: portc=0xa4;break;      BSF
      MOVLW 0X46                  case 3: portc=0xb0;break;       OTRO MOVLW 0X89
      MOVWF PORTB                 case 4: portc=0x99;break;              MOVWF PORTC
      CALL RETARDO                case 5: portc=0x92;break;      CALL      RETARDO
      MOVLW 0XCF                  case 6: portc=0x82;break;              MOVLW 0XC0
      MOVWF PORTB                 case 7: portc=0xf8;break;              MOVWF PORTC
       CALL RETARDO               case 8: portc=0x80;break;              CALL     RETARDO
      MOVLW 0XAB                  case 9: portc=0x90;break;              MOVLW     0XC7
      MOVWF PORTB               }                                        MOVWF PORTC
      CALL RETARDO              if(contador>9){                          CALL     RETARDO
      MOVLW 0X8                contador=0;                               MOVLW 0X88
      MOVWF PORTB               }                                        MOVWF PORTC
GOTO OTRO                      }                                 CALL     RETARDO
;INICIA LA SUBRUTINA RETARDO                                             GOTO    OTRO
                               Palabra en oscilador con          ;INICIA LA SUBRUTINA RETARDO
RETARDO MOVLW 0X03             microc                            RETARDO MOVLW d'76'
     MOVWF REGISA                                                        MOVWF       REGIS20
MOVLW D'171'                   void main()                               MOVLW       d'75'
     MOVWF REGISB              {                                         MOVWF      TMR0
     MOVLW D'133'              trisb = 0x0                               COMF      TMR0
MOVWF REGISC                   while(1)                                  RETARD      BCF INTCON,T0IF
                               {                                  RETARD1         BTFSS INTCON,T0IF
 RETARD1 DECFSZ REGISC,1       portc=0x46                                GOTO RETARD1
     GOTO    RETARD1           delay_ms(500)                             DECFSZ REGIS20,1
     DECFSZ REGISB,1           portc= 0x40                               GOTO RETARD
     GOTO RETARD1              delay_ms(500)                             RETURN
     DECFSZ REGISA,1           portc= 0x46
     GOTO RETARD1              delay_ms(500)                     ;INICIA LA SUBRUTINA DE INTERRUPCION HOLA
     RETURN                    portc= 0xcf                       ;ENCERA LA BANDERA INTF QUE SE ACTIVO POR LA INTERRUPCION
                               delay_ms(500)
     END                       portc= 0xab                       BCF     INTCON,INTF
                               delay_ms(500)                           MOVLW 0X46
     END                       portc= 0x8                              MOVWF PORTC
                               delay_ms(500)                            CALL RETARDO
                               }                                       MOVLW 0X40
                               }                                        MOVWF PORTC
                                                                       CALL RETARDO
                                                                       MOVLW 0X46
                                                                       MOVWF PORTC
                                                                       CALL RETARDO
                                                                       MOVLW 0XCF
                                                                       MOVWF PORTC
                                                                       CALL RETARDO
                                                                       MOVLW 0XAB
                                                                       MOVWF PORTC
                                                                       CALL   RETARDO
                                                                       MOVLW 0X8
                                                                       MOVWF PORTC
                                                                       CALL RETARDO
                                                                       RETFIE
                                                                       END

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Regisaequ 0 x20

  • 1. REGISA EQU 0X20 RETARDO CON TMR EN MICRO C REGISB EQU 0X21 ORG 0X5 VOID MAIN() ORG 0X5 INICIO CLRF PORTC { INICIO CLRF PORTC MOVLW b’00000111’ PortC = 0; BSF STATUS ,RP0 OPTION TrisC = 0; MOVLW b’11111110’ BSF STATUS,RP0 While(1) MOVWF TRISC MOVLW b’11111110’ { BCF STATUS,RPO MOVWF TRISC PortC.f0=~Portc.f0; OTRO BCF PORTC,0X0 BCF STATUS,RP0 Delay_ ms(50); CALL RETARDO OTRO BCF PORTC,0X0 } BSF PORTC,0X0 CALL RETARDO CALL RETARDO BSF PORTC,0X0 GOTO OTRO CALL RETARDO RETARDO MOVLW D’66’ GOTO OTRO MOVWF REGISA RETARDO MOVLW D’195’ MOVLW D’26’ MOVWF TMR0 MOVWF REGISB COMF TMR0 RETARD DECFSZ REGISB,1 RETARD BTFSS INTCON,T0IF GOTO RETARD GOTO RETARD DECFSZ REGISA,1 BCF INTCONT,T0IF GOTO RETARD RETURN RETURN END END REGISA EQU 0X20 RETARDO CON TMR EN MICRO C REGISB EQU 0X21 ORG 0X5 VOID MAIN() ORG 0X5 INICIO CLRF PORTC { INICIO CLRF PORTC MOVLW b’00000111’ PortC = 0; BSF STATUS ,RP0 OPTION TrisC = 0; MOVLW b’11111110’ BSF STATUS,RP0 While(1) MOVWF TRISC MOVLW b’11111110’ { BCF STATUS,RPO MOVWF TRISC PortC.f0=~Portc.f0; OTRO BCF PORTC,0X0 BCF STATUS,RP0 Delay_ ms(50); CALL RETARDO OTRO BCF PORTC,0X0 } BSF PORTC,0X0 CALL RETARDO CALL RETARDO BSF PORTC,0X0 List p=16f870 GOTO OTRO CALL RETARDO #include p16f870.inc RETARDO MOVLW D’66’ GOTO OTRO __CONFIG_XT_OSC&_WDT_OFF&_PW RTE_ON&_LVP_OFF MOVWF REGISA RETARDO MOVLW D’195’ MOVWF TMR0 ORG 0X0; MOVLW D’26’ COMF TMR0 GOTO INICIO; MOVWF REGISB RETARD BTFSS INTCON,T0IF ORG 0X5; RETARD DECFSZ REGISB,1 GOTO RETARD INICIO:BSF STATUS,RP0 GOTO RETARD BCF INTCONT,T0IF MOVLW 0X0 DECFSZ REGISA,1 MOVWF TRISB GOTO RETARD RETURN BCF STATUS,RP0 RETURN END MOVWF PORTB END END Palabra cocina con retardo Bcd Con Pulsante micro c REGIS20 EQU 0X20presenta hola y con la interrupción cocina REGISA EQU 0X20 ORG 0X0 REGISB EQU 0X21 int contador=0; GOTO INICIO REGISC EQU 0X22 void interrupt() { ORG 0X0 contador++; ORG 0X04 GOTO INICIO intcon.intf = 0; GOTO ORG 0X5 } ORG 0X5 void main(){ INICIO MOVLW 0X90 INICIO BSF STATUS,RP0 trisb=0xff; MOVWF INTCON MOVLW 0X0 trisc=0x0; CLRF PORTC MOVWF TRISB intcon=0x90; MOVLW b'11010110' BCF STATUS,RP0 OPTION OTRO MOVLW 0X46 while(1) MOVWF PORTB { BSF STATUS,RP0 CALL RETARDO switch(contador){ MOVLW 0X0 MOVLW 0X40 case 0: portc=0xc0;break; MOVWF TRISC MOVWF PORTB case 1: portc=0xf9;break; BCF STATUS,RP0 CALL RETARDO case 2: portc=0xa4;break; BSF MOVLW 0X46 case 3: portc=0xb0;break; OTRO MOVLW 0X89 MOVWF PORTB case 4: portc=0x99;break; MOVWF PORTC CALL RETARDO case 5: portc=0x92;break; CALL RETARDO MOVLW 0XCF case 6: portc=0x82;break; MOVLW 0XC0 MOVWF PORTB case 7: portc=0xf8;break; MOVWF PORTC CALL RETARDO case 8: portc=0x80;break; CALL RETARDO MOVLW 0XAB case 9: portc=0x90;break; MOVLW 0XC7 MOVWF PORTB } MOVWF PORTC CALL RETARDO if(contador>9){ CALL RETARDO MOVLW 0X8 contador=0; MOVLW 0X88 MOVWF PORTB } MOVWF PORTC GOTO OTRO } CALL RETARDO ;INICIA LA SUBRUTINA RETARDO GOTO OTRO Palabra en oscilador con ;INICIA LA SUBRUTINA RETARDO RETARDO MOVLW 0X03 microc RETARDO MOVLW d'76' MOVWF REGISA MOVWF REGIS20 MOVLW D'171' void main() MOVLW d'75' MOVWF REGISB { MOVWF TMR0 MOVLW D'133' trisb = 0x0 COMF TMR0 MOVWF REGISC while(1) RETARD BCF INTCON,T0IF { RETARD1 BTFSS INTCON,T0IF RETARD1 DECFSZ REGISC,1 portc=0x46 GOTO RETARD1 GOTO RETARD1 delay_ms(500) DECFSZ REGIS20,1 DECFSZ REGISB,1 portc= 0x40 GOTO RETARD GOTO RETARD1 delay_ms(500) RETURN DECFSZ REGISA,1 portc= 0x46 GOTO RETARD1 delay_ms(500) ;INICIA LA SUBRUTINA DE INTERRUPCION HOLA RETURN portc= 0xcf ;ENCERA LA BANDERA INTF QUE SE ACTIVO POR LA INTERRUPCION delay_ms(500) END portc= 0xab BCF INTCON,INTF delay_ms(500) MOVLW 0X46 END portc= 0x8 MOVWF PORTC delay_ms(500) CALL RETARDO } MOVLW 0X40 } MOVWF PORTC CALL RETARDO MOVLW 0X46 MOVWF PORTC CALL RETARDO MOVLW 0XCF MOVWF PORTC CALL RETARDO MOVLW 0XAB MOVWF PORTC CALL RETARDO MOVLW 0X8 MOVWF PORTC CALL RETARDO RETFIE END