ITÜ COMPUTER ENGINEERING INTERCONNECTION PROTOCOLS PROJECT PRESENTATION Ersan Öztürk-504041515 26/12/2005 JAVA RADIO.

Slides:



Advertisements
Similar presentations
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
Lecture 8: Serial Interfaces
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
EET Advanced Digital Parallel Ports. n In contrast to serial ports, parallel ports ‘present’ all bits at one time. n ‘The parallel port reflects.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
680XX Hardware Interface Outline Goal Reading
Interfacing. This Week In DIG II  Basic communications terminology  Communications protocols  Microprocessor interfacing: I/O addressing  Port and.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Input/Output and Communication
Building an Application Server for Home Network based on Android Platform Yi-hsien Liao Supervised by : Dr. Chao-huang Wei Department of Electrical Engineering.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The OSI Model and the TCP/IP Protocol Suite
University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi.
2 Lines Electronics I 2 C Analyzer Ching-Yen Beh Robert S. Stookey Advisor: Dr. J. W. Bruce.
SERIAL BUS COMMUNICATION PROTOCOLS
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Computer Organization CSC 405 Bus Structure. System Bus Functions and Features A bus is a common pathway across which data can travel within a computer.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
VERIFICATION OF I2C INTERFACE USING SPECMAN ELITE By H. Mugil Vannan Experts Mr. Rahul Hakhoo, Section Manager, CMG-MCD Mr. Umesh Srivastva, Project Leader.
Spring EE 437 Lillevik 437s06-l2 University of Portland School of Engineering Advanced Computer Architecture Lecture 2 NSD with MUX and ROM Class.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
4.0 rtos implementation part II
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Introduction to Computing: Lecture 4
ECE 493T9 Real Time Embedded System Tutorial Set 3 June 10, Spring 2008.
PIT: Programmable Interval Timer
MICROPROCESSOR INPUT/OUTPUT
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
Autonomous Helicopter James LydenEE 496Harris Okazaki.
The Mechanics Of Computers The Operating System (OS) & Hardware.
MICROPROCESSOR AND MICRO CONTROLLER
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
APPLICATION OVER I2C Kıvanç ÖZBEK What is I2C? 2-wired communication interface Communication protocol used in small areas Defined in 1980’s.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
Department of Electronic & Electrical Engineering Serial interfaces Serial Interfaces allow communication between devices sending one bit at a time. In.
بسم الله الرحمن الرحيم MEMORY AND I/O.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
박 유 진.  Short RF Range(~10m)  Reduce range by obstruction  Low data rate(1Mbps)  Normal Audio data rate : 1.5 Mbps  CD Quality Audio data rate :
October 12th 2005 ICALEPCS 2005D.Charlet The SPECS field bus  Global description  Module description Master Slave Mezzanine  Implementation  Link development.
WHY PARALLEL PORT? The simplest computer controlled robot Requires only basic programming skills in C to start off with Can take inputs from your robot.
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
10- Lock Bits, Fuse Bits and Boot Loader. Boot Loader Support – Read-While-Write Self- Programming: The Boot Loader Support provides a real Read-While-Write.
Chapter 6 Input/Output Organization
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Outline Analog to digital conversion (ADC) of NuMaker TRIO
Homework Reading Continue mp1 Labs Tokheim, Section 13-6 Questions?
Components of Computer
Dr. Michael Nasief Lecture 2
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
Physics 413 Chapter 10.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
Microprocessor & Assembly Language
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Presentation transcript:

iTÜ COMPUTER ENGINEERING INTERCONNECTION PROTOCOLS PROJECT PRESENTATION Ersan Öztürk /12/2005 JAVA RADIO

Java Radio Ersan Öztürk OUTLINE Idea Aim Radio Chip: TEA5764 I 2 C Parallel Port Hardware Connection OSI layers: physical, logical link JNI To do list Problems encountered Conclusion

Java Radio Ersan Öztürk IDEA Cell phones that does not have radio on 64% of cell phones support Java applications.* People request music everytime, everywhere *Source:GFK

Java Radio Ersan Öztürk AIM IO control of the phones requires longer time, So aim is: Radio control via a PC using Java TM language A radio that can be controlled via PC: TEA5764 Can be controlled via I 2 C

Java Radio Ersan Öztürk Radio Chip:TEA5764 Chip produced by Philips, One of the smallest radio chips It supports Radio Display System (RDS) RDS: station, song, artist display Control can be done via I 2 C Consumes low power

Java Radio Ersan Öztürk I 2 C - definition Inter Integrated Circuit Syncronious Serial Communication LOW COST COMPLEXITY SPEED Developed by Philips semiconductors in 1980’s Used to control signal processing devices such as:RF tuners, video decoders,audio processors, EEPROMS, real time clocks etc.

Java Radio Ersan Öztürk I 2 C - Basics Two lines: bidirectional communitaction Dev. 2 Slave Dev. 1 Master SDA:Serial Data SCL:Serial Clock Intiates and finishes communication Establishes syncronization by clock Determines data direction Responds when addressed, at the time given by master

