Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions