Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CLO3: Question 4: (10 points) 25% (CLOT: 20% CLO2: 30% - The given timer code generates a waveform with 2 Hz frequency at port RBS.

image text in transcribed
image text in transcribed
CLO3: Question 4: (10 points) 25% (CLOT: 20% CLO2: 30% - The given timer code generates a waveform with 2 Hz frequency at port RBS. Modify this code in order to obtain 10 cycles only of waveform at frequency - 1Hx with T.-/T., -0.5. Given that F. = 40 MHz Tt2if -(PR2+1) X PRE x Tey = (PR2+1) PRE/Fey. and: b- For the PIC 24 UART the Baud Rate is given by :Baud Rate = FCY /(Sx (UxBRG+1)) What are the values of S and BRG for Baud Rates = 9600 and 38400 Baud/sec. Calculate the error in the calculated value if Fcy = 10 MHz. 1p - Using the Given code for testing the UART write a C code that send the character sequence 01A02B03 04D.............. 10j ..... 262 2p Using the Given code for testing the UART write a C code that receives a message of 100 characters from PIC 24 and store them in 8 bit array. void main(void) { CLO3: Question 4: (10 points) 25% (CLOT: 20% CLO2: 30% - The given timer code generates a waveform with 2 Hz frequency at port RBS. Modify this code in order to obtain 10 cycles only of waveform at frequency - 1Hx with T.-/T., -0.5. Given that F. = 40 MHz Tt2if -(PR2+1) X PRE x Tey = (PR2+1) PRE/Fey. and: b- For the PIC 24 UART the Baud Rate is given by :Baud Rate = FCY /(Sx (UxBRG+1)) What are the values of S and BRG for Baud Rates = 9600 and 38400 Baud/sec. Calculate the error in the calculated value if Fcy = 10 MHz. 1p - Using the Given code for testing the UART write a C code that send the character sequence 01A02B03 04D.............. 10j ..... 262 2p Using the Given code for testing the UART write a C code that receives a message of 100 characters from PIC 24 and store them in 8 bit array. void main(void) {

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions