Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
any language (c machine or anything) image text in transcribed
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

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

Step: 3

blur-text-image

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions