Embedded C intermediate coding in IAR bench for using timers in msp430g

Zrušen Zveřejněno před 3 lety K zaplacení v momentě doručení
Zrušen K zaplacení v momentě doručení

Part 1: Warmup

Write an Embedded C program which implements a 3-Bit binary counter and displays

the value of the counter on the LED’s. If S1 is pressed the counter should count up once

per second. If S3 is pressed the counter should count down once per second. If neither

button is pressed the count should remain static.

Part 2: Driving Speaker using a Timer

The speaker is connected to P1.5. To make a sound the speaker needs to be driven with

a frequency within the normal range of human hearing (20Hz - 20,000Hz). Write code

to generate a frequency to drive the speaker at 1kHz using Timer0. Verify the frequency

using an oscilloscope on the speaker.

Part 3: Speaker Tuner

Write a C program which generates a tone of which the pitch is controlled by the potentiometer on the board. The frequency should increase as the variable resistor is turned

clockwise.

Part 4: Timer interrupt

Write a C program which generates a timer based interrupt every 300ms. When the

interrupt service routine runs a counter value should increase by one. This counter value

should then be displayed in binary on the 3 LEDs.

Part 5: External Interrupts

Write a C program that uses external interrupts to determine if a button has been pressed.

All of the pushbuttons should be capable of triggering the interrupt. The interrupt service

routine should be used to light up a different LED corresponding to the button that was

pressed (e.g. button 1 turns on LED1, button 2 turns on LED2, ect). The P1IFG register

allows you to work out which button has been pressed. The LEDs should stay on until

the next button has been pressed.

Kódování Programování v C

Identifikační číslo projektu: #25908130

O projektu

5 nabídek Projekt na dálku Aktivní před 3 lety

5 Freelnceři na tento projekt zveřejňují nabídky v průměru $80

willspage1991

I’m Professional Web Developer & Programmer having 6+ years of experience. Who provides top notch solution in every channel of IT. We provide services in following areas:  ✔ PHP/MYSQL Large Scale Web Applications Dev Další

$150 AUD za 3 dní
(0 Recenzí)
0.0
Saif100424

I have understood your requirements and project pretty well. I can make it with quality in reasonable price. Please come into the chatbox for further discussion regarding the project. Waiting for your first precious me Další

$20 AUD za 4 dní
(0 Recenzí)
0.0
chakravarthi393

hi there, i can develop firmware for your requirements independent of target processor. I have relevant experience more than that this task deserves. But i am new to freelancer. please consider me...

$100 AUD za 4 dní
(0 Recenzí)
0.0
etalhak

Hello, I am an electronics and telecommunication engineer and I am quite experienced with embedded systems design. I have used MSP430FR6989 before so I am quite familiar with that serie. I checked all of the steps they Další

$100 AUD za 7 dní
(0 Recenzí)
0.0
fededalla1

I work as embedded engineer as every day job. I could do the work you are proposing. I need the schematic of the circuit, or the microcontroller name. best regards Federico

$30 AUD za 7 dní
(0 Recenzí)
0.0