Digital Signal and System Design

Đã Đóng Đã đăng vào 6 năm trước Thanh toán khi bàn giao
Đã Đóng Thanh toán khi bàn giao

Important:

• Please create a new assignment folder in your working directory for each assignment, and a new

problem folder in the assignment folder for each problem.

• Please backup your files in your own USB drive or your own network drive at the end of each class

because the workbench computers may be reimaged without prior notice.

Problem 1. UART serial communication with interrupt.

• Follow “[url removed, login to view]” to create a new CCS project with the name “Lab3_1”.

• Delete “main.c” if you have generated the file automatically.

• Copy the source code “Lab3_1_main.c” into your project folder.

• Make sure your LaunchPad is properly connected to PC.

• Launch the Windows 10 Device Manager – Ports (COM & LPT). Look for the line showing “XDS

110 Class Application/User UART”. For example, in my computer it is COM4. It might be a

different number in your case. Write down your Application UART port number: COM______.

• Lauch the software PuTTY. Enter the following as shown in the image, Connection type: Serial,

Serial line: COM4 (which should be your COM port number), Speed: 9600. Click the Open button.

1

• In CCS, build, load, and run your project on LaunchPad.

• Bring up the PuTTY window that you just opened, then type on the keyboard. While you are typing,

you should see the letters you typed in the Putty window have been received by the LaunchPad and

printed in the Console window in CCS as shown in the two pictures below.

2

• Explain the code line-by-line in your report.

• Once the UART communication is working as described in this problem, you can simply use the

following line in your code to display any messages on the PuTTY terminal window to help you

with the debugging of your code:

uart0_transmitStr(“You can have any text that you want to display on the terminal!”);

Problem 2. UART serial communication with polling.

• Create a new CCS project with the sample code “Lab3_2_main.c”

• This code uses polling method to receive from UART. Compile and run the code on LaunchPad.

• Study the source code and explain the source code line-by-line.

• Make the following changes in the source code, then compile and run the program again:

o Configure DCO frequency to be 12MHz.

o Configure UART0 baud-rate to be 115200. (You will also have to change the baud-rate in

PuTTY in order to communicate with LaunchPad.)

• Explain your source code line-by-line in the report.

Problem 3. Glitch filtering for user button S1.

• Create a new CCS project with the sample code “Lab3_3_main.c”.

• This sample code implements a software glitch filtering for user button S1.

• Compile and run the program. Study the source code.

• The user button S2 is connected to P1.4, which has glitch filtering capability built-in. In order to

enable glitch filter, you will need to call the following function when configuring the GPIO port:

void SysCtl_enableGlitchFilter(void);

• Modify the source code to implement the following features:

o Click button S1 to double the LED blinking frequency.

o Click button S2 to decrease the LED blinking frequency by half.

3

o Define a minimum (2-4 Hz) and a maximum (24 Hz) blinking frequencies to prevent the

blinking frequency from being increased or decreased indefinitely by user.

• Explain your source code line-by-line in the report.

Assignment Deliverables:

• Compile your report with pictures, plots, and the codes that you have written or modified.

• Explain in detail what you have done, why you have done in that way, and what you have learnt.

Follow the report format outlined in the Introduction lecture notes.

• Printout of your source code should be attached to your lab report printout as appendix. If your

source code goes beyond two pages, please only print the part of the source code where you have

newly written or modified.

Kĩ thuật điện

ID dự án: #15211134

Về dự án

6 đề xuất Dự án từ xa 6 năm trước đang mở

6 freelancer chào giá trung bình$86 cho công việc này

uetian09ee506

Hi I can do your project on MSP Launch pad using CCS

$50 USD trong 3 ngày
(217 Nhận xét)
7.1
liveexperts123

..........................................................................................................................................................

$250 USD trong 1 ngày
(5 Nhận xét)
5.3
sajjadahmed19

A proposal has not yet been provided

$25 USD trong 2 ngày
(29 Nhận xét)
5.4
mze5583fac62088c

Hi, Zeeshan here. I would love the opportunity to solve your assignment. I have read your assignment and have the ability to solve it with perfection. Relevant Skills and Experience I have successfully completed my BS Thêm

$30 USD trong 4 ngày
(7 Nhận xét)
2.9