untitled

Similar documents
hd1300_k_v1r2_Final_.PDF

1.LAN의 특징과 각종 방식

1217 WebTrafMon II

MR-3000A-MAN.hwp

Microsoft PowerPoint ppt


T100MD+

APOGEE Insight_KR_Base_3P11

1

歯I-3_무선통신기반차세대망-조동호.PDF

00829A_SHR-6164-KOR.indb

chapter4

인켈(국문)pdf.pdf

歯AG-MX70P한글매뉴얼.PDF

歯Cablexpert제안서.PDF

untitled

() Aloha Netowrk ether(,, )network Ehternet, DEC, ( DIX(DEC, Intel, Xerox) IEEE(, ) 5 9,, (Xerox) (Bob Metcalfe), (, ) A

°í¼®ÁÖ Ãâ·Â

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 -

歯이시홍).PDF

ARMBOOT 1

KDTÁ¾ÇÕ-1-07/03

TTA Verified : HomeGateway :, : (NEtwork Testing Team)

KDTÁ¾ÇÕ-2-07/03

DE1-SoC Board

SRC PLUS 제어기 MANUAL

BJFHOMINQJPS.hwp

Microsoft Word - JAVS_UDT-1_상세_메뉴얼.doc

(SW3704) Gingerbread Source Build & Working Guide

solution map_....

한글사용설명서

untitled

LCD Display


Microsoft PowerPoint - ch03ysk2012.ppt [호환 모드]

<3031B0ADB9CEB1B82E687770>

Voice Portal using Oracle 9i AS Wireless

<32382DC3BBB0A2C0E5BED6C0DA2E687770>

untitled

PowerPoint 프레젠테이션

Coriolis.hwp

6주차.key

Microsoft PowerPoint - User Manual pptx


Microsoft Word - Installation and User Manual_CMD V2.2_.doc

- 이 문서는 삼성전자의 기술 자산으로 승인자만이 사용할 수 있습니다 Part Picture Description 5. R emove the memory by pushing the fixed-tap out and Remove the WLAN Antenna. 6. INS

airDACManualOnline_Kor.key

Chap06(Interprocess Communication).PDF

VZ94-한글매뉴얼

Microsoft Word - CL5000,5500_KOR_UM_ _.doc

슬라이드 1

untitled

PowerPoint 프레젠테이션

FMX M JPG 15MB 320x240 30fps, 160Kbps 11MB View operation,, seek seek Random Access Average Read Sequential Read 12 FMX () 2

untitled

<4D F736F F F696E74202D20C0BDBCBA484D4920C0FBBFEB20C5DAB7B9B8C5C6BDBDBA20B4DCB8BBB1E228B9DFC7A5C0DAB7E129>

Microsoft Word - FS_ZigBee_Manual_V1.3.docx

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서

untitled

K7VT2_QIG_v3

