Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

American International University - Bangladesh (AIUB)

Faculty of Engineering
Department of Electrical and Electronic Engineering (EEE)
Course Name: Microprocessor and Embedded Systems Course Code: EEE 4103
Semester: Spring 2023-24 Term: Mid
Faculty Name: Prof. Dr. Engr. Muhibul Haque Bhuyan Assignment #: 01/02

Course Outcome Mapping with Questions


Item COs POIs K P A Marks Obtained Marks
Q1 CO2 P.a.4.C3 K4 P1, P3, P7 10
Total: 10

Student Information:
Due Date: 25/02/2024 Submission Date: 26/02/2024
Student Name: Kutubuddin Juwel
Student ID #: 22-46846-1 Department: CSE Section: K

Marking Rubrics (to be filled by Faculty):


Excellent Proficient Good Acceptable Unacceptable No Response
[9-10] [7-8] [4-6] [2-3] [1] [0]
Detailed unique Response with no The response Partial problem is Unable to clarify No Response/
Secured
Problem # response explaining apparent errors shows an solved; the response the understanding copied from
Marks
the concept properly and the answer is understanding of indicates part of the of the problem and others/identical
and the answer is correct, but the the problem, but problem was not method of the submissions with
correct with all explanation is not the final answer understood clearly problem solving gross errors/image
works clearly shown. adequate/unique. may not be correct or not solved. was not correct file printed
Comments Total Marks (10)

Question # 1: Complete Table 1 after going through the datasheet of the specified microcontrollers.

Table 1
Specifications ATMega328P STM32F401RE STM32F423MH ATMega2560 PIC24FJ256GA412

Architecture 32-bit ARM 32-bit ARM


8-bit AVR 8-bit AVR 16-bit PIC
Type Cortex-M4 Cortex-M4

Maximum Clock
20MHz 84MHz 100MHz 16MHz 32MHz
Speed

Program Flash
32 512 1536 256 256
Memory (kB)

SRAM (kB) 2 96 320 8 16

Page 1 of 3
Specifications ATMega328P STM32F401RE STM32F423MH ATMega2560 PIC24FJ256GA412

ADC Resolution 10-bit 12-bit 12-bit 10-bit 12-bit

Operating
Voltage Range 1.8-5.5 1.7-3.6 1.7-3.6 4.5-5.5 2.0-3.6
(V)
Number of
6 12 12 15 16
PWM Channels
4 SPI, 2 TWI,
Communication 1 SPI, 1 TWI, 4 SPI, 3 I2C, 3 4 SPI, 3 I2C, 4 4 SPI, 4 I2C, 6
4 USART, 1
Interfaces 1 USART USART, 1 USB USART, 1 USB UART, 1 USB
USB

The unit prices of the above-mentioned MCUs are as follows: (1 USD = 120 BDT)

ATMega328P STM32F401RE STM32F423MH ATMega2560 PIC24FJ256GA412


Price $3.60 $12 $14 $20 $6.7

X Company in Bangladesh is trying to develop an affordable shop security system and they have shortlisted
the listed 10 MCUs as possible candidates for their system CPU. The required minimum specifications for
their intended design for the CPU are given below:

Minimum Clock Speed 32 MHz


Minimum SRAM 8 kB
Minimum ADC Resolution 10-bit
Minimum Program Memory 64 kB
Minimum Number of PWM Channels 12
Minimum Number of Timers 6
Required Serial Communication Interfaces 4 SPIs, 2 TWIs, 4 USARTs

Being a design engineer at X Company, you have been given the responsibility of selecting the most suitable
IC from the list for the security system design.
Please select an IC from the list to design an affordable and efficient system and justify your answer with
proper reasoning.

Answer:

Page 2 of 3
Based on the given requirements and the specifications of the microcontrollers (MCUs), the STM32F401RE
seems to be the most suitable choice for the following reasons:

1. Clock Speed: The minimum required clock speed is 32 MHz, and the STM32F401RE operates at a
maximum speed of 84 MHz, which is more than sufficient.
2. SRAM: The minimum required SRAM is 8 kB. The STM32F401RE has 96 kB of SRAM, which is
well above the requirement.
3. ADC Resolution: The minimum ADC resolution required is 10-bit. The STM32F401RE offers a 12-
bit ADC, exceeding the requirement.
4. Program Memory: The minimum program memory required is 64 kB. The STM32F401RE has 512
kB of flash memory, which is ample for the application.
5. PWM Channels: The minimum number of PWM channels required is 12. The STM32F401RE has
exactly 12 PWM channels.
6. Serial Communication Interfaces: The requirement is for 4 SPIs, 2 TWIs, and 4 USARTs. The
STM32F401RE has 4 SPI, 3 I2C (which can be used as TWI), and 3 USART interfaces. Although
it’s one USART short, it does have a USB interface that could potentially be used to meet the
communication needs.
7. Price: The STM32F401RE costs $12. While this is not the cheapest option, it is reasonable given its
features and the fact that it meets almost all the requirements.

Therefore, considering the balance between cost and performance, the STM32F401RE is the most suitable
MCU for the design of the affordable shop security system for X Company. However, the final decision
should also consider other factors such as availability of the MCU in the market, ease of programming,
power consumption, and the development tools available.

Page 3 of 3

You might also like