Question: Question 1 (20 marks) A circuit with PIC18F4550 microcontroller is interfaced to a DAC0808 and an Op- Amp as shown in the figure below Vcc

 Question 1 (20 marks) A circuit with PIC18F4550 microcontroller is interfacedto a DAC0808 and an Op- Amp as shown in the figure

Question 1 (20 marks) A circuit with PIC18F4550 microcontroller is interfaced to a DAC0808 and an Op- Amp as shown in the figure below Vcc 5V RREF=2.5k DO D1 D2 D3 DACO808 D4 D5 D6 D7 VREF+5v 5k RB2 2.5k OP AMP OUTPUT 0.1 HF EE-15V A program written in assembly language targeted for the circuit above is listed as below ORG 0000H CNT1 EQU 0x30 0x30 is the location for CNT1 CLRF TRISB, 1 MOVLW 0x01 MOVWE PORTB MOVLW 0b11001 MOVWF CNT1 i Set to output LOOP1: Put thi binary no. into CNT1 LOOp2: RLNCF PORTB, 1,0 Rotate Left DECF CNT1, 1, 0 BNZ LOOP2 zero BRA LOOP1 ;Decrement CNT1 Jump to LoOP2 if not Jump to LOOP1 END: End of progranm Question 1 (20 marks) A circuit with PIC18F4550 microcontroller is interfaced to a DAC0808 and an Op- Amp as shown in the figure below Vcc 5V RREF=2.5k DO D1 D2 D3 DACO808 D4 D5 D6 D7 VREF+5v 5k RB2 2.5k OP AMP OUTPUT 0.1 HF EE-15V A program written in assembly language targeted for the circuit above is listed as below ORG 0000H CNT1 EQU 0x30 0x30 is the location for CNT1 CLRF TRISB, 1 MOVLW 0x01 MOVWE PORTB MOVLW 0b11001 MOVWF CNT1 i Set to output LOOP1: Put thi binary no. into CNT1 LOOp2: RLNCF PORTB, 1,0 Rotate Left DECF CNT1, 1, 0 BNZ LOOP2 zero BRA LOOP1 ;Decrement CNT1 Jump to LoOP2 if not Jump to LOOP1 END: End of progranm

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!