SlideShare a Scribd company logo
1 of 2
list
p=16f877A
; list directive to define processor
#include
<p16f877A.inc>
; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_OFF
& _LVP_OFF & _CPD_OFF
|status equ 0x03
w
equ 0x00
trisa
equ 0x05
trisb
equ 0x06
trisc
equ 0x07
trisd
equ 0x08
trise
equ 0x09
porta
equ 0x85
portb
equ 0x86
adcon1 equ 0x09f
adcon0 equ 0x1f
adresh equ 0x1e
pir1
equ 0x0c
#define rp0 status,5
#define rp1 status,6
#define z
status;2
#define adif pir1,6
#define godon adcon0,2
#define c status,0
org 0x00
goto inicio
org 0x04
inicio
bcf rp1
bsf rp0,cambio de banco
clrf trisb
movlw 0x00
movwf trisc
movlw ob00000000
movwf trisd
movlw ob11111111
movwf trisa
clrf trise
bcf rp1
convertir
movlw ob00000001
movwf adcon0
bcf
godone
no_1 btfss adif
goto no_1
movf adresh
movwf portb
clrf adresh
movlw ob00001001
movwf adcon0
bsf godone
no_2 btfss adif
goto no_2
movf adresh
movwf portc
Conversor

More Related Content

Viewers also liked

DIT mobile learning... intro
DIT mobile learning... introDIT mobile learning... intro
DIT mobile learning... introClaudia Igbrude
 
Evangelize the world
Evangelize the worldEvangelize the world
Evangelize the worldFer Nanda
 
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijo
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijoíJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijo
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijoricardoaria
 
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιούενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού4Gym Glyfadas
 
Transforming Healthcare: Improving Decision Support with Your Partners
Transforming Healthcare: Improving Decision Support with Your PartnersTransforming Healthcare: Improving Decision Support with Your Partners
Transforming Healthcare: Improving Decision Support with Your Partnersibi
 
Big Data in Action : Operations, Analytics and more
Big Data in Action : Operations, Analytics and moreBig Data in Action : Operations, Analytics and more
Big Data in Action : Operations, Analytics and moreSoftweb Solutions
 
Action research-for-teachers
Action research-for-teachersAction research-for-teachers
Action research-for-teachersArun Joseph
 
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιοΕκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο4Gym Glyfadas
 
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψηπροκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη4Gym Glyfadas
 

Viewers also liked (14)

DIT mobile learning... intro
DIT mobile learning... introDIT mobile learning... intro
DIT mobile learning... intro
 
A
AA
A
 
Cd case
Cd caseCd case
Cd case
 
Evangelize the world
Evangelize the worldEvangelize the world
Evangelize the world
 
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijo
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijoíJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijo
íJmpijiojoipopkópjkópjkojihjipuhuuuoijoijoijoijoijoijo
 
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιούενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού
ενδοσχολικός διατμηματικός διαγωνισμός για το χαμόγελο του παιδιού
 
Japones
JaponesJapones
Japones
 
Presentation1
Presentation1Presentation1
Presentation1
 
Transforming Healthcare: Improving Decision Support with Your Partners
Transforming Healthcare: Improving Decision Support with Your PartnersTransforming Healthcare: Improving Decision Support with Your Partners
Transforming Healthcare: Improving Decision Support with Your Partners
 
Big Data in Action : Operations, Analytics and more
Big Data in Action : Operations, Analytics and moreBig Data in Action : Operations, Analytics and more
Big Data in Action : Operations, Analytics and more
 
Action research-for-teachers
Action research-for-teachersAction research-for-teachers
Action research-for-teachers
 
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιοΕκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο
Εκπαιδευτική επίσκεψη στο Xαροκόπειο πανεπιστήμιο
 
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψηπροκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη
προκήρυξη εκδρομής θεσσαλονίκη (2017) Ορθή επανάληψη
 
Korn
KornKorn
Korn
 

Similar to Conversor

Assembly language
Assembly languageAssembly language
Assembly languagebryle12
 
Msp430 assembly language instructions &amp;addressing modes
Msp430 assembly language instructions &amp;addressing modesMsp430 assembly language instructions &amp;addressing modes
Msp430 assembly language instructions &amp;addressing modesHarsha herle
 
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)DrRenumadhavi
 
Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Svetlana Gaivoronski
 
# peripheral registers .equ PWR_BASE0x40007000 .equ PWR_CR0x00 .docx
# peripheral registers  .equ PWR_BASE0x40007000    .equ PWR_CR0x00  .docx# peripheral registers  .equ PWR_BASE0x40007000    .equ PWR_CR0x00  .docx
# peripheral registers .equ PWR_BASE0x40007000 .equ PWR_CR0x00 .docxmayank272369
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxSANTIAGO PABLO ALBERTO
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerjokersclown57
 
