Embeded system session 6

Post on 03-Jun-2018

220 views 0 download

Transcript of Embeded system session 6

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 1/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 1

Embedded Systems Design

(EE-4314)

Fateen MubarakLecture # 113rd October 2013

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 2/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 2

Class Quiz (Solution)

Time 15 mins

• Calculate total time required to transmit 10bytes of data over serial protocol @115200 rate and two stop bits with noparity

• Calculate total time required to transmit 8words of data over serial protocol @ 2400rate with parity

• Number of ‘a’ is >= 2 && number of ‘m’ is >= 1: 

• Number of ‘a’ is = 2 && number of ‘m’ is = 2: 

• Marks 5

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 3/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 3

Raspberry Pi

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 4/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 4

History of Raspberry Pi

• Eben Christopher Upton: – PhD in Computer Engineering

 – Technical Director Broadcom

 – Executive director Pi Foundation

 – Designer of Raspberry Pi  

 – World's Top Young Innovators for

2012

• Raspberry Pi designs: – 2006

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 5/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 5

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 6/29

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 7/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 7

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 8/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 8

History of Raspberry Pi

• Eben Christopher Upton: – PhD in Computer Engineering

 – Technical Director Broadcom

 –  Executive director Pi Foundation

 – Designer of Raspberry Pi  

 – World's Top Young Innovators for

2012

• Raspberry Pi designs: – 2006

 –  August 2011 (Raspberry Pi α)

 – December 2011

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 9/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 9

Raspberry Pi Model A

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 10/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 10

History of Raspberry Pi

• Eben Christopher Upton: – PhD in Computer Engineering

 – Technical Director Broadcom

 –  Executive director Pi Foundation

 – Designer of Raspberry Pi  

• Raspberry Pi designs:

 – 2006

 –  August 2011 (Raspberry Pi α) – December 2011

 – 2012 Final version

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 11/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 11

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 12/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 12

PCB Internal Routing

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 13/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 13

Raspberry Pi Model A versus Model B

TECHNICAL FEATURES 

Raspberry Pi Model A  Raspberry Pi Model B 

Chip Broadcom BCM2835 SoC full HD multimedia

applications processor

Broadcom BCM2835 SoC full HD multimedia

applications processor

CPU 700 MHz Low Power ARM1176JZ-F Applications

Processor

700 MHz Low Power ARM1176JZ-F Applications

Processor

GPU  Dual Core VideoCore IV® Multimedia Co-Processor

Dual Core VideoCore IV® Multimedia Co-Processor

Memory  256MB SDRAM 512MB SDRAM

Ethernet  None onboard 10/100 Ethernet RJ45 jack

USB 2.0  Single USB Connector Dual USB Connector

Video Output  HDMI Composite RCA (PAL and NTSC) HDMI Composite RCA (PAL and NTSC)

Audio Output  3.5mm jack, HDMI 3.5mm jack, HDMI

Ethernet/Internet  No Yes

Onboard Storage  SD, MMC, SDIO card slot SD, MMC, SDIO card slot

Operating System  Linux Linux

Dimensions  8.6cm x 5.4cm x 1.5cm 8.6cm x 5.4cm x 1.7cm

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 14/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 14

Raspberry Pi Architecture

•On Board it has: – CORE:

•  ARM11 700 MHz Processor Chip

• 512 MB of Memory 

 – Interfaces:

•SDI Card Interface

• DSI Display (Display Serial Interface Standard)

• CSI Interface (Camera Serial Interface)

• Some GPIOs

• USB 2.0

• Ethernet

 – Display Interface:

• HDMI output

• Composite (RCA Video Out)

 –  Audio Out

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 15/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 15

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 16/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 16

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 17/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 17

The BCM-2835 Broadcom Chip

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 18/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 18

The BCM-2835 Broadcom Chip•

SoC (System on Chip)• This is a multimedia processor designed for mobile application andhas following on chip Cores/peripherals –  ARM 11 Processor Core

 – OpneGL Video Core GPU• Video Encoder Decore

• H.264 Encoder/Decoder

• Graphic Accelerator

 –  Audio Interface

 – LCD Interface

 – Camera Interface

 – On Chip Peripherals:• USB

• SPI

• GPIO

• I2C

• UART

• SD Card Interface

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 19/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 19

 ARM OS Support

• Microsoft – Windows XP Embedded

 – Windows CE

• Google – Google's Android 2.3 OS

• Linux

 – Fedora, Debian, Ubuntu

•  Android

• webOS

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 20/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 20

Understanding the Board

• On Board LED – There are 5 status LED's on the Raspberry Pi board

namely:

 – OK, PWR, FDX, LNK and 10M.

 – FDX, LNK, 10M are connected to the LAN IC

 – D5(Green) - OK - SDCard Access

 – D6(Red) - PWR - 3.3 V Power

 – D7(Green) - FDX - Full Duplex (LAN) (Model B) – D8(Green) - LNK - Link/Activity (LAN) (Model B)

 – D9(Yellow) - 10M - 10/100Mbit (LAN) (Model B)

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 21/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 21

Setup Requirement for Pi

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 22/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 22

Pi Setup

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 23/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 23

Reading Material

• Please read the following article (MUST)

 – http://www.embedded.com/design/other/4395

443/How-FPGAs--multicore-CPUs--and-

graphical-programming-are-changing-embedded-design 

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 24/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 24

LCD Controllers

• LCD (Liquid Crystal Display)is a low cost, low power

device capable of displaying

text and images

• Why LCD is extremelycommon in Embedded

Systems

• Display information

 – Debug

 – Status

 – INPUT/OUTPUT

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 25/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 25

LCD ControllersFeatures• Low Power

 – 3.3 v to 5 v

• Easy Interface – 8 bit interface with MCU

 – 4 bit interface with MCU

• Different Display configurations• Programmable RAM

 – For Special characters

 – For Chinese characters

• Pin Compatibility

• Back Light

• Wide Range of Instructions – Display clear, cursor home, display on/off, cursor on/off, display

character blink, cursor shift, display shift

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 26/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 26

LCD Controllers

• RS – MPU Selects registers.

 – 0: Instruction register (for write)

 – 1: Data register (for write and

read)

• R/W

 – MPU Selects read or write.

 – 0: Write

 – 1: Read

• E

 – MPU Starts data read/write.

Microcontroller 

D0-D7

E

RS

R/W’

LCD

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 27/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 27

LCD Controllers

Write Operation

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 28/29

By Fateen Mubarak EMBEDDED SYSTEMS DESIGN (EE 4314) 28

LCD Controllers

Read Operation

8/12/2019 Embeded system session 6

http://slidepdf.com/reader/full/embeded-system-session-6 29/29