Question: I want to know what the code is talking about. I want to know what each command mean..thank you LIST P=16F1937 #include p16F1937.inc ; CONFIG1

I want to know what the code is talking about.
I want to know what each command mean..thank you
LIST P=16F1937
#include "p16F1937.inc"
; CONFIG1
; __config 0xFFE7
__CONFIG _CONFIG1, _FOSC_ECH & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON
; CONFIG2
; __config 0xFFFF
__CONFIG _CONFIG2, _WRT_OFF & _VCAPEN_OFF & _PLLEN_ON & _STVREN_ON & _BORV_LO & _LVP_ON
COUNT1 equ 20h
COUNT2 equ 21h
COUNT3 equ 22h
org 0
movlw 0h
movwf COUNT3
Start:
banksel PORTB
clrf PORTB
banksel ANSELB
clrf ANSELB ;Set PORTA, Digital I/O
banksel TRISB
movlw B'00000000'
movwf TRISB ;Set PORTA, All Bits as Output
banksel PORTB
incf COUNT3, 1
MOVFW COUNT3
MOVWF PORTB
; delay
MOVLW 0x22
MOVWF COUNT1
MOVWF COUNT2
LOOP1 DECFSZ COUNT1, 1
GOTO LOOP1
DECFSZ COUNT2, 1
GOTO LOOP1
GOTO Start
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!