This week's lab covers two areas, conversion of digital HCS12
signals to an analog format, and the use of a Serial Peripheral Interface (SPI)to transfer data, and commands between the HCS12, and the DAC peripheral.
For this lab, the deliverables include the cover sheet, filled-in sections of the lab report, photographs (online), or instructor signoffs (onsite), and answers to the questions. The cover sheet must be
completed in typed format.
L A B S T E P S
STEP 1: Download the Lab
Download Lab 5 located in DocSharing and save it to your PC.
STEP 2: Predict the Results of Waveform Generation Program
Study the 340_lab5_1 program and predict the performance, and
outputs of the code. Answer the questions in Part A, Step 2.
1. Give three examples each of internal and external peripheral devices as referenced to the HCS12 microcontroller and not an entire PC. (2 points)
2. Given “the requirements of each signal’s destination must match the capabilities of the signal’s source,” name some of the electrical signal parameters that must be considered when designing an interface between two different hardware components.
3. Write down the instructions needed to program PORT A for pins PA7, PA4-PA0 as inputs and PA6OA5 as outputs. Answer should be a valid C language statement. (2 points)
4. Write an instruction sequence to output the value $35 to PORT P. Use the C language only when writing your answer; - no assembly language. (2 points)
5. Write an instruction sequence to configure Port H for input, read in the current signal levels on the Port H pins, and store the value to a C variable called data1. Use the C language only when writing your answer, no assembly language. Also make sure to set the data direction register appropriately in your answer. (2 points)
Sharing your scoops to your social media accounts is a must to distribute your curated content. Not only will it drive traffic and leads through your content, but it will help show your expertise with your followers.
How to integrate my topics' content to my website?
Integrating your curated content to your website or blog will allow you to increase your website visitors’ engagement, boost SEO and acquire new visitors. By redirecting your social media traffic to your website, Scoop.it will also help you generate more qualified traffic and leads from your curation work.
Distributing your curated content through a newsletter is a great way to nurture and engage your email subscribers will developing your traffic and visibility.
Creating engaging newsletters with your curated content is really easy.