IDENTIFYING DATA 2023_24
Subject (*) MICROCONTROLLERS Code 17204111
Study programme
Bachelor's Degree in Electronic and Automation Engineering (2010)
Cycle 1st
Descriptors Credits Type Year Period
6 Compulsory Third 2Q
Language
Castellà
Department Electronic, Electric and Automatic Engineering
Coordinator
RAMÍREZ FALO, JOSÉ LUIS
E-mail enrique.canto@urv.cat
joseluis.ramirez@urv.cat
adrian.ballesteros@urv.cat
Lecturers
CANTÓ NAVARRO, ENRIQUE FERNANDO
RAMÍREZ FALO, JOSÉ LUIS
BALLESTEROS BURGUEÑO, ADRIAN
Web http://moodle.urv.cat/
General description and relevant information <p>GENERAL DESCRIPTION OF THE SUBJECT: Analysis and design of systems based on microcontrollers (architecture, peripherals and programming).</p>

Competences
Type A Code Competences Specific
 EI3 Know the fundamentals and have the applied knowledge of digital electronics and microprocessors.
 EI6 Have the ability to design analogue, digital and power electronic systems.
Type B Code Competences Transversal
 CT5 Communicate information clearly and precisely to a variety of audiences
Type C Code Competences Nuclear

Learning outcomes
Type A Code Learning outcomes
 EI3 Know the functional blocks in a microcontroller.
Develop basic programming skills in assembly language.
Programme converters and timers.
Find the correct components based on their specifications.
 EI6 Choose the appropriate microcontroller for a specific application.
Programme low-cost microcontrollers.
Programme point to point communications.
Use validation strategies for digital systems.
Type B Code Learning outcomes
 CT5 Produce quality texts that have no grammatical or spelling errors, are properly structured and make appropriate and consistent use of formal and bibliographic conventions
Draw up texts that are structured, clear, cohesive, rich and of the appropriate length
Draw up texts that are appropriate to the communicative situation, consistent and persuasive.
Type C Code Learning outcomes

Contents
Topic Sub-topic
Introduction I. Importance, Applications, and Market of Microcontrollers
II. Basic Structure of Microcontrollers
III. Microcontroller vs. Microprocessor
IV. Von Neumann Architecture vs. Harvard Architecture
V. CISC vs. RISC
VI. Characteristics and Sources of Information
Memory I. Program Memory and Data Memory
II. Characteristics of Memories
III. Types of Memory

Central Processing Unit (CPU)
I. Memory Map
II. Instruction Cycle
III. Registers
IV. Addressing Modes
V. Instruction Set
VI. Exception Handling
Programing I. Assembly Language Programming
II. Data Structures
III. Stack Management
IV. Subroutines. Parameter Passing
V. Interrupt Service
VI. Embedded Software Validation
Peripherals I. Input/Output
II. Converters: DAC, ADC, PWM
III. Timers, Watchdogs
IV. Interrupts
V. Power , Reset, and Oscillation circuits
VI. Communications
Comunications I. Characteristics
II. Serial vs. Parallel
III. Asynchronous vs. Synchronous
IV. Error Detection and Correction
V. Standards and Protocols: RS232, I2C, SPI, USB, and others.

Planning
Methodologies  ::  Tests
  Competences (*) Class hours
Hours outside the classroom
(**) Total hours
Introductory activities
EI3
2 0 2
Lecture
EI3
25 15 40
Problem solving, exercises
EI3
CT5
1 15 16
Projects
EI6
CT5
28 42 70
Personal attention
EI3
EI6
0.5 0 0.5
 
Mixed tests
EI3
1 5 6
Multiple-choice objective tests
EI3
0.5 2.5 3
Extended-answer tests
EI3
EI6
CT5
1.5 7.5 9
Practical tests
EI6
0.5 3 3.5
 
(*) On e-learning, hours of virtual attendance of the teacher.
(**) The information in the planning table is for guidance only and does not take into account the heterogeneity of the students.

Methodologies
Methodologies
  Description
Introductory activities Description of Contents, Evaluation Methods, Schedule, Moodle, and Study Plan.
Contextualization of Contents in Society, Industrial Environment, and the Degree Program.
Lecture In the classroom, the professor will provide explanations of the different concepts covered in the subject.
Problem solving, exercises As part of your autonomous and individual work, you will be required to solve problems or complete exercises periodically assigned by the professor. These activities will be carried out through Moodle, the online learning platform.
Projects As part of the autonomous development of the project, students will work in pairs to propose a problem, application, or process that can be solved or improved using a microcontroller-based system. They will need to define the system specifications and the tests to be performed to verify its proper functioning. The project will involve designing and implementing a small amount of peripheral hardware, as well as programming all the necessary ASSEMBLER code (using the microcontroller discussed in the lectures as an example). Students are also responsible for planning the project's timeline and tasks.

