Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Ece 3567

18/03/2021 Client: saad24vbs Deadline: 2 Day

Create a function, void Init_PWM(void) which configures the 3 pulse width modulation signals. Use Timer B. Use the following count register definitions:

TB0CCR0 – Repeat frequency (PERIOD)

TB0CCR2 – Blue element duty cycle

TB0CCR3 – Green element duty cycle

TB0CCR4 – Red element duty cycle

To do this you must perform the following configurations:

1. Set up the TB0CTL register to use the ACLK as the counter source, and the mode to up-mode. You may assume that the other register settings are fine in their default state. NOTE that it is acceptable and PREFERRABLE to define all of the bits the first time you initialize a register. Do not bit set and bit clear. Program the register with a 16-bit hexadecimal value.

2. Set up the TB0CCTL2, TB0CCTL3, TB0CCTL4 registers to all do the following:

a. CLLD (Compare Latch Load) set to TB0CLn loads when TB0R counts to 0 (up or continuous mode) (n=2,3,4).

b. OUTMOD set to Reset/Set

You may assume that the other TB0CCTLx register settings are fine in their default state. NOTE that it is acceptable and PREFERRABLE to define all of the bits the first time you initialize a register. Do not bit set and bit clear. Program the register with a 16-bit hexadecimal value.

3. Use TB0CCR0 for the Pulse Period and set to 100 Hz (use the value for #define PERIOD in 3567.h).

4. Configure P2.2, P3.6, and P3.7 as the outputs.

a. Set the bits in the correct PxDIR registers

5. Set outputs to Secondary Function [10] for PWM

a. Set the correct bitr is PxSEL1

b. Clear the correct bit in PxSEL0

The preceding sets up the TB0.2, TBO.3, and TBO.4 for PWM. Refer to the Quick Start Guide for the Evaluation Board located in Useful Info on the class website.

6. Use the following variables for the 3 RGB pulse widths

a. duty_cycle_red TB0.4

b. duty_cycle_green TB0.3

c. duty_cycle_blue TB0.2

Checkpoint 1: Ask the Lab Monitors to check your values for the Timer Control Registers (TB0CTL, TB0CCTL2, TB0CCTL3, TB0CCTL4).

Checkpoint 2: Demonstrate the 3 PWM signals on the oscilloscope with duty cycles of 25% for Blue, 50% for green and 75% for red.

Create a file called RGB_LED.c. write code to adjust the 3 PWMs to generate the following colors and conditions when the corresponding commands are sent from Putty.

LH – Red, Flashing at > 4 Hz

LR – Red

LO – Orange

LY – Yellow

LG – Green

LB – Blue

LP – Purple

LC – Purple, Flashing at > 4 Hz

I recommend a duty cycle setting 0f 0x100 for both blue and red alone, and 0x070 for green alone. The combinations for purple, orange, and yellow should never use a duty cycle more than 0x100. It will be too bright.

You should also add enable and disable commands for an LED Test Mode. LT should enable this mode. LD should disable this mode.

For the Flash conditions on the LH (Hot) and LC (Cold) commands, use the Timer A0 interrupt service routine in main to enable and disable the PWM. Instead of every 10 cycles, make the OFF/ON (the Flash) toggle every time the interrupt service routine executes. There are a number of ways to do OFF and ON without re-initializing!

Checkpoint 3: Demonstrate 8 LED conditions using the commands from Putty

Checkpoint 4: Clean-up Checkpoint. Please leave the Custom Booster Pack board in the lab.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Write My Coursework
Peter O.
Pro Writer
A+GRADE HELPER
Quick N Quality
Math Specialist
Writer Writer Name Offer Chat
Write My Coursework

ONLINE

Write My Coursework

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$142 Chat With Writer
Peter O.

ONLINE

Peter O.

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$34 Chat With Writer
Pro Writer

ONLINE

Pro Writer

Give me a chance, i will do this with my best efforts

$145 Chat With Writer
A+GRADE HELPER

ONLINE

A+GRADE HELPER

Give me a chance, i will do this with my best efforts

$76 Chat With Writer
Quick N Quality

ONLINE

Quick N Quality

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$171 Chat With Writer
Math Specialist

ONLINE

Math Specialist

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$113 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Brittany road st leonards - Worksheet - Entrepreneur interview questions and answers assignment - Methods of managing translation exposure - Model - Nutritional Assessment - Amazon prime video swot analysis - Need the following 1. Reflection & Discussion post 2. Short essays. These are two seperate assignments with 500 words each. - Sap jam successfactors login - Beauty and the beast stage props - Unsuccessful email to candidate - The 60 w fan of a central heating system - Intro to physics formula sheet - (Discussion Questions) - Personality Assessments/ Tests of Knowledge and Skill - How to generate crn number - 4x4 camping show perth - Discussion Board - Response - Flinders uni grading system - Cisco ios cheat sheet - Molar mass of c5h12 - Indiana plagiarism test answer key 2019 - Royal college of surgeons books - Autumn rose funeral home vegreville - 221 mill street lake wendouree - Srs 2 social awareness - Different types of historians - How did tokugawa ieyasu unify japan - Construction project turnover checklist - Electron configuration for al3+ ion - How hot is the mantle in degrees - Great wall of china bike ride - Numerical Reasoning Online Test, Verbal Reasoning Online Test and Situational Judgement Online Test - Visa paywave magic beep song mp3 download - Catheter associated urinary tract infection picot - Criteria for weighted scoring model - Donna goes through an involuntary bankruptcy proceeding. an involuntary bankruptcy occurs when - Memo introducing yourself to staff - Week 4 - Wickes latte oak laminate flooring - Outside end style excel - Allegro 17.2 to altium - Palsgraf v long island r co case brief - Nr 511 week 4 midterm - Advantages of electrostatic spray painting - Whitney legally blonde lines - Most recent annual report for a publicly traded company - Job Description and Justification - If a strand of dna has the sequence aagctc - Blair sugarman ted talk - How to get rid of self intersecting curves rhino - Sioux uprising of 1876 worksheet answers - F mv2 r solve for m - Lightfoot podiatry podiatrist launceston - Assume Texas has a long-arm statute permitting the exercise of jurisdiction over all parties to contracts negotiated and/or executed in Texas. How should the court rule? - Charlotte's web lesson plans - Art/ final powerpoint - En 60204 1 2018 - Tale of tristan and isolde - Bosch motorsport ecu price - Short reading. - Constructivism in science teaching - Finance Question - Cause and Effect and advantages - Lens essay thesis example - Network design project - Economic factors affecting recruitment - ECO 120 Problem Set 3 - Tertiary industry of chocolate - How to solve exponential inequalities with different bases - Decompose permutation into transpositions - A manufacturer's operating budgets consists of the - Bond energy of octane - International association for the study of pain definition - Jasper jones chapter 9 summary - Pros and cons of orem's theory - Relative formula mass of butane - Where was jesus crucified theo 104 - PAPER - David sedaris me talk pretty one day summary - Buckskin leggings and breechcloth - Goodstart early learning uniform for sale - Courant institute of mathematical sciences ranking - Writing - Reading and notetaking - Lymphatic capillaries are present in ________. - Does true altruism exist - Final exam - Cloud Computing and IT Services - APA - 6 pages - Due 17 Oct - 4 References - Mobius strip activity worksheet - Western sydney university student central - Configure link local ipv6 address cisco - Computer application course outline - Chem 121 predicting products of chemical reactions - So3 molecular compound name - Apa 6th edition uq - Presented below is information related to farr company - Sue fraser ballarat psychologist - Classroom observation and teacher interview paper - Conveyor belt project