Uploaded by Profvip Abutaleb

Assignment 2 - SD Card Interfacing - CMPN445 S20

advertisement
University
Faculty of Engineering
Credit Hours System
CMP N445
Lab Assignment 2
MikroC STM32F103 Interfacing
SD Card Interfacing
Fall 2020
Objectives
By the end of this lab, the student should be able to:
 Design Arithmetic logic circuits and implement them.
 Integrate simple circuits to create a more complex one.
Requirements
1. Eight bit binary adder [8 Grades]
Design and implement eight bit binary adder, apply modular design, start by making circuit for HA,
reuse it to make the full adder, then 4-bit binary ad
Crete SD Card Image containing the following 2 text files:
file
Contents
A.txt
CMPN445
B.txt
CMP 445
1. You should write a program that opens a file and read its contents
2. If the file starts with “CMPN445” turn on LED D0 , else turn LED D1
Assume that there are two LEDs connected to any GPIO’s of the STM32F103
3.
Write file “ANS.txt” containing TRUE or FALSE whther you found the string or not.
Deliverable:
a. Well commented C Code to run on the STM32F103 (Firmware)
b. Proteus Simulation files (In case you chose Proteus) or Eclipse QEMU Project files in
case you chose the open source ARM MCU QEMU for the simulation.
c. Hex file resulted from compiling the firmware
d. Image file you created and put on the SD card.
SD Card Lab
1/1
Download