Question: ORG 0 0 0 0 H CNT 1 EQU 0 x 5 0 CLRF TRISD, 1 4 ; Set to output MOVLW 0 b 1

ORG 0000H CNT1 EQU 0x50 CLRF TRISD, 14 ; Set to output MOVLW 0b10000000 MOVWF PORTD LOOP1: MOVLW 100 ; in Octal format MOVWF CNT1 ; Put this binary no. into CNT1 LOOP2: RLNCF PORTD, 1,0 ; Rotate Left DECF CNT1,1,0 ; Decrement CNT1 END: i. BNZ LOOP2 ; Jump to LOOP2 if not zero BRA LOOP1 ; Jump to LOOP1 ; End of program Program 2 Identify the output port of the microcontroller interfacing with the DAC [3 Marks] ii. iii. iv. Find the location for CNT1? Describe the function of BRA LOOP1 command? Calculate the reference current, IREF. Hint V=IR

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 Electrical Engineering Questions!