Question: Decipher each line of the code below and write up what it means and submit. ;ELECTRONIC PING - PONG DATA MOVE ;This program moves push
Decipher each line of the code below and write up what it means and submit.
;ELECTRONIC PINGPONG DATA MOVE
;This program moves push button switch values from Port A to the ;leds on Port B
TJW
;
;Configuration Word: WDT off, powerup timer on code protect off, RC oscillator
;
list
;specify SFRs
status equ
porta equ
trisa equ
portb equ
trisb equ
;
tableorg,;Initialisestartbsfstatus, ;select memory bank movlwBmovwftrisa,;port A according to above patternmovlwmovwftrisb,;all port B bits outputbcfstatus, ;select bank ;;The "main" program starts hereclrfporta,;clear all bits in ports Aloopmovf,porta,;move port A to W registermovwfportb,;move W register to port Bgotoloop,end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