8-VSB (Vestigial Sideband Modulation)., (Carrier Phase Offset, CPO) (Timing Frequency Offset),. VSB, 8-PAM(pulse amplitude modulation,, ) DC 1.25V, [2

Microsoft PowerPoint Multiplexing

H3050(aap)

을 할 때, 결국 여러 가지 단어를 넣어서 모두 찾아야 한다는 것이다. 그 러나 가능한 모든 용어 표현을 상상하기가 쉽지 않고, 또 모두 찾기도 어 렵다. 용어를 표준화하여 한 가지 표현만 쓰도록 하여야 한다고 하지만, 말은 쉬워도 모든 표준화된 용어를 일일이 외우기는


USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

MAX+plus II Getting Started - 무작정따라하기

Microsoft PowerPoint - AC3.pptx

PCServerMgmt7

ecorp-프로젝트제안서작성실무(양식3)

thesis

untitled

Microsoft Word - 1-차우창.doc

DDX4038BT DDX4038BTM DDX4038 DDX4038M 2010 Kenwood Corporation All Rights Reserved. LVT A (MN)

10X56_NWG_KOR.indd

ºÎ·ÏB

untitled

Remote UI Guide

Microsoft Word _whitepaper_latency_throughput_v1.0.1_for_

manual pdfÃÖÁ¾

TCP.IP.ppt

<4D F736F F F696E74202D20454D43BCB3B0E8B4EBC3A5BBE7B7CA2828C1D629B8B6B7E7C0CEC6F75FBDC5C1D6C8A3292E707074>

DW 개요.PDF

Sena Device Server Serial/IP TM Version

untitled

CD-RW_Advanced.PDF

Microsoft PowerPoint - CHAP-03 [호환 모드]


Å©·¹Àγ»Áö20p

CANTUS Evaluation Board Ap. Note

½Éº´È¿ Ãâ·Â

개요

2

Bluetooth

Manufacturing6

LAN케이블링

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

CAN-fly Quick Manual

untitled

<333820B1E8C8AFBFEB2D5A B8A620C0CCBFEBC7D120BDC7BFDC20C0A7C4A1C3DFC1A42E687770>

Transcription:

Device Driver in Linux Embedded System Lab. II

UART LCD Ethernet USB Embedded System Lab. II 1

Asynchronous Serial Communication -- UART Universal asynchronous receiver/transmitter Transmit bits in a single channel simplex (one way) half-duplex (one direction at a time) full-duplex (two way) A sequence of bits packet or character ASCII code 7 bits for 128 characters (alphabet, numerical, and control) fixed length or variable length Start, stop, and parity bits Embedded System Lab. II 2

Connection and signal characteristics Data terminal equipment and data communication equipment Logic '1' (marking) -3v to -25v with respect to signal ground Logic 0 (spacing) +3v to +25v Not assigned between -3v and +3v (a transition region) EIA RS232 Embedded System Lab. II 3

RS232(2) DTE FEP DB25 DCE MOD DB25 1 FG --------------- 1 FG 2 TX --------------> 2 TX 3 RX <-------------- 3 RX 4 RTS --------------> 4 RTS 5 CTS <-------------- 5 CTS 6 DSR <-------------- 6 DSR 7 SG --------------- 7 SG 8 DCD <-------------- 8 DCD 20 DTR --------------> 20 DTR Flow control (handshaking) signals to avoid buffer overflow or lock-up. RTS : to prepare the DCE device for accepting transmission CTS : to inform the DTE device that transmission may begin DCD: data carrier detected DSR: DCE ready SG: system ground DTR: DTE ready Embedded System Lab. II 4

Signal Format for ASCII Character data, start, stop, and (even or odd) parity bits Embedded System Lab. II 5

UART(1) PC Com Port - EIA-574 RS-232 pin out DB-9 pin used for Asynchronous Data Embedded System Lab. II 6

UART(2) Is Your Interface a DTE or a DCE? Find out by following these steps: The point of reference for all signals is the terminal (or PC). Measure the DC voltages between (DB25) pins 2 & 7 and between pins 3 & 7. Be sure the black lead is connected to pin 7 (Signal Ground) and the red lead to whichever pin you are measuring. If the voltage on pin 2 (TD) is more negative than -3 Volts, then it is a DTE, otherwise it should be near zero volts. If the voltage on pin 3 (RD) is more negative than -3 Volts, then it is a DCE. If both pins 2 & 3 have a voltage of at least 3 volts, then either you are measuring incorrectly, or your device is not a standard EIA-232 device. Call technical support. In general, a DTE provides a voltage on TD, RTS, & DTR, whereas a DCE provides voltage on RD, CTS, DSR, & CD. Embedded System Lab. II 7

UART(3) This is a standard 9 to 25 pin cable layout for async data on a PC AT serial cable Description Signal 9-pin DTE 25-pin DCE Source DTE or DEC Carrier Detect CD 1 8 from Modem Carrier Detect RD 2 3 from Modem Transmit Data TD 3 2 from Terminal/Computer Data Terminal Ready DTR 4 20 From Terminal/Computer Signal Ground SG 5 7 from Modem Data Set Ready DSR 6 6 from Modem Request to Send RTS 7 4 from Terminal/Computer Clear to Send CTS 8 5 from Modem Ring Indicator RI 9 22 from Modem Embedded System Lab. II 8

UART(4) RS-232 interface RS-232(EIA Std.) applicable to the 25 pin interconnection of Data Terminal Equipment (DTE)and Data Communication Equipment (DCE) using serial binary data Pin Description EIA CKT From DCE To DCE Pin Description EIA CKT From DCE To DCE 1 2 Frame Ground Transmitted Data AA BA D(Data) 14 15 Secondary Transmitted Data Transmitted Sig. Element Timing SBA DB T(Timing) D 3 Received Data BB D 16 Secondary Received Data SBB D 4 Request Data CA C(Control) 17 Received Sig. Element Timing DD T 5 Clear to Send CB C 18 Undefined 6 Signal Set Ready CC C 19 Secondary Request to Send SCA C 7 Singnal Gnd/Common Return AB 20 Data Terminal Ready CD C 8 11 12 13 Rcvd. Line Signal Detector Undefined Secondary Rcvd. Line Sig. Detector Secondary Clear to Send CF SCB C C C 21 22 23 24 25 Sig. Quality Detector Ring Indicator Data Sig. Rate Selector(DCE) Data Sig. Rate Selector(DTE) Undefined CG CE CI CH C C C C T Embedded System Lab. II 9

UART(5) RS232D used RJ45 type connectors (similar to telephone connectors) Pin No. Signal Description Abbr. DTE DCE 1 DCE Ready, Ring Indicator DSR/RI 2 Received Line Signal Detector DCD 3 DTE Ready DTR 4 Signal Ground SG 5 Received Data RxD 6 Transmitted Data TxD 7 Clear To Send CTS 8 Request To Send RTS Embedded System Lab. II 10

LC()? Liquid Crystal Display(1),.. Embedded System Lab. II 11

Liquid Crystal Display(2) LCD LCD ( W/cm2). ( 10V) IC,. Embedded System Lab. II 12

Liquid Crystal Display(3) (mm), ( cm) ( mm ). (portable)..,. ( m).. (back light).. (-30-40). Embedded System Lab. II 13

LCD LCD LCD LCD (electrically addressed) LCD (optically addressed) LCD Embedded System Lab. II 14

LCD 'OFF',. (.) 'ON',. (.),. Embedded System Lab. II 15

LCD Hardware overview PXA255 PXA250 Core MMU Interrupt Controller Bridge Dynamic Memory Controller LCD Controller DMA GPIO TFT LCD & Touch screen ADS 7843 LCD CON Embedded System Lab. II 16

(Ethernet)(1) Ethernet Commonly used to refer to all carrier sense multiple access collision detection (CSMA/CD) LANS that generally conform to Ethernet specifications, including IEEE 802.3 Embedded System Lab. II 17

Ethernet(2) (Signaling) (Base-band) Manchester digital Encoding (Broadband) differential PSK (data rate) 1~100Mbps Embedded System Lab. II 18

Baseband: Ethernet(3) ( ) Mbps 10Base2:, 185m 10Base5:, 500m 10Base-F: 10Base-T: Twisted Pair cable (Broadband): ( PSK) : 10Broad36 Embedded System Lab. II 19

Ethernet(4) IEEE 802 Embedded System Lab. II 20

Ethernet(5) (Frame Format) Preamble(7) - alert, timing, start synchronization SFD(Start frame delimiter) - DA(Destination address) - SA(Source address) - PDU / 802.2 (PDU) - 46~1500 CRC -, CRC-32 Embedded System Lab. II 21

Ethernet(6) (Control) HDLC I-Frame S-Frame U-Frame P/F N(S) N(R) Code Poll/final bit Embedded System Lab. II 22

ACCESS Method : CSMA/CD Ethernet(7) Carrier Sense Multiple Access with Collision Detection : "Listen before talk" Node Common Line Data : Listen before talk : Collision : Listen while talk, Embedded System Lab. II 23

Ethernet(8) CSMA/CD,,, jamming jamming Carrier Sense Multi Access Collision Dection No Yes No Yes No Yes Embedded System Lab. II 24

Ethernet Controller Ethernet Hardware SMSC 10/100 Ethernet Single Chip LAN91C111 Internal 32Bit Wide Data Path 8Kbytes Internal Memory (Receive and Transmit FIFO Buffers) External 25MHz-output pin for an external PHY and MAC MSC0,1 - Static Chip Select 1,2 (Bank 1,2) Base Address = 0x04000_0000 (Pri) 0x0800_0000(sec) Primary Ethernet D(31:0) Secondary Ethernet D(31:0) Logic ncs1 ncs2 ADDR (15:2) WE# OE# A(15:2) DQM(3:0)# WE# OE# A(15:2) DQM(3:0)# Embedded System Lab. II 25

Universal Serial Bus USB(1) Motivation Connection of the PC to the telephone Ease-of-use Port expansion Goals for the Universal Serial Bus Ease-of-use for PC peripheral expansion Low-cost solution that supports transfer rates up to 480 Mb/s Full support for real-time data for voice, audio, and video Protocol flexibility for mixed-mode isochronous data transfers and asynchronous messaging Integration in commodity device technology Comprehension of various PC configurations and form factors Provision of a standard interface capable of quick diffusion into product Enabling new classes of devices that augment the PC s capability Full backward compatibility of USB 2.0 for devices built to previous versions of the specification Embedded System Lab. II 26

Universal Serial Bus USB (2) Feature Easy to use for end user Single model for cabling and connectors Electrical details isolated from end user (e.g., bus terminations) Self-identifying peripherals, automatic mapping of function to driver and configuration Dynamically attachable and reconfigurable peripherals Wide range of workloads and applications Suitable for device bandwidths ranging from a few kb/s to several hundred Mb/s Supports isochronous as well as asynchronous transfer types over the same set of wires Supports concurrent operation of many devices (multiple connections) Supports up to 127 physical devices Supports transfer of multiple data and message streams between the host and devices Allows compound devices (i.e., peripherals composed of many functions) Lower protocol overhead, resulting in high bus utilization Embedded System Lab. II 27

Universal Serial Bus USB (3) Isochronous bandwidth Guaranteed bandwidth and low latencies appropriate for telephony, audio, video, etc. Flexibility Supports a wide range of packet sizes, which allows a range of device buffering options Allows a wide range of device data rates by accommodating packet buffer size and latencies Flow control for buffer handling is built into the protocol Robustness Error handling/fault recovery mechanism is built into the protocol Dynamic insertion and removal of devices is identified in user-perceived real-time Supports identification of faulty devices Synergy with PC industry Protocol is simple to implement and integrate Consistent with the PC plug-and-play architecture Leverages existing operating system interfaces Embedded System Lab. II 28

Universal Serial Bus USB (4) Low-cost implementation Low-cost subchannel at 1.5 Mb/s Optimized for integration in peripheral and host hardware Suitable for development of low-cost peripherals Low-cost cables and connectors Uses commodity technologies Upgrade path Architecture upgradeable to support multiple USB Host Controllers in a system Embedded System Lab. II 29

Universal Serial Bus USB (5) Embedded System Lab. II 30

Universal Serial Bus USB (6) Taxonomy of Application Space Embedded System Lab. II 31

USB H/W Architectural(1) Physical Interface Embedded System Lab. II 32

USB H/W Architectural(2) Embedded System Lab. II 33

USB Host Controller Host Controller OHCI(Open Host Controller Interface : Compaq ) UHCI(Universal Host Controller Interface : Intel ) capability USB Client Driver USB Core Host Controller Driver Host Controller (Compaq or Intel) Embedded System Lab. II 34 Linux USB Device Driver Stack

USB Hub enable/disable reset/resume robustness/recover Embedded System Lab. II 35

USB Data Flow Type Control Transfers: Used to configure a device at attach time and can be used for other device-specific purposes, including control of other pipes on the device. Bulk Data Transfers: Generated or consumed in relatively large and bursty quantities and have wide dynamic latitude in transmission constraints. Interrupt Data Transfers: Used for timely but reliable delivery of data, for example, characters or coordinates with human-perceptible echo or feedback response characteristics. Isochronous Data Transfers: Occupy a prenegotiated amount of USB bandwidth with a prenegotiated delivery latency. (Also called streaming real time transfers). Embedded System Lab. II 36

USB ( ), (client) USB Embedded System Lab. II 37

USB host controller low level (SIE) H/W + S/W USB system S/W Client S/W standard device S/W Embedded System Lab. II 38

USB bus interface low level (SIE) USB logical device Function common view point high-level Embedded System Lab. II 39

, unidirection, transfer S/W owner endpoint FIFO : stream() message(usb ) default control pipe : endpoint 0 map 1 S/W client Embedded System Lab. II 40

USB Embedded System Lab. II 41