Course: engr 3613l instructor: Dr. Jiang Section



Download 1.4 Mb.
Date19.04.2023
Size1.4 Mb.
#61159
lab4report BenLe

Version 2023


LAB 104
Tile: C programming on D12PU Board: Part 2



Ben Wish Le
(All rights reserved)

Course: ENGR 3613L


Instructor: Dr. Jiang
Section: HOH 150 R (9:00 AM - 10:50 AM)


  1. Introduction:

  1. Objective:

    1. To go over the essential of C programming

    2. To understand C programming on D12PU board.



  1. Take away from this lab:

    1. Remember to add hcs12.h in delay.c (as below)



    1. Remind the hex number for displaying 7segment LED lights.




  1. Experiment and data:


HCS 12 CODE


Fig.1. Part 1 code

HCS 12 CODE


Fig.2. Part 2 code


  1. Conclusion:

This lab report aim was to understand the C programming on D12PU Board. The biggest challenge here is to know the trick to add parentheses to the addresses of the pushbutton, and to calculate the delay time needed for risen alarm in different frequencies. I found myself a hard to figure out the logic error in this lab.
About the code-wise, students need to remind themselves about DDRB/ DDRP = 0Xff for the output at port B/P, DDRH for the input. Moreover, the most important topic in this lab was to understand I/O channels. In short, the lab was successful performed and met all professor’s requirements.





Download 1.4 Mb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page