Realization of an 8 bit pipelined microprocessor in verilog hdl
Realization of an 8 bit pipelined microprocessor in verilog hdlRealization of an 8 bit pipelined microprocessor in verilog hdl
Realization of an 8 bit pipelined microprocessor in verilog hdlAlexander Decker
 
The_ERICSSON_commands_listed_below_are_f (1) (1).pdf
The_ERICSSON_commands_listed_below_are_f (1) (1).pdfThe_ERICSSON_commands_listed_below_are_f (1) (1).pdf
The_ERICSSON_commands_listed_below_are_f (1) (1).pdfssuser340a0c
 
W8_2: Inside the UoS Educational Processor
W8_2: Inside the UoS Educational ProcessorW8_2: Inside the UoS Educational Processor
W8_2: Inside the UoS Educational ProcessorDaniel Roggen
 
Lathe Spindle Sensor
Lathe Spindle SensorLathe Spindle Sensor
Lathe Spindle SensorJoeCritt
 
Exploring the x64
Exploring the x64Exploring the x64
Exploring the x64FFRI, Inc.
 
Stack Smashing Protector (Paul Rascagneres)
Stack Smashing Protector (Paul Rascagneres)Stack Smashing Protector (Paul Rascagneres)
Stack Smashing Protector (Paul Rascagneres)Hackfest Communication
 
2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarmheri Banget
 
2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarmheri Banget
 

Similar to Conversor (20)

Assembly language
Assembly languageAssembly language
Assembly language
 
The propeller
The propellerThe propeller
The propeller
 
Linux interrupts
Linux interruptsLinux interrupts
Linux interrupts
 
Msp430 assembly language instructions &amp;addressing modes
Msp430 assembly language instructions &amp;addressing modesMsp430 assembly language instructions &amp;addressing modes
Msp430 assembly language instructions &amp;addressing modes
 
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)
Msp430assemblylanguageinstructionsaddressingmodes 180221091516 (1)
 
Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86
 
# peripheral registers .equ PWR_BASE0x40007000 .equ PWR_CR0x00 .docx
# peripheral registers  .equ PWR_BASE0x40007000    .equ PWR_CR0x00  .docx# peripheral registers  .equ PWR_BASE0x40007000    .equ PWR_CR0x00  .docx
# peripheral registers .equ PWR_BASE0x40007000 .equ PWR_CR0x00 .docx
 
Uart
UartUart
Uart
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docx
 
Comande oss
Comande ossComande oss
Comande oss
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Realization of an 8 bit pipelined microprocessor in verilog hdl
Realization of an 8 bit pipelined microprocessor in verilog hdlRealization of an 8 bit pipelined microprocessor in verilog hdl
Realization of an 8 bit pipelined microprocessor in verilog hdl
 
The_ERICSSON_commands_listed_below_are_f (1) (1).pdf
The_ERICSSON_commands_listed_below_are_f (1) (1).pdfThe_ERICSSON_commands_listed_below_are_f (1) (1).pdf
The_ERICSSON_commands_listed_below_are_f (1) (1).pdf
 
runtimestack
runtimestackruntimestack
runtimestack
 
W8_2: Inside the UoS Educational Processor
W8_2: Inside the UoS Educational ProcessorW8_2: Inside the UoS Educational Processor
W8_2: Inside the UoS Educational Processor
 
Lathe Spindle Sensor
Lathe Spindle SensorLathe Spindle Sensor
Lathe Spindle Sensor
 
Exploring the x64
Exploring the x64Exploring the x64
Exploring the x64
 
Stack Smashing Protector (Paul Rascagneres)
Stack Smashing Protector (Paul Rascagneres)Stack Smashing Protector (Paul Rascagneres)
Stack Smashing Protector (Paul Rascagneres)
 
2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm
 
2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm2 g ms4099e dan ms4099f_alarm
2 g ms4099e dan ms4099f_alarm
 

Conversor

  • 1. list p=16f877A ; list directive to define processor #include <p16f877A.inc> ; processor specific variable definitions __CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_OFF & _LVP_OFF & _CPD_OFF |status equ 0x03 w equ 0x00 trisa equ 0x05 trisb equ 0x06 trisc equ 0x07 trisd equ 0x08 trise equ 0x09 porta equ 0x85 portb equ 0x86 adcon1 equ 0x09f adcon0 equ 0x1f adresh equ 0x1e pir1 equ 0x0c #define rp0 status,5 #define rp1 status,6 #define z status;2 #define adif pir1,6 #define godon adcon0,2 #define c status,0 org 0x00 goto inicio org 0x04 inicio bcf rp1 bsf rp0,cambio de banco clrf trisb movlw 0x00 movwf trisc movlw ob00000000 movwf trisd movlw ob11111111 movwf trisa clrf trise bcf rp1 convertir movlw ob00000001 movwf adcon0 bcf godone no_1 btfss adif goto no_1 movf adresh movwf portb clrf adresh movlw ob00001001 movwf adcon0 bsf godone no_2 btfss adif goto no_2 movf adresh movwf portc