Embedded System Vs Desktop System q Desktop Vs
Embedded System Vs Desktop System q Desktop Vs. E. S • Desktop / Laptop – General purpose computer – Used for playing games, word processing, accounting, SDT etc. , • Embedded System – Single Purpose and – fixed embedded software for specific job • Typical Examples – A/C, VCD/DVD Player, Printer, Fax m/c, Mobile phone etc – Customized embedded hw + fixed embedded sw (firmware) + specific processor • to meet the specific requirement
Microprocessors • CPU on chip, Should Interface memory and IO device • Flexibility and versatility – make small as well as big systems • General purpose – not ROM based – Application software is not stored in ROM Ex: DTP PC applications – In PC – software's are stored in secondary memory and transferred to RAM as and when required • Variety of addressing modes to transfer instruction and data • Very powerful systems – general purpose and versatile • Microprocessor available today with mainframe capabilities • VLSI – paves way to put all the sub systems on a single
Micro Controllers • A true system on chip – several applications are possible with this self contained chip – Not require powerful CPU – Very limited amount of RAM and ROM as well as IO Ports • It can function as a complete system without any external components • provides flexibility to use microcontroller for variety of applications • Embedded apps – meant for particular app – not necessary to store s/w in secondary storage • Application software is ROM based • ROM is part of chip – IS(Instruction Set) designed for efficient transfer of instruction to the CPU within the chip • Microcontroller are mainly designed for embedded applications
Microprocessor Vs Microcontroller § § § § § Microprocessor Collection of on/off SWI on Silicon for computations CPU is stand-alone, RAM, ROM, I/O, timer are separate designer can decide on the amount of ROM, RAM and I/O ports. Expandable Expensive High Speed (1000 MIPS) General purpose and Versatile Large Architecture (32 b, 64 b) Lots of IO and Peripherals externally connected § § § § § Microcontroller Small and self-suffice So. C to control devices CPU, RAM, ROM, I/O and timer are all on a single chip fix amount of on-chip ROM, RAM, I/O ports Not Expandable – no external bus interface for applications in which cost, power and space are critical Low speed, on the order of 10 KHz – 20 MHz single-purpose Small usually an 8 b Limited IO, enough for intended app
Microprocessor Vs Microcontroller Microprocessor Microcontroller
Arduino • Arduino is the name of the little electronic circuit board • Is used as a tool to investigate and explore programming & electronics. • It is manufactured by arduino. cc a company led by Massimo Banzi, CEO of Arduino. • Is an open-source prototyping platform based on easy-to-use hardware and software. • Arduino Deplyoment boards are able to – read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online
Development Board • A printed circuit board designed to facilitate work with a particular microcontroller. • Typical components include: • • power circuit programming interface basic input; usually buttons and LEDs I/O pins
The Arduino Development Board
Three modules in Arduino • A physical piece of Hardware • A programming environment • A community and philosophy
Getting Started • Check out: http: //arduino. cc/en/Guide/Home. Page 1. Download & install the Arduino environment (IDE) 2. Connect the board to your computer via the USB cable 3. If needed, install the drivers 4. Launch the Arduino IDE 5. Select your board 6. Select your serial port 7. Open the blink example 8. Upload the program
Try It: Connect the USB Cable
Arduino IDE • See: http: //arduino. cc/en/Guide/Environment for more information
Select Serial Port and Board
Status Messages
Using Arduino
Add an External LED to pin 13 • File > Examples > Digital > Blink • LED’s have polarity – Negative indicated by flat side of the housing and a short leg
A Little Bit About Programming • Code is case sensitive • Statements are commands and must end with a semi-colon • Comments follow a // or begin with /* and end with */ • loop and setup
Our First Program
- Slides: 18