Transcript
Page 1: L7 starting-to-use-mcu

General Aspects of Computer Organization(Lecture-7)

R S Ananda Murthy

Associate Professor and HeadDepartment of Electrical & Electronics Engineering,

Sri Jayachamarajendra College of Engineering,Mysore 570 006

R S Ananda Murthy General Aspects of Computer Organization

Page 2: L7 starting-to-use-mcu

Prominant MCU Manufacturers

R S Ananda Murthy General Aspects of Computer Organization

Page 3: L7 starting-to-use-mcu

Factors Affecting Choice of MCU

Memory requirement.I/O port requirement.Communication features required.Hardware peripherals required like timers, counters, ADCs,DACs, comparators, multipliers, PWM signal generator.Speed – affected by word length and clock frequency.Packaging, cost and availability.Power constraints.In-circuit programming and debugging facility.Availability of user documentation, development kits,software development tools and programmers.

R S Ananda Murthy General Aspects of Computer Organization

Page 4: L7 starting-to-use-mcu

Facilities Required in MCU Development Platform

Editor – required to write the program in assemblylanguage or in higher level language.Assembler – translates assembly language program tomachine code.Compiler – translates higher level language program tomachine code.Debugger – used to detect errors in program.

R S Ananda Murthy General Aspects of Computer Organization

Page 5: L7 starting-to-use-mcu

Facilities Required in MCU Development Platform

Programmer – hardware used to copy the machine codeinto the program memory of the MCU.Simulator – used to test the working of a program withoutloading it into the MCU.IDE – Integrated Development Environment – is the GUIfor all the development tools.Development board – hardware having the chosen MCUand associated peripheral devices.

R S Ananda Murthy General Aspects of Computer Organization

Page 6: L7 starting-to-use-mcu

Steps to Get Started with an MCU

Familiarize with the package and signals at various pins.Understand the internal architecture by going through theblock diagram.Study the assembly language instruction set.Practise assembly language programming.Understand how to use various internal facilities liketimers/counters, I/O, serial I/O, ADC/DAC, PWM etc.Understand how to program the microcontroller usinghigher level language like C/C++ etc.Understand how to connect external devices to themicrocontroller.

We may have to repeat all these steps several times to use anMCU comfortably.

R S Ananda Murthy General Aspects of Computer Organization

Page 7: L7 starting-to-use-mcu

License

This work is licensed under aCreative Commons Attribution 4.0 International License.

R S Ananda Murthy General Aspects of Computer Organization


Top Related