Professional Documents
Culture Documents
Assignment - 1M MES Spring 2023-24
Assignment - 1M MES Spring 2023-24
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
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
Question # 1: Complete Table 1 after going through the datasheet of the specified microcontrollers.
Table 1
Specifications ATMega328P STM32F401RE STM32F423MH ATMega2560 PIC24FJ256GA412
Maximum Clock
20MHz 84MHz 100MHz 16MHz 32MHz
Speed
Program Flash
32 512 1536 256 256
Memory (kB)
Page 1 of 3
Specifications ATMega328P STM32F401RE STM32F423MH ATMega2560 PIC24FJ256GA412
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)
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:
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