What is PFM? PFM is used to vary the frequency of a square wave in proportion to the amplitude of an analog signal. The duty cycle of the modulated signal remains unchanged and it is also known as square-wave FM. PFM can be used to convert between analog signals and digital outputs. See figure 1. PFM Figure 1. PFM signal

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write code to generate a PFM signal output to an output pin and then view it via an oscilloscope. The amplitude of the input signal should be changeable by pressing a button and the button presses should be counted via LEDs connected to the microcontroller.

Specification: 
1. When you start the program, nothing happens and all LED off. 
2. When button pressed, use a starting frequency of 1kHz (and LED count 1) 
3. With every new button pressed, frequency multiplies by 2 (i.e 2kHz, 4Khz, et.c) and the LED counts 
accordingly (i.e 2, 3, 4, …,7 and then go back to 0).  
4. When the count is 7, it restarts from 0 again (meaning all LEDs are OFF and no signal at the 
oscilloscope)

Recommended Steps: 
1. Connect the Switch and the 3 LEDs 
2. Connect the limiting resistors to the LED and the pull-up resistor to the switch  
(The resistor values will be determined in the lab) 
3. Write the code to count the button presses (remember to debounce it if necessary) 
4. Now generate the Pulses for each count. (Duty cycle is constant at 50% all through) 

What is PFM? PFM is used to vary the frequency of a square wave in proportion to the amplitude of an analog
signal. The duty cycle of the modulated signal remains unchanged and it is also known as square-wave FM.
PFM can be used to convert between analog signals and digital outputs. See figure 1.
PFM
Figure 1. PFM signal
Transcribed Image Text:What is PFM? PFM is used to vary the frequency of a square wave in proportion to the amplitude of an analog signal. The duty cycle of the modulated signal remains unchanged and it is also known as square-wave FM. PFM can be used to convert between analog signals and digital outputs. See figure 1. PFM Figure 1. PFM signal
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY