Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 : Suppose that we an LM 3 5 Temperature sensor is connected to AN 3 and a led is connected to RA 5

Q1 : Suppose that we an LM35 Temperature sensor is connected to AN3 and a led is connected to RA5. Write a program that turns the led on while the temperature is greater that 30 C.
Notes:
Vref = Vdd =5Volt
Justify the values loaded to ADCON0 and ADCON1 Q2: Suppose that the crystal frequency is 8MHz,8 leds are connected to PORTD and a button is connected to RB2. Write a program that turns one led and shifts/rotates it every 0.5 Second. Whenever you press th button the first led is turned on and continue shifting. Notes:
Use timer 1 to generate the required delay and use the appropriate interrupt to know that it overflows (don't use polling)
Don't monitor RB2(don't use polling), instead use the appropriate interrupt so that the program get notificed whenever the button is pressed.
Show all the calculations and justify using the values loaded to control registers (Such as T1CON, TMR1L, TMR1H)
***Note: Solve both questions on the subject EMBEDDED SYSTEMS ***

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

Solve each equation. log 4 x = 7/2

Answered: 1 week ago

Question

Need HTML & CSS code.

Answered: 1 week ago

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago