Universitatea Babeş-Bolyai Cluj-Napoca
Facultatea de Matematică şi Informatică
Ciclul de studii: Licenţă
Domeniul: Calculatoare şi tehnologia informaţiei
Programul de studii: Ingineria informatiei - in limba engleza
Limba de predare: Engleză

SYLLABUS

I. General data
Code	Subject	
MIC0008	Design with Microprocessors	

Semester	Hours: C+S+L+P	Category	Status	
4	3+0+2+0	speciality	compulsory	

II. Full status faculty members
Name and	Scientific	Didactic	Department	Type of activity	
surname	title	title		C	S	L	
TUNYAGI Arthur	Dr.	Lector	Departamentul de Fizica al liniei maghiare	*			

Associated faculty members
Name and	Scientific	Institution	Type of	Type of activity	
surname	title		position	C	S	L	

III. Course objectives
During the course the students need to become familiar with:_- Analysis of a problem and optimal solution finding regarding hardware and software requirements for an embedded system_- Mapping critical parameters taking into account the specific of the problem (time requirements (real time)), electric parameters, mechanical parameters (mechatronics) )
- Designing the hardware, electric circuit building, printed circuit board design, using CAD programs (ex. Eagle), writing Gerber plots.
- Choosing the right microcontroller based on the previous steps
- Writing the software for the microcontroller
- Efficient peripherals management to lighten the CPU load
- Auto-recovery from errors
- Communication, data transmission, error detection and correction (CRC), data encapsulation	

IV. Course contents
Electronics : network analysis, operational amplifiers, MOS transistors, digital circuits, ADC and DAC convertors, CAD design
Microcontrollers : CPU, peripheral units, hardware/software mechanisms specific to the systems with processors 
Communication : Serial Port, SPI, TWI, 1W, USB, Ethernet	

V. Bibliography
1) Steven F. Barret, Daniel J. Pack: Microcontrollers fundamentals for Engineers and Scientists
2) Atmel AVR Microcontroller primer: programming and interfacing
3) Atmel ATMega 16 detailed description
4) EvB 4.3 User’s Manual
5) http://www.atmel.com/dyn/products/devices.asp?family_id=607
6) http://www.atmel.com/dyn/products/app_notes.asp?family_id=607
7) Oliver H. Bailey, Embedded Systems Desktop Integration
8) J. Ganssle, Embedded Hardware
9) J. Ganssle, The Art of Designing Embedded Systems, second edition
10) Michael J. Donahoo, TCP/IP Socket In C
11) Beej’s Guides , TCP/IP, http://beej.us/guide/
12) http://www.beyondlogic.org/usbnutshell/usb-in-a-nutshell.pdf
13) Peter Bates, PC Intefacing using USB
14) Fred Eady, Implementing 802.11 with microcontrollers: Wireless Networking for Embedded Systems Designers
15) Dogan Ibrahim, SD Card Projects Using PIC Microcontroller
16) Dogan Ibrahim, Advanced PIC Microcontroller Projects in C, From USB to RTOS with the PIC18F Series.	

VI. Thematic of didactic activities per weeks
Analysis of a specified problem and identifying the critical parameters. Presenting the objective of the course and the motivation.
LABORATORY: introduction to Eagle
Electronics: Analog (network analysis, operational amplifiers, bipolar and MOS transistors) Digital (logics gates, combinational and sequential circuits, finite-state automaton)
LABORATORY : designing circuits/interconnections in Eagle (LABORATORY HOMEWORK 1)
Analog/digital and digital/analog conversion, CAD design
LABORATORY : editing libraries in Eagle, Gerber files, (LABORATORY HOMEWORK 2)
Introduction to the RISC series microcontrollers At(X)mega generation (architecture, memory organization, central unit, peripheral units)
LABORATORY : introducing the development board EVB 4.3, and the tools we use to program and interface it: usbasp, TeraTerm, ICCAVR, eXtreme Burner, (LABORATORY HOMEWORK 3)
I/O Ports and additional functions, register structure, integrated development environments ICCAVR , CVAVR, GCC, AVRStudio
LABORATORY : software multiplexer for a seven-segment display on four digits (porturi I/O ports programming), (LABORATORY HOMEWORK 4)
Serial communication USART, COM ports, USB-RS232 conversion, Virtual COM Vports, RS485, RS422 standards, the SN75176 circuit
LABORATORY : Development for a protocol to transmit commands/data on a serial port (Visual C(PC) + ICCAVR (At(X)mega))), (LABORATORY HOMEWORK 5)
Interrupts, task distribution to peripheral units, EVB4.3 development board.Introduction to timers LABORATORY : Development of a real time application that has 3 tasks (communication, soft multiplexing, timer), (LABORATORY HOMEWORK 6)
On-board communication channels SPI, TWI, 1-W, error detection with CRC, data encapsulation
LABORATORY : Application development for a real time clock RTC and EEPROM memory using the TWI protocol (LABORATORY HOMEWORK 7)
Timers and efficient use of timers, PWM, OutputCompare, InputCapture, prescaller
LABORATORY : Development of an IR communication protocol, server/client system, data encapsulation / decoder for the NEC and RC5 protocols, (LABORATORY HOMEWORK 8)
Other peripherials: Analog comparer, ADC convertor, making DAC with PWM, EEPROM memory, WatchDogTimer, Special registers for configuration purposes (oscillator type, reset as a function of source voltage, etc.)
LABORATORY : Using the ADC, PWM and WatchDogTimer, (LABORATORY HOMEWORK 10)
Communication channels with the PC, customizing a USB driver, Ethernet connection (stream/datagram)
LABORATORY : Customizing a driver for FTDI, (VID/PID, descriptor,*.inf, interface *.dll -> application)/ Using the LCD display with HD44790, (LABORATORY HOMEWORK 11) 
Applications 1: RF/ bluetooth communications, pozition sensor, stepper motors, servomotors / Thermometer using the 1W protocol
LABORATORY : Bluetooth communication using BTM-222 / RF communication using RFM12BP, 1W protocol example using DS18B20
Applications 2: Interfacing a CCD camera, interfacing a graphical LCD, touch screen, / Interfacing an SD Card on SPI.
LABORATORY : Example using OV7670, example using TFT 240RGB*320
Applications 3: Multimodal interface Space Interface Device for Artificial Reality (SPIDAR)
LABORATORY : Possibility to make up skipped lab exercises, discussion	

VII. Didactic methods used

VIII. Assessment
80% - 100% - final exam result (oral exam)
0% - 20% - activity during the semester (laboratory, activities at courses)

               REMARKS

The only accepted examination form is an oral exam !
There will be 10 laboratory homework during the weeks 2-11 that need to be solved by the students. To enter the exam, ALL laboratory write-ups need to be submitted the latest at the last lab. (During the exam no late lab write-up will be admitted).	

IX. Additional references

	Dean,							Department head,

	Date,							Course responsible,
								Arthur TUNYAGI