Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing a Program Description for the following Source Code, Thanks: List p=18f452, f=inhx #include 0x10 0x20 EQU REG10 COUNT EQU Delay register

I need help writing a Program Description for the following Source Code, Thanks:

image text in transcribed

List p=18f452, f=inhx #include 0x10 0x20 EQU REG10 COUNT EQU Delay register Delay count ORG GOTO ORG START 0x20 Assemble at memory location 20 START: TRISC Initialize PORTC as output Set up REO and RE1 as output for control Access DAC CLRF ANDWF TRISE,0 BCF BCF PORTE, 0 PORTE,1 Write in DAC and place it in transparent mode Start with outputting OV to DAC CLRF MOVLW D'100 MOVWF COUNT PORTC load COUNT with 100 PORTC,1 DELAY CONTINUE: INCF Next output Wait for appropriate slope CALL MOVLW D'100 MOVWF COUNT BRA Reload COUNT with 100 Continue CONTINUE DELAY:MO VLW COUNT MOVWF REG10, 0 DECF BNZ Load delay count in REG10 Decrement count If count is not zero, go back to decrement again REG10,1 NEXT NEXT RETURN END List p=18f452, f=inhx #include 0x10 0x20 EQU REG10 COUNT EQU Delay register Delay count ORG GOTO ORG START 0x20 Assemble at memory location 20 START: TRISC Initialize PORTC as output Set up REO and RE1 as output for control Access DAC CLRF ANDWF TRISE,0 BCF BCF PORTE, 0 PORTE,1 Write in DAC and place it in transparent mode Start with outputting OV to DAC CLRF MOVLW D'100 MOVWF COUNT PORTC load COUNT with 100 PORTC,1 DELAY CONTINUE: INCF Next output Wait for appropriate slope CALL MOVLW D'100 MOVWF COUNT BRA Reload COUNT with 100 Continue CONTINUE DELAY:MO VLW COUNT MOVWF REG10, 0 DECF BNZ Load delay count in REG10 Decrement count If count is not zero, go back to decrement again REG10,1 NEXT NEXT RETURN 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_2

Step: 3

blur-text-image_3

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

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

Factorise: a. 2x 3 + 6x b. x 3 36x c. 2x 3 + 7x 2 15x

Answered: 1 week ago