The professor will provide a set of minimum requirements that must be included in the proposed specifications/solution to ensure the acquisition of the competencies/content associated with the subject. The professor will also be responsible for evaluating the effectiveness and efficiency of the final prototype in terms of goal achievement, quality of development, and overall system complexity.
Personal attention The lab sessions will provide personalized attention to each student. The aim is to assist the student in solving various types of problems and to continuously assess their working methodology, attitude, and independence.

The general personalized attention will be available to help the student resolve any doubts that may arise in any of the activities related to the subject. Taking advantage of this service allows for the efficient resolution of specific doubts and the detection of conceptual errors.

Personalized attention
Description

The lab sessions will provide personalized attention to each student. The aim is to assist the student in solving various types of problems and to continuously assess their working methodology, attitude, and independence.

The general personalized attention will be available to help the student resolve any doubts that may arise in any of the activities related to the subject. Taking advantage of this service allows for the efficient resolution of specific doubts and the detection of conceptual errors.


Assessment
Methodologies Competences Description Weight        
Problem solving, exercises
EI3
CT5
The resolution of periodically proposed problems will be submitted via Moodle. The following aspects will be evaluated: adherence to submission deadlines, the results obtained, and the proper written presentation of the solutions. 0.10
Projects
EI6
CT5
The evaluation will take into account adherence to submission deadlines, the working methodology, a proactive attitude towards research and error correction, the results achieved (including the degree of complexity, diversity of concepts covered, and achievement of objectives), and the proper written presentation of the solutions. 0.30
Mixed tests
EI3
There will be a midterm assessment, consisting of multiple-choice questions and development exercises. The evaluation will consider the results obtained, the methods used to achieve them, and the proper written presentation of the solutions. 0.15
Multiple-choice objective tests
EI3
There will be a final exam at the end of the course, consisting of multiple-choice questions. The evaluation will be based on the number of correct and incorrect answers. 0.10
Extended-answer tests
EI3
EI6
CT5
There will be a final exam at the end of the course, consisting of development exercises. The evaluation will consider the results obtained, the methods used to achieve them, and the proper written presentation of the solutions. 0.15
Practical tests
EI6
There will be an individual lab exam at the end of the course. The evaluation will consider the achievement of objectives within the specified time, the working methodology, a proactive attitude towards research and error correction, the results obtained, and a clear demonstration of the functionality. 0.20
Others  
 
Other comments and second exam session

To pass the subject, your overall weighted average must be equal to or greater than 5.00, and the average for each of the following components must be equal to or greater than 2.50: project, tests, exam development exercises, and practical exam. In other words, you need a score of 2.5 or higher for the combined project, the two course tests, the three problems in the final exam, and finally, 2.5 or higher for the individual practical exam in the laboratory.

There will be a second opportunity to take the theoretical part and another one for the practical part. You can choose to take one or both of these opportunities (while retaining the grade of the part you don't take, either the "theoretical" or the "practical" block, but not individual problem grades or test grades separately). The theoretical block will replace the entire theoretical block (exercises + control_1 + control_2) with the grade obtained in the test+problems exam of the second opportunity, and it will account for 50% of the final grade. The practical part corresponding to the project cannot be retaken, and the grade obtained in that part of the continuous assessment will count for 20% of the final grade. The new practical exam, which will account for 30%, will complete the final grade for the practical part in the second opportunity.

During the assessments, students are not allowed to use any communication devices. However, they can use printed manuals and notes.


Sources of information

Basic Microchip Technology Inc, ATmega48A/PA/88A/PA/168A/PA/328/P Data Sheet, Microchip Technology Inc, 2018
Microchip Technology Inc, AVR Instruction Set Manual, Microchip Technology Inc, 2020
Microchip Technology Inc, ATmega328P Xplained Mini User Guide, Microchip Technology Inc, 2020

Complementary Sepehr Naimi, The AVR Microcontroller and Embedded Systems Using Assembly and C: Using Arduino Uno and Atmel Studio, , 2017
Tianhomg Pan, Yi Zhu, Designing embedded systems with arduino. A fundamental technology for makers, ,
Roger L. Stevens, Serial communications : using pic microcontrollers , Square 1 Electronics, 2002
Predko, Michael, 123 PIC microcontroller experiments for the evil genius , McGraw-Hill, 2005
Manuel Jiménez, Rogelio Palomera, Introduction to embedded systems, using microcontrollers and the MSP430, ,

Recommendations

Subjects that continue the syllabus
INDUSTRIAL COMPUTER SCIENCE II/17204120
APPLICATIONS WITH MICROCONTROLLERS/17204205


Subjects that it is recommended to have taken before
FUNDAMENTALS OF COMPUTERS/17204002
THE FUNDAMENTALS OF PROGRAMMING/17204001
INDUSTRIAL COMPUTER SCIENCE I/17204119
DIGITAL ELECTRONICS/17204108
(*)The teaching guide is the document in which the URV publishes the information about all its courses. It is a public document and cannot be modified. Only in exceptional cases can it be revised by the competent agent or duly revised so that it is in line with current legislation.