Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Aims

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

Equipment

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

Environment software

• Laboratory CRO and signal generator

Task

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.

Report

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

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As