Skip to main content

All programs should associate

ENEX 20001 2018/T2
Assignment 2 Hardware Tasks

Due date: Friday of Week 7(31st Aug 2018), 23:55hrs. ASSESSMENT
Weighting: 20% of unit final mark 2
Length:
Submission
N/A
Online as a
single word file

Note: 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 these questions are based on the CQU PIC Development kit. You should use
CQU_LCD_Ver2.h or CQU_LCDVer3.h without any modification to them.
Your own header files for
the LCD display are not allowed for this assessment.
All answers should be developed in MCC18 C compiler under MPLAB X. No Assembly language sub
routings are allowed.
Q1. (20marks)
(a) Write a program to turn the LEDs ON in the following sequence D3D4D5D6 and
then turn them OFF in the following sequence D6
D5D4D3. 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. (20marks)
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. (30marks)
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.)
Q4. (30marks)
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)
( 100% of marks is equal to 20% of unit total)
Assessment criteria:
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.
Submission instructions:
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)
GND +5V
Analog input

The post All programs should associate appeared first on My Assignment Tutor.



Logo GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS  CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com

Comments

Popular posts from this blog

Should pit bull terriers be banned in my community

 Discussion Forum: Counterarguments (Should pit bull terriers be banned in my community) You created a question about the topic for your W6 Rough Draft. For this discussion, you will give an answer to that question in the form of a thesis statement. "Dieting Makes People Fat" Main Post: Share your thesis statement with your classmates. Please note: As with last week’s discussion, nothing here is set in stone. Be open to changing everything about your topic, including your position and audience, as you research it and get feedback from your classmates. Topic + Position/Purpose + Supporting Points =Thesis Statement Example: Suppose the question you posed in the Week 5 discussion was something like, “Should pit bull terriers be banned in my community?” After doing some preliminary research, you have concluded that pit bulls, if raised properly, are no more dangerous than other breeds of dogs. Your thesis statement can be something like, “Pitbulls should not be banned

Controversy Associated With Dissociative Disorders

 Assignment: Controversy Associated With Dissociative Disorders The  DSM-5-TR  is a diagnostic tool. It has evolved over the decades, as have the classifications and criteria within its pages. It is used not just for diagnosis, however, but also for billing, access to services, and legal cases. Not all practitioners are in agreement with the content and structure of the  DSM-5-TR , and dissociative disorders are one such area. These disorders can be difficult to distinguish and diagnose. There is also controversy in the field over the legitimacy of certain dissociative disorders, such as dissociative identity disorder, which was formerly called multiple personality disorder. In this Assignment, you will examine the controversy surrounding dissociative disorders. You will also explore clinical, ethical, and legal considerations pertinent to working with patients with these disorders. Photo Credit: Getty Images/Wavebreak Media To Prepare · Review this week’s Learning

CYBER SECURITY and how it can impact today's healthcare system and the future

 Start by reading and following these instructions: Create your Assignment submission and be sure to cite your sources, use APA style as required, and check your spelling. Assignment: Recommendations Document Due Week 6 (100 pts) Main Assignment Recommendations Document The 1250 to 1500-word deliverable for this week is an initial draft of your recommendations. Note that this is a working document and may be modified based on insights gained in module eight and your professor's feedback. This document should contain the following elements: Summary of your problem or opportunity definition A list of possible recommendation alternatives. In this section, you are not yet at the point of suggesting the best set of recommendations but you are trying to be creative and explore all the different ways that the problem or opportunity might best be addressed. The end result here will be a list of alternatives among which you will choose your final recom