[source] acender_led_pic.asm

postagem de conteudo sobre programação de microcontroladores pic
Post Reply
User avatar
Kodo no Kami
Admin
Admin
Posts: 743
Joined: Fri Jan 02, 2015 1:56 pm
Contact:

[source] acender_led_pic.asm

Post by Kodo no Kami » Fri Sep 21, 2018 6:34 pm

um simples exemplo de como acender um led em asm de pic (pic: 16f84a, pino rb0)

Code: Select all

list p=16f84a

#include "p16f84a.inc"

 __config _XT_OSC
 
 org h'0000'
 goto kinicio
 
 org h'0004'
 retfie
 
kinicio:
 ;trisb = 255
 bsf STATUS,RP0
 movlw b'11111111'
 movwf TRISB

 ;portb = 1 
 bcf STATUS,RP0
 movlw b'00000001'
 
kloop:
 goto kloop

 end
Image

que desagradavel ~ mirai kuriyama

Post Reply

Return to “PIC”