Write a program to run a dc motor connected to pins

Assignment Help C/C++ Programming
Reference no: EM132090065

Q1.
(a) Write a program to turn the LEDs ON in the following sequence D3→D4→D5→D6 and then turn them OFF in the following sequence D6→D5→D4→D3. This should loop infinitely. You should incorporate appropriate delay to make sure that it runs smoothly and a human eye can clearly see it.

(b) Write a program to run a DC motor connected to pins 1A and 1B in CW direction and reverse it when SW2 is pressed.

Q2.
Write a program to display (on 7-segment) continuous up-counting numbers from 00 to 25 and then down-counting from 25 to 00 (in decimal system). There should be a sufficient dely between two number display status where a human can read them. This should loop infinitely.

Q3.
Write a program to read analog input from RA1 when SW5 is pressed and display the following messages on the LCD panel. "input is <= 2V" , "input is < =4V & > 2V", "input is > 4V" depending on the actual real-time analog input. (if the message goes over the first row display area, it should display on second line)

(To testing your program : Use a 10k? potentiometer in the following configuration to provide the analog input. Use any of the GND pins in P2 as ground connection and the single female scocket next to PICkit3 connector as +5V and connect the mid pin of pot to RA1.)

2375_figure.jpg

Q4.

Write a program to display whatever you type on your computer key board(through TeraTerm) on the LCD display and display the message "Hellow from CQU PIC Development Board" on TeraTerm terminal emulator on your Windows computer when you press switch S2. (you need to connect your PIC development board to your computer via USB to serial cable and configure TeraTerm appropriately for this. Use baud rate of 4800bps)

Attachment:- detail.zip

Reference no: EM132090065

Questions Cloud

What are gee cash receipts : How much should Gee report in its 2017 income statement for subscriptions revenue on an accrual basis? What are Gee's cash receipts in 2017?
Determine the amount that he will get in his account : If the man goes to withdraw the money after four years, determine the amount that he will get in his account?
Compute the amount of revenue and gross profit : Assume Nortel Networks contracted to provide a customer with Internet infrastructure for $2,600,000. The project began in 2016 and was completed In 2017.
Fined three examples of standardized work in your office : Fined three examples of standardized work in your office. How might your organization improve its approach to standardized work in the office?
Write a program to run a dc motor connected to pins : ENEX20001 - Embedded System Design - CQ university - Write a program to display whatever you type on your computer key board(through TeraTerm)
A well-developed explanation : What are the main sources for outside candidates? Why is effective recruiting important?
What leadership skills do you think are necessary : How do you think public health professionals and policy decision makers can work together more effectively to prepare for complex public health issues.
Proportions of the firms reported rising : What proportions of the firms reported rising, falling, or constant prices? What does this say about which market structures are most prominent?
Paying employees as talent management process : A well-developed explanation. Why should managers think of staffing, training, appraising, and paying employees as a talent management process?

Reviews

len2090065

8/20/2018 12:18:02 AM

Develop your program to solve the problem in each question. When they run successfully, copy the entire program to your answer script in MS WORD. Then close your project and open a new project. Copy your listing from the answer script(WORD document) and paste it into the new project’s main c file. Build the project and run it to check whether it runs smoothly. If it does not run now, it will not run on marker’s computer as that is what the marker does. ( Hint: When you first copy from project to WORD document, WORD may auto correct some spelling, capitalize initial words, etc. which will prevent your answer from running successfully in the marker’s computer when copy and pasted into a new project. The above exercise will highlight you if there are any such things done by WORD Auto correct feature and you are on can correct them before submitting. The marker will not try to correct them and any submitted program with compilation errors will receive very low marks)

len2090065

8/20/2018 12:17:55 AM

All programs should associate with appropriate flowcharts and comments, marks will be given to the explanations of your algorithms and program. You can attach screenshots of running program as well. All answers should be developed in MCC18 C compiler under MPLAB X. No Assembly language sub routings are allowed. This assignment is based on C language programming skills and PIC18F4321 programming skills. To obtain full marks students must provide all in detail problem solving and solution development evidences. Each student must have their unique programs developed by themselves. Answer to every problem should include a flowchart / NS-diagram or other similar graphical representation of the solution. You are welcome to include screen shots/clear photos of running programs. You need to include the complete code for every question. A clean working program as the answer to a question without evidence of development of it (ex: a soft copy of workbook pages relevant to it) will receive a maximum of 50% of the allocated marks for that question.

Write a Review

C/C++ Programming Questions & Answers

  What is memory leakage

What are the main conceptual differences between object-oriented programming and the other programming techniques and what is the definition of reference variable? What are the differences between pass-by-value and pass-by-reference?

  Focuses on learning to create threads and use

Create a thread in either a C or a Java program and run it. The thread should read a keyboard value "x" and exit from the code, or it can also use an "ESC" to exit.

  Write a C function that will calculate final prices

COMP1000 - UNIX AND C PROGRAMMING ASSIGNMENT QUESTIONS - Write a C function called calcPrices that will calculate final prices in a fishing/camping store

  During the execution of the above code, how many instru

(a) During the execution of the above code, how many instructions are executed? (b) Assuming a standard unicycle machine (CPI = 1) running at 100 KHz, how long will the above code take to complete?

  Creating class perform computation and display results

Create a class named Numbers whose Main() method holds two integer variables. Assign values to the variables. Within the class, create two methods, Sum () and Difference (), that compute the sum of and difference between the values of the two vari..

  Generate a main program which initializes

Generate a main program which initializes your data array to be sorted - be careful with your array index numbers. You can use a random number generator to generate entries for the array.

  Define a recursive function that takes an integer argument

Define a recursive function that takes an integer argument and returns the factorial of that argument. Recall that 3 factorial, written 3!, equals 3 × 2!.

  Write a method that accept positive integer and returns true

In your program, write a method that accepts a positive integer and returns true if the number is a prime number and false otherwise.

  What are the values of queuefront and queuerear

What are the value of queueFront and queueRear after removing an element from the queue? Also what was the position of the removal queue element?

  Service deliver to erica

At work one day, Erica Franz received 36packages. Speedy Delivery delivered three three times as many as Ralph's Express, while Ralph's Express delivered four more than Send Quick Package Service. How many packages did each service deliver to Erica..

  Create and prepare a disk file for records containing struct

Store the account records in the file using the same hashing/rehashing technique used for storing them in an array of structures.

  Calculate all entropies for each possibilities

Prepare a program that should read ".txt" file and count how many lower case in the file but it should count one by one.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd