ADVANTAGES. Student are often faced with problem of learning everything at once. They also do not have a habbit of automating some taks by writing scripts, ...
DEFINITION OF EMBEDDED SYSTEMS
Difficult to define, let’s list some properties instead User’s point of view “Invisible computers” Perform specific task(s) Connected to sensors and actuators Built into larger system Developer’s point of view Cross development and debugging Non standard hardware Limited resources Hardware / firmware codesign
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
THERE ARE SOME COMMON TASKS Those actions could be even called “standard tasks”, if I/O devices were not different for most applications
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
STANDARD SOFTWARE DESIGN CYCLE
It is more time consuming with embedded systems Theare are all usual phases, but cross target development means generated code should be downloaded to target (“FLASH burning”, used to be EPROM). Debugging requires cooperation between target resident monitor (or on-chip debugger), and debugger software on the host side.
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
TYPICAL MODERN DEBUG ENVIRONMENT
On-chip debugger and host software communicate through the JTAG port.
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
TYPICAL MODERN DEBUG ENVIRONMENT
Evaluation board could be used for prototype development.
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
EVALUATION BOARD USED FOR THE PROTOTYPE Standard compoments (CAN, LCD) could be used on-board, others should be added using expansion connectors. This operation requires HW skills.
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
PROTEUS USED INSTEAD OF REAL BOARD
8051 calculator with LM032 LCD (“real” HD44780 controller)
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
MANY STANDARD COMPONENTS, SOME ANIMATED Microchip PIC Evaluation Board
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
PROTEUS IS NOT A TOY
GNU chess running on LPC2124 ARM7
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
COMPLETE LABORATORY FOR SEVERAL CLASSES Shared interrupt example – schematic diagram
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
MANY ADVANCED INSTRUMENTS AVAILABLE Digital storage oscilloscope (DSO), Logic Analyzer (LA), various protocol analyzers (I2C, SPI)
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
DEBUGGING WITH PROTEUS Like the “real stuff” – installation of Keil AGDI driver Proteus schematic will look to the Keil development environment just like a real board with JTAG debugger connected. This could be even done remotely, between two PC computers over TCP/IP connection. Drivers for other environments are available (MPLAB, AVR Studio, etc).
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
DEBUGGING WITH PROTEUS Breakpoint stops the animation, “run” continues
2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education
PROTEUS PROS AND CONS ADVANTAGES Student are often faced with problem of learning everything at once. They also do not have a habbit of automating some taks by writing scripts, or defining macros. They want to go straight to the problem, and educators shoud provide that before time is wasted, and motivation is lost. With Proteus students can concentrate ot their application, and leave the environment simulation to the Proteus. Student are exposed to the “real world” components as many Proteus library components are carefully choosen by their engineers. There is wide selection of instruments that could be used for advanced level debugging. Documentation, and examples are excellent. Documents, and examples very often go far beyond simple tutorial lessons. DISADVANTAGES Many microcontrollers are supported, but not always with their advanced peripherals. It is not so much problem for education. For example, 8051 + external A/D could be used instead of 89LPC954 Real time simulation is not possible at clock rates much above 1 MHz, depending on the host PC. DSO connected to pins will show “real” timing (Proteus is cycle accurate), but it will be much slower than the real circuit. For some applications this is not a problem, if user perception of speed was not affected. Proteus does not simulate exact reset behavior, boot sequences, flash programming , and so on. This part of development is simplified, so students will not get the real sense of what programming the FLASH on board is like. ARM controller simulation is more expensive than some evaluation boards with JTAG emulator included. Since Proteus is not able to simulate most ARM peripherals (CAN ports, DMA transfer, Ethernet controller) cost / benefit ration is too high, compared to 8-bit microcontrollers Proteus licenses. 2010
Dražen Ćika, Darko Grundler: Proteus Virtual System Modelling used for microcontroller education