INDUSTRIAL ELECTRONIC SYSTEMS
cod. 13131

Academic year 2015/16
3° year of course - Second semester
Professor
Academic discipline
Elettronica (ING-INF/01)
Field
"altre conoscenze utili per l'inserimento nel mondo del lavoro"
Type of training activity
More
42 hours
of face-to-face activities
6 credits
hub: PARMA
course unit
in - - -

Learning objectives

Allow the scheduling of a specific type of microcontroller.

Prerequisites

Numbering systems
Combinatorial and sequential logic
' C ' Language

Course unit content

Architecture and programming of microcontrollers.
Use of tabs containing microcontrollers.

Full programme

GENERAL NOTIONS

Birth and development of microcontrollers for dagli anni ' 80 today.
The advantages in the use of microcontrollers.
Microcontroller architecture: ALU, program Memory, data memory, peripherals
Internal bus; 8/16/32 micro bits; Micro CISC and RISC.
Harvard architecture and Von-Neumann
The clock generator.
The most common devices: I lines, timers, for converters
Some more complex devices: Manager PWM, USART IIC protocol handler
Other devices available on the most recent microcontrollers.

POLLING AND INTERRUPTS

Polling and interruptions in comparison.
I lines and breaks
Assigning IRQ line to a line of I
Enabling and reply to requests I

RENESAS ENVIRONMENT E2-STUDIO
Renesas development environment "E2 Studio"
Project Setup, with choice of micro and programming software-debugging
Knowledge (sufficiently wide) C compiler and its syntax (standard C99).

RENESAS YRDKRX63N CARD the RENESAS YRDKRX63N schema Reading
The CPU R5F563NB, essential features. Assignment (demo tab) of pin assignments to resources.
Master oscillator and oscillator for clock
Reset

YRDKRX63N And BOARD DEVELOPMENT ENVIRONMENT "E2 Studio".

The RENESAS YRDKRX63N development environment and Renesas "E2 Studio".
Connection, display control, loading a project
Environmental projects Renesas "E2 studio" and the YRDKRX63N card.
Edit and compile. Finding errors.
Debugging and placement of break-points.
How to modify the C code Renesas, to answer the call of
interruption.

DETAILS OF SCORECARD

The I disposisizione lines on the Board.
The programming port signal irezione:d, association with IRQ (if any)
Led control onboard demonstration (from LED4 at LED15).
Essential code for switching on a led
BUTTONS, WORKING CONTACT AND INTERRUPTIONS

Buttons for you: (SW1) Switch1, Switch2 Switch3 (SW2), (SW3);
IRQ assignments for pulasnti SW1, SW2 and SW3;
Interception of interruptions from button.
Problem of rebounds
Code example for the IRQ interception coming from three different buttons.
IRQ sensitivity (low level or at: ascending, descending, or both)
Counting example: forward, backward activated by SW1 SW2 (next) and (back) via IRQ
Led display with the binary value of the reference count reached.

TIMERS

Time measurement and counting of events: timer/counters at 8 and 16 bits available on micro R5F563NB
8-bit timer from coupled to form a 16-bit timer.
Prescaler and its programming.
Interrupt to transition 0x0000 and 0xFFFF its programming
Example of measurement of distance between two events, for example between the pressure of tasi (start) SW1-SW2 (stop).

AD CONVERTERS

Conversion to successive approximations
General principles.
The VrefHi and VrefLo (read the values from the YRDKRX63N tab)
Example of conversion taking the voltage value from the potentiometer VR1 installed YRDKRX63N tab.
Start the conversion
End of conversion and generation of signal interruption.

PWM-MANAGEMENT
General concepts on PWM
Analysis of a project that can adjust the PWM output to determine
the brightness of an led (or the speed of an engine).

Bibliography

Slides relating to the course.
Data sheet of the microcontroller examined.

Teaching methods

Lectures using specific software
Using cards with micro

Assessment methods and criteria

Written verification and discussion of the project.

Other information

The student will have to accomplish a project comprising a microcontroller.