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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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