Question: any language (c machine or anything) C- Write a program to execute the above task. cs (Mode 1,1) | (Mode 0,0) 10 11 12 13

C- Write a program to execute the above task. cs (Mode 1,1) | (Mode 0,0) 10 11 12 13 14 15 5 ' - config bits - - 12 data bits - soi Assur}GA) SHDv }01}|o1oYo9|p8Xp7Xp6}\05Yo+Xo3YozXo1xoo LDAC VOUT Voo . SCK MCP49X2) VOUTA VREFA Vss VREFB I VOUTB SHON TDAC SDIG NC B NCN Question IV:(12 marks) a- An MCP4922 dual serial converter is used to drive two control valves, one connected to channel A and the second to channel B. The converter is driven by a PIC18F452 microcontroller. i- Draw a convenient circuit to drive the converter. ii- Program the converter to send the value 0x6EE to channel B and the value 0xA74 to channel A. What would be the analogue values if both Vrefa and Vrefs are connected to 5 Volts? b- The PIC18F452 is used in interrupt mode where the interrupt is connected to INTO connected to a smoke detector. The interruption takes place on the leading edge. On interrupt, the microcontroller turns on RB1 which turns on a pump until the fire dies down. When not in interrupt mode, the microcontroller reads PORTC and PORTD, adds the two ports and stores the result in address 0x50 of access RAM. C- Write a program to execute the above task
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
