Question: 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:
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