subject

The PIC18F4321 microcontroller is required to drive the LEDs connected to bit 0 of ports C and D based on the input conditions set by switches connected to bit 1 of ports C and D. The I/O conditions are as follows:-If the input at bit 1 of port C is HIGH and the input at bit 1 of port Dis LOW, the LED at port C will be ON and the LED at port D will be OFF.-If the input at bit 1 of port C is LOW and the input at bit 1 of port D is HIGH, the LED at port C will be OFF and the LED at port D will be ON.-If the inputs of both ports C and D are the same (either both HIGH or both LOW), both LEDs of ports C and D will be OFF. Write a C language program for the statement above.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
You know the right answer?
The PIC18F4321 microcontroller is required to drive the LEDs connected to bit 0 of ports C and D bas...
Questions
question
Mathematics, 28.04.2021 18:30
question
Mathematics, 28.04.2021 18:30
question
Mathematics, 28.04.2021 18:30
question
Computers and Technology, 28.04.2021 18:30
Questions on the website: 13722367