Advertisement
ervinne

Micro Sys. Lab 3 Ex. 03 - Specific Lights Up

Sep 20th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 0.26 KB | None | 0 0
  1.     #INCLUDE "P16F84A.INC"
  2.  
  3.     __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_ON & _CP_OFF
  4.  
  5.     ERRORLEVEL -302
  6.  
  7.     ORG 0x00
  8.     GOTO START
  9.  
  10.     ORG 0x04
  11.     GOTO START
  12.  
  13. START
  14.     BSF STATUS, RP0
  15.     MOVLW 0x00
  16.     MOVWF TRISB
  17.  
  18.     BCF STATUS, RP0
  19.     MOVLW B'01011010'
  20.     MOVWF PORTB
  21.  
  22.     END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement