C/C++ Programming

C/C++ Programming

Closed - This job posting has been filled and work has been completed.

Job Description

Hi
I need C/C++ coding project,I wrote full detailed project below
I need either OPTION A or B,anyone you have to do
If you can do anyone of the below OPTION A or B then apply for it.
All the best
If you need any details about this project please contact me

Thanks





Programming Embedded Systems




The following Criteria will be addressed in this Project:

L01 - Demonstrate critical understanding of concepts of object-oriented programming in embedded system, the structure of microprocessors, and the structure of embedded systems.

L02 - Develop embedded programs using objected-oriented approaches C/C++ languages with embedded system development suite.

L03 - Creatively synthesise solutions to real-world problems via critical thinking and implement the solutions with embedded system development suite.

L04 - Evaluate the performance of embedded programs when given a problem.

L05 - Communicate efficiently and professionally to team members.

Task

Submit electronic copies of an individual report that should include:
(a) The C program code with detailed comments and
(b) Explanations for particular choices in the program.
Choose one of the following options A and B below. Specify clearly in your report which option is chosen!

OPTION A:
Write a C program for microcontroller PIC12F675 and the PIC Kit 1 such that:
o LEDs D0-D7 should be turned on one at the time in a circular order in one of the two directions: either (a) D0 is on, then D1, D2, ..., D6, D7, then again D0, etc. or (b) D7 is on, then D6, D5, ..., D1, D0, then again D7, etc.
o The directions (a) and (b) should be alternated on button click.
o The time for how long one LED is on should be measured by the built-in timer-0. This time can range from 30ms to 2s.
o The button click and the timer overflow should be serviced by an interrupt service routine.
o This time should be determined by the tuning the potentiometer. The voltage output of the potentiometer should be read using the built-in A/D convertor.
o The initial state (the direction of the LED changes and which LED is first on) is arbitrary, but make sure you have set it up and have explained clearly in code and/or report.






OPTION B:
Write a C program for microcontroller PIC12F675 and the PIC Kit 1 such that:
o LEDs D0-D7 should show a binary code (on = binary ‘1’, off = binary ‘0’) of the voltage read from the potentiometer. The number should be encoded either with (a) D0 showing the most-significant-bit (thus, ordered as D0D1...D7) or with (b) D7 showing the most-significant-bit (thus, ordered as D7D6...D0).
o The choice between the encoding methods (a) and (b) should be alternated on button click.
o The potentiometer output voltage should be read using the built-in A/D convertor.
o The number that is represented and encoded by the LEDs should be refreshed each 50ms. This time should be measured by the built-in timer 0.
o The button click and timer overflow should be serviced by an interrupt service routine.
o The initial choice between the encoding methods (a) and (b) is arbitrary, but make sure you have set it up and have explained clearly in code and/or report.

---
Skills: electronics, make, microcontroller