Java Radio Ersan Öztürk I 2 C – Communication1 SEND / WRITE START address R/W A_S Byte1 A_S..... A_S STOP XXXXXXXX.... START address R/W A_S Byte1 A_M..... NAMSTOP XXXXXXXX RECEIVE / READ A_S: Acknowledge by slave A_M:Acknowledge by master NAM:Non Acknowledge by master

Java Radio Ersan Öztürk I 2 C – Communication2 START STOP ACK_MASTER ACK_SLAVE NON_ACK_MASTER SCL:HIGH SDA:HIGH > LOW SDA:LOW > HIGH SCL:HIGH SCL:PULSE SDA:LOW BY MAS. SDA:LOW BY SLA. SCL:PULSE SDA:HIGH BY MAS. SCL:PULSE

Java Radio Ersan Öztürk Parallel Port pins are bidirecitional used for data accessed via DATA PORT 5 pins are input accessed via STATUS PORT (one is inverted) 4 pins are output accesses via CONTROL PORT (three are inverted) Remaining pins are Grounded

Java Radio Ersan Öztürk Parallel Port - 2 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 IRQ ~ERROR SELECT PE ~ACK BUSY RESERVED IRQENABLE ~SELECTIN INIT ~AUTOFEED ~STROBE DIRECTION DATA (378|278|3BC)STATUS (DATA+1)CONTROL (DATA+2) Windows NT,2000 and XP does not let user programs to reach memory addesses. Windows 98,ME let it!

Java Radio Ersan Öztürk Hardware Connection TEA5764 SCL PIN2 PIN16 SDA GND PIN18-25 PIN2: DATA PORT 0 PIN16:CONTROL PORT 2 PARALLEL PORT V CC V DD V REFDIG SPEAKER

Java Radio Ersan Öztürk Coding – Physical Layer void Zero() { SDA(LOW); delay (DELAY_MILIS,DELAY_NANOS); SCL(HIGH); delay (DELAY_MILIS,DELAY_NANOS); SCL(LOW); delay (DELAY_MILIS,DELAY_NANOS); } void One() { SDA(HIGH); delay (DELAY_MILIS,DELAY_NANOS); SCL(HIGH); delay (DELAY_MILIS,DELAY_NANOS); SCL(LOW); delay (DELAY_MILIS,DELAY_NANOS); } void SDA(int state) { if(state==0) lpt1.write_data (0x0000); else lpt1.write_data (0x0001); }

Java Radio Ersan Öztürk Coding – Network & Procol Layer void radio_power(int onoff){ FMWrite(); if(ack_slave()==0) writebyte(0x00ff); // byte0W if(ack_slave()==0) writebyte(0x002f); // byte1W : if(ack_slave()==0) // mhz writebyte(0x00ca); // byte2W : if(ack_slave()==0) if(onoff==1) writebyte(0x0040); // byte3W : else writebyte(0x0000); // byte3W : if(ack_slave()==0) Stop(); }

Java Radio Ersan Öztürk Java Native Interface (JNI) A framework that enables Java codes to call native applications and libraries of languages such as C, C++ and assembly It is mostly used for operating system and hardware related functions

Java Radio Ersan Öztürk JNI - Parport import parport.ParallelPort; class SimpleIO { public static void main ( String []args ) { ParallelPort lpt1 = new ParallelPort(0x378); int aByte; aByte = lpt1.read(); // read a byte from the port's STATUS pins aByte = aByte >> 2; // a simple and irrelevant operation lpt1.write(aByte); // write a byte to the port's DATA pins System.out.println("Output to port: " + aByte); } Java Radio lpt1.read_data() In C language inportb(DATA) Java Radio lpt1.write_data(aByte) In C language outportb(DATA,aByte)

Java Radio Ersan Öztürk Human Interface

Java Radio Ersan Öztürk Output – via Logic Analyzer

Java Radio Ersan Öztürk Problems Encountered P1)Unsigned bytes are not avaliable in Java S1)Integers were used instead of bytes P2)Win XP not allow to reach parallel port S2)Userport and DirectIO used then Win98 is used P3)Java Comm is not flexible enough S3)JNI is used, P4)Data port used as unidirectional S4)Parallel Port is set to Enhanced Parallel Port (EPP) from BIOS and direction selection is used on Control Port P5)Can not get output from radio S5)Still working on it!!!

Java Radio Ersan Öztürk To do list Finish the code and test functions in details Establish RDS Implement the code in mobile phone emulators Differenciate code according to different mobile phone IOs and Java supports Marketing the radio to manufacturers nationwide Marketing the radio worldwide Make money$

Java Radio Ersan Öztürk Conclusion Project taught: One of the basic interconnection protocols I 2 C One of the basic connection components of PC: The Parallel Port Control mechanisms of chips Use of Java in low level (JNI) At the end it can be a success in business.