Ask Question, Ask an Expert


Ask Programming Language Expert


• To create a simple signal modulator
• To report on the program's design and operation


• PIC Trainer and ICD3 in-circuit debugger
• MPLAB X Integrated Development

Environment software

• Laboratory CRO and signal generator


prepare a PIC program to enable the PIC trainer board to be used as a signal generator with a modulation input. The modulator should generate a sine wave carrier on DAC channel A whose amplitude or frequency is controlled by an analog signal read from ADC channel 2. The carrier frequency should be selectable over the range 100 Hz to 10 kHz, as determined by the positions of switches 1, 2, and 3 (RB2, RB3 and RB4) on DIP S1 on the main board. For testing purposes, when all 3 switches are off, the modulator should produce a 100 Hz unmodulated sine wave. The type of modulation — whether amplitude modulation (AM) or frequency modulation (FM) — should be selectable by setting DIP S1 switch 4 (RB5). In AM mode, the depth of modulation should be such that when the modulating signal input is 0V the output amplitude is 0V peak-to-peak, and when the modulating input is 5V the output amplitude is 5V peak-to-peak. In FM mode the depth of modulation should be such that when the modulating signal swings between 0V and 5V the output frequency varies by around 20% of its nominal value.

You can verify that your modulator is working correctly by connecting a signal generator to the modulation input and monitoring the output signal on a CRO. Note that the figure above shows a realistic picture of amplitude modulation (assuming the modulating signal is adjusted to a suitable frequency, amplitude, and offset), but the FM signal exaggerates the depth of modulation.


prepare a report on the design and performance of your program. The report should be  between 1500 and 2500 words (around 5 typed pages) not including appendices, and should contain the following sections:

• Introduction: A brief description of the task your program is solving and any necessary instructions on how to configure the hardware and run the program.

• Development process: An account of the process you followed in developing your solution, including any difficulties you faced and how you overcame them.

• Code outline: An overview of your final code, including a brief description of the purpose of each module. Note that this description should complement the documentation in the code itself.

• Design Decisions: A discussion of the key design decisions you made in writing your code, including alternatives you considered and the reason why you made the decision you did.

• Performance Evaluation: A clear indication of how much of the problem your program solves, and experimental data to verify that your program works as claimed.

• Appendix: A full listing of your code. MPLABX can produce a formatted listing, but you'll probably need to adjust the print settings so that you've included all appropriate information.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91292

Have any Question? 

Related Questions in Programming Language

Write a program that will predict the size of a population

Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase ( as a percentage), and the number of days the ...

Assignmentthe fourth programming project involves writing a

Assignment The fourth programming project involves writing a program to manage a student database. The interface to the program should be a GUI that looks similar to the following: A combo box should allow the user to se ...

Asignmentbe sure to follow the coding standard guidelines

Assignment Be sure to follow the Coding Standard Guidelines. You must properly indent and comment your code. Indent code and insert comments to document your program. Program must be implemented and run as instructed. So ...

In this programming assignment you are asked to simulate

In this programming assignment, you are asked to simulate the recursive factorial function given in the class. Your program is to be a nonrecursive version of the factorial function implemented using a stack. Your progra ...

Business app programmingwrite the following programwrite a

Business App Programming Write the following Program: Write a Java program to the form below. The program must work with decimal numbers and each button must work correctly. The result must be done in a popup window. The ...

In this assignment you will write r functions for

In this assignment, you will write R functions for forecasting future values of a time series, and apply them to observations on numbers of deaths and maximum temperatures in Houston, Texas. Doing this will provide more ...

Write a program that prompts the user to enter length and

Write a program that prompts the user to enter length and width dimensions for each room in a proposed house so that total floor space can be calculated for the entire house. After each length/width entry, ask the user i ...

Assignmentpart 1 instance data and methods belong to

Assignment Part 1 Instance data and methods belong to objects (which are class members) and static data and methods belong to a class as a whole. Consider the real-life class named StatelnTheUnitedStates. Name some real- ...

Project instructionsinstructions complete the following two

Project Instructions Instructions: Complete the following two assignments as your final project. These two assignments review everything you learned from Chapters 1-8. Assignment 1 Write an application containing three p ...

Question 1a class is like a blueprint which you use to

Question 1 A class is like a blueprint which you use to create objects. An object is an instance of a class. It's a thing that you made out of a speci?c class. Basically, object and instance mean the same, but the word i ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro