Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the following questions using MPLAB Use following two lines in the beginning of code: LIST P=PIC18F452, F=INHX32, N=0, ST=OFF, R=HEX config OSC=HS, OSCS=OFF, WDT=OFF,

Solve the following questions using MPLAB

Use following two lines in the beginning of code: LIST P=PIC18F452, F=INHX32, N=0, ST=OFF, R=HEX config OSC=HS, OSCS=OFF, WDT=OFF, BORV=45, PWRT=ON, BOR=ON, DEBUG=OFF, LVP=OFF, STVR=OFF

1. Connect 8 LEDs with PORTD of PIC18F452 in Proteus. Send 55H to PORTD and complement the data on PORTD. Use Delay of 1 second between consecutive outputs.

2. Connect two LEDs with RC0 & RC1 and a switch with RB0 of PIC18F452 in Proteus. Implement the following logic in given microcontroller turns on the LED connected with RC0 when SW is turned on and turns on the LED connected with RC1 when SW is turned off.

3. Write down the assembly language program for the following scenario: There are two sensors S1 and S2 are installed at entrance and exit of classroom . Every time a person enters in the classroom, S1 sends high to RB0. Every time a person exits from the classroom, S2 sends high to RB1. Display total number of persons present in classroom at PORTC. Update the Displayed Content on PORTC with some realistic delay using nested loop Approach.

4. Use PIC18F452 Microcontroller to generate a square wave and verify the output in Proteus.

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

Financial Accounting

Authors: J. David Spiceland, Wayne Thomas, Don Herrmann

3rd edition

9780077506902, 78025540, 77506901, 978-0078025549

Students also viewed these Accounting questions

Question

Describe the criteria for an effective budget.

Answered: 1 week ago