8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

Size: px
Start display at page:

Download "8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems 1 5-1 8051 Peripherals"

Transcription

1 8051 Serial Port The 8051 contains a UART Universal Asynchronous Receiver Transmitter The serial port is full-duplex It can transmit and receive simultaneously 2 Port 3 pins are used to provide the serial interface P3.0 is the receive pin (RXD) P3.1 is the transmit pin (TXD) Both synchronous and asynchronous transmission supported A synchronous transmission sends a clock signal with the data Adjustable baud rate and data frame size supported in asynchronous mode 8051 Crystal X1 X2 TXD RXD I/O Device Embedded Systems Peripherals

2 Asynchronous Data Transmission Data is transmitted in a frame consisting of a start bit, 8 or 9 data bits and a stop bit Start bit is always low Data is transmitted LSB first Stop bit is always high Data transmission/reception rate is controlled by baud rate generator clock Baud rate may be a division of the crystal frequency or programmed using a timer D0 D1 D2 D3 D4 D5 D6 D7 Line Idle Start Bit Stop Bit Embedded Systems Peripherals

3 Serial Port Modes Mode 0 Only synchronous mode Data transferred on RXD, clock on TXD Clock is fixed at 1/12 of the oscillator frequency Mode 1 Asynchronous mode 10-bit data frame (start bit, 8 data bits and a stop bit) Variable baud rate Stop bit is placed in RB8 bit of SCON register on reception of a frame Embedded Systems Peripherals

4 Serial Port Modes Mode 2 Asynchronous mode 11-bit data frame (start bit, 8 data bits, programmable 9 th bit and a stop bit) On transmission 9 th bit is TB8 bit of SCON On reception 9 th bit is placed in RB8 bit of SCON 9 th bit may be used for data or as a parity bit Baud rate may be 1/32 or 1/64 of oscillator frequency Mode 3 Same as Mode 2 but with a programmable baud rate Embedded Systems Peripherals

5 Data Transmission/Reception The register SBUF is used to hold both the transmit and receive serial port data To transmit data load the SBUF register MOV SBUF, source When transmission is complete the TI bit will be set in the SCON register When a data frame is received the RI bit in SCON is set high The received data may then be loaded from SBUF MOV destination, SBUF Data reception is double buffered Reception of a second data frame may commence before the previous data frame has been read The REN bit in SCON must be set to enable data reception Embedded Systems Peripherals

6 SCON Register Embedded Systems Peripherals

7 Configuring the Serial Port Configure the serial port mode in SCON Bits SM0 and SM1 determine the mode Set the REN bit if serial data reception is required Clear the RI and TI bits The RI flag is set when a character has been received by the serial port The TI flag is set after transmission of a character Both flags must be cleared by software Configure the serial port baud rates The baud rate is fixed for modes 0 and 2 For mode 0 the baud rate = f osc /12 For mode 2 the baud rate = 2 SMOD * f osc /64 SMOD is a bit in the PCON register (not bit addressable) For modes 1 and 3 the baud rate is configured by the timer 1 overflow rate Embedded Systems Peripherals

8 Baud Rate for Modes 1 and 3 Configure timer 1 for 8-bit auto-reload mode (timer mode 2) Upper 4 bits of TMOD register = 0010 Baud Rate = 2 32 SMOD x ( Timer 1Overflow Rate) Baud Rate = 2 32 SMOD x Oscillator Frequency 12x [ 256 TH1] Embedded Systems Peripherals

9 Common Baud Rates Embedded Systems Peripherals

10 Serial Program Example 1 ;Program to continually transmit the character A out the serial port ORG 0H MOV SCON, #40H ;serial port mode 1 ;configure timer 1 in auto-reload mode for 9600 baud MOV TMOD, #20H ;timer mode 2 MOV TH1, #0FDH ;reload value for 9600 baud MOV TL1, #0FDH SETB TR1 ;start timer LOOP: MOV SBUF, #'A' ;transmit character WAIT4TI: JNB TI, WAIT4TI ;wait for end of transmission CLR TI JMP LOOP ;re-transmit END Embedded Systems Peripherals

11 Serial Program Example 2 ; Program to echo characters received on serial port ORG 0H MOV SCON, #50H ;serial port mode 1, receiver enabled ORL PCON, #80H ;SMOD = 1, double baud rate ;configure timer 1 in auto-reload mode for baud MOV TMOD, #20H ;timer mode 2 MOV TH1, #0FDH ;reload value for baud with SMOD = 1 MOV TL1, #0FDH SETB TR1 ;start timer ;wait for a character to be received WAIT4RI: JNB RI, WAIT4RI ;wait for receive flag to go high CLR RI MOV A, SBUF ;read received character ;transmit received character MOV SBUF, A ;transmit character WAIT4TI: JNB TI, WAIT4TI ;wait for end of transmission CLR TI JMP WAIT4RI ;return and wait for next character END Embedded Systems Peripherals

12 Serial Program Example 3 ;Program to print the message "Hello" "Goodbye" on serial port ;A new line is placed between the strings MESSAGE EQU 100H ;address where string is stored ;define characters to move cursor to next line CR EQU 0DH LF EQU 0AH ORG 0H MOV SCON, #40H ;serial port mode 1 ;configure timer 1 in auto-reload mode for 9600 baud MOV TMOD, #20H ;timer mode 2 MOV TH1, #0FDH ;reload value for 9600 MOV TL1, #0FDH SETB TR1 ;start timer ;continued on next slide Embedded Systems Peripherals

13 Serial Program Example 3 (cont) ;loop to transmit message MOV DPTR, #MESSAGE TXMSG: CLR A MOVC ;fetch character from string CJNE A, #'*', TRANSMIT ;check for end of message JMP DONE TRANSMIT: MOV SBUF, A ;transmit character WAIT4TI: JNB TI, WAIT4TI ;wait for end of transmission CLR TI INC DPTR ;point to next character JMP TXMSG DONE: ORG MESSAGE DB 'Hello' DB CR, LF DB 'Goodbye*' END ;string to be printed Embedded Systems Peripherals

14 Synchronous Serial Comms (Mode 0) The TXD pin is used to carry the clock Data is transmitted and received on the RXD pin (half duplex) Data Transmission Initiated by writing a character to the SBUF register Data shifted out RXD pin, LSB first (8 bits in total) 8 clocks shifted out TXD pin TI flag set after byte of data has been transmitted Data Reception Initiated by REN = 1 and RI = 0 8 clock pulses are outputted on TXD pin 1 bit of data shifted into RXD pin for each clock RI is set when 8 bits have been received into SBUF Embedded Systems Peripherals

15 Serial I/O Expansion A 74LS164 Serial In Parallel Out Shift Register may be used to expand the serial port to be used as 8 output pins A number of shift registers may be cascaded to increase the number of output pins gained Data Input Clock Reset 8 Parallel Outputs Embedded Systems Peripherals

16 Serial Output Pin Expansion P1.0 will clear the shift register outputs when brought low 8 output pins generated from pins Connect Q7 of 74LS164 to the data input of a second 74LS164 to generate 15 outputs from pins LS164 P1.0 RXD TXD MR DIN CLK Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 8 Output Ports Embedded Systems Peripherals

17 Serial Input Pin Expansion A 74LS165 Parallel In Serial Out Shift Register may be used to allow the 8051 serial port to provide additional input port pins A number of shift registers may be cascaded to increase the number of output pins gained Embedded Systems Peripherals

18 Serial Input Pin Expansion P1.0 will load the register parallel inputs when brought low 8 input pins generated from pins Connect data output pin of a second 74LS165 to the data input pin of another to generate 16 inputs from pins 74LS165 8 Input Ports QA QB QC QD QE QF QG QH INHIB OUT CLK LOAD 8051 RXD TXD P1.0 INPUT Embedded Systems Peripherals

19 Multi-Processor Communication Modes 2 and 3 can be configured to allow serial communication between a master 8051 and a number of slave 8051s The TXD pin of the master connects to the RXD pin of the slave 8051s In modes 2 and 3 a 9 th data bit is transmitted This bit is received into the RB8 bit of the SCON register If the SM2 bit of SCON is set, the RI flag will only be set when a serial frame is received with the 9 th bit = 1 This 9 th bit can be set/cleared to specify an address/data frame TXD Master 8051 RXD RXD RXD Slave 8051 #1 Slave 8051 #2.. Slave 8051 #n Embedded Systems Peripherals

20 Multi-Processor Communication On initialisation all slaves set the SM2 bit in the SCON register Each slave has a unique 8-bit address stored in non-volatile memory Master 8051 sends an address frame 9 th bit TB8 = 1 The address frame contains the 8-bit address of the destination slave All slaves will see the received address frame RI bit will be set because the 9 th bit RB8 = 1 Each slave checks the received address against it s own address The addressed slave will now clear it s SM2 bit in SCON to 0 The master will now send some data frames with the 9 th bit = 0 Only the addressed slave will see the data frames No RI flag will be set in the other slaves because the RB8 bit is 0 On completion of data reception the addressed slave will set the SM2 bit to await another address frame Embedded Systems Peripherals

Flash Microcontroller. Memory Organization. Memory Organization

Flash Microcontroller. Memory Organization. Memory Organization The information presented in this chapter is collected from the Microcontroller Architectural Overview, AT89C51, AT89LV51, AT89C52, AT89LV52, AT89C2051, and AT89C1051 data sheets of this book. The material

More information

Serial Communications

Serial Communications Serial Communications 1 Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs Operation

More information

CoE3DJ4 Digital Systems Design. Chapter 4: Timer operation

CoE3DJ4 Digital Systems Design. Chapter 4: Timer operation CoE3DJ4 Digital Systems Design Chapter 4: Timer operation Timer There are two 16-bit timers each with four modes of operation Timers are used for (a) interval timing, (b) event counting or (c) baud rate

More information

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers

More information

USART and Asynchronous Communication

USART and Asynchronous Communication The USART is used for synchronous and asynchronous serial communication. USART = Universal Synchronous/Asynchronous Receiver Transmitter Our focus will be on asynchronous serial communication. Asynchronous

More information

4 Character 5x7 LED Matrix Display

4 Character 5x7 LED Matrix Display Mini project report on 4 Character 5x7 LED Matrix Display Submitted by Agarwal Vikas, MTech II, CEDT K.Sreenivasulu M.E (Micro) II, CEDT CENTRE FOR ELECTRONICS DESIGN AND TECHNOLOGY INDIAN INSTITUTE OF

More information

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction Software ISO 7816 I/O Line Implementation Features ISO 7816-3 compliant (direct convention) Byte reception and transmission with parity check Retransmission on error detection Automatic reception at the

More information

Design and Implementation of Home Monitoring System Using RF Technology

Design and Implementation of Home Monitoring System Using RF Technology International Journal of Advances in Electrical and Electronics Engineering 59 Available online at www.ijaeee.com & www.sestindia.org/volume-ijaeee/ ISSN: 2319-1112 Design and Implementation of Home Monitoring

More information

AN108 IMPLEMENTING A REALTIME CLOCK. Relevant Devices. Introduction. Key Points. Overview

AN108 IMPLEMENTING A REALTIME CLOCK. Relevant Devices. Introduction. Key Points. Overview IMPLEMENTING A REALTIME CLOCK Relevant Devices This application note applies to the following devices: C8051F000, C8051F001, C8051F002, C8051F005, C8051F006, C8051F007, C8051F010, C8051F011, and C8051F012.

More information

8051 hardware summary

8051 hardware summary 8051 hardware summary 8051 block diagram 8051 pinouts + 5V ports port 0 port 1 port 2 port 3 : dual-purpose (general-purpose, external memory address and data) : dedicated (interfacing to external devices)

More information

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring 2007-08) Serial Interfacing. By Dr.

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring 2007-08) Serial Interfacing. By Dr. CMPE328 Microprocessors (Spring 27-8) Serial Interfacing By Dr. Mehmet Bodur Objectives Upon completion of this chapter, you will be able to: List the advantages of serial communication over parallel communication

More information

Flash Microcontroller. Architectural Overview. Features. Block Diagram. Figure 1. Block Diagram of the AT89C core

Flash Microcontroller. Architectural Overview. Features. Block Diagram. Figure 1. Block Diagram of the AT89C core Features 8-Bit CPU Optimized for Control Applications Extensive Boolean Processing Capabilities (Single-Bit Logic) On-Chip Flash Program Memory On-Chip Data RAM Bidirectional and Individually Addressable

More information

TDA8029. 1. General description. 2. Features and benefits. Low power single card reader

TDA8029. 1. General description. 2. Features and benefits. Low power single card reader Rev. 3.3 19 July 2016 Product data sheet 1. General description The is a complete one chip, low cost, low power, robust smart card reader. Its different power reduction modes and its wide supply voltage

More information

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052 Features Compatible with MCS 51 Products 20 MIPS Throughput at 20 MHz Clock Frequency and 2.4V, 85 C Operating Conditions Single Clock Cycle per Byte Fetch 2/4K Bytes of In-System Programmable (ISP) Flash

More information

a8251 Features General Description Programmable Communications Interface

a8251 Features General Description Programmable Communications Interface a8251 Programmable Communications Interface June 1997, ver. 2 Data Sheet Features a8251 MegaCore function that provides an interface between a microprocessor and a serial communication channel Optimized

More information

Serial Communications

Serial Communications April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual

More information

Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family

Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family User's Manual 08.95 SAB 80515 / SAB 80C515 Family Revision History: 8.95 Previous Releases: 12.90/10.92 Page Subjects

More information

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide RS-422/485 Multiport Serial PCI Card Installation Guide 21 Contents 1. Introduction...1 2. Package Check List...2 3. Board Layouts and Connectors...3 3.1 2S with DB9 Male Connectors...3 3.1.1 JP5: UART

More information

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR305: Half Duplex Compact Software UART Features 32 Words of Code, Only Handles Baud Rates of up to 38.4 kbps with a 1 MHz XTAL Runs on Any AVR Device Only Two Port Pins Required Does Not Use Any Timer

More information

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

COMPUTER HARDWARE. Input- Output and Communication Memory Systems COMPUTER HARDWARE Input- Output and Communication Memory Systems Computer I/O I/O devices commonly found in Computer systems Keyboards Displays Printers Magnetic Drives Compact disk read only memory (CD-ROM)

More information

1-Port R422/485 Serial PCIe Card

1-Port R422/485 Serial PCIe Card 1-Port R422/485 Serial PCIe Card Installation Guide 1. Introduction Thank you for purchasing this 1-Port RS422/485 Serial PCI Express (PCIe) Card. It is a universal add in card that connects to a PC or

More information

PART B QUESTIONS AND ANSWERS UNIT I

PART B QUESTIONS AND ANSWERS UNIT I PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional

More information

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction AVR317: Using the Master SPI Mode of the USART module Features Enables Two SPI buses in one device Hardware buffered SPI communication Polled communication example Interrupt-controlled communication example

More information

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide Parallel Data Transfer Suppose you need to transfer data from one HCS12 to another. How can you

More information

Hardware and Software Requirements

Hardware and Software Requirements C Compiler Real-Time OS Simulator Training Evaluation Boards Installing and Using the Keil Monitor-51 Application Note 152 May 31, 2000, Munich, Germany by Keil Support, Keil Elektronik GmbH support.intl@keil.com

More information

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA Features Compatible with MCS-51 products On-chip Flash Program Memory Endurance: 1,000 Write/Erase Cycles On-chip EEPROM Data Memory Endurance: 100,000 Write/Erase Cycles 512 x 8-bit RAM ISO 7816 I/O Port

More information

INFORMATICA INDUSTRIALE

INFORMATICA INDUSTRIALE INFORMATICA INDUSTRIALE Lezione 5 Prof. Christian Forlani forlani@disco.unimib.it Device Structure: Peripherals» I/O» Parallel Slave Port (PSP)» Timer» Capture/Compare/PWM (CCP)» Serial Slave Port (SSP)»

More information

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev Abstract: The paper discusses the issues of microcomputer protocol implementation at local interconnect network for automobile

More information

80C51/87C51/80C52/87C52 80C51 8-bit microcontroller family 4 K/8 K OTP/ROM low voltage (2.7 V 5.5 V), low power, high speed (33 MHz), 128/256 B RAM

80C51/87C51/80C52/87C52 80C51 8-bit microcontroller family 4 K/8 K OTP/ROM low voltage (2.7 V 5.5 V), low power, high speed (33 MHz), 128/256 B RAM INTEGRATED CIRCUITS low power, high speed (33 MHz), 28/256 B RAM Replaces datasheet 80C5/87C5/80C3 of 2000 Jan 20 2000 Aug 07 DESCRIPTION The Philips is a high-performance static 80C5 design fabricated

More information

ENET-710. ENET-710 - Ethernet Module ENET-710 JAN / 06 FOUNDATION

ENET-710. ENET-710 - Ethernet Module ENET-710 JAN / 06 FOUNDATION ENET-710 ENET-710 - Ethernet Module JAN / 06 ENET-710 FOUNDATION E N E T 7 1 0 ME smar www.smar.com Specifications and information are subject to change without notice. Up-to-date address information is

More information

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253 Features Compatible with MCS -51 Products 12K Bytes of In-System Programmable (ISP) Flash Program Memory SPI Serial Interface for Program Downloading Endurance: 10,000 Write/Erase Cycles 2K Bytes EEPROM

More information

Software User Guide UG-461

Software User Guide UG-461 Software User Guide UG-461 One Technology Way P.O. Box 9106 Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 Fax: 781.461.3113 www.analog.com ezlinx icoupler Isolated Interface Development Environment

More information

LTM-1338B. Plus Communications Manual

LTM-1338B. Plus Communications Manual LTM-1338B Plus Communications Manual 2000. Best Power, Necedah, Wisconsin All rights reserved. Best Power The System Setup option from the Main Menu on the front panel is passwordprotected. The default

More information

Asynchronous Counters. Asynchronous Counters

Asynchronous Counters. Asynchronous Counters Counters and State Machine Design November 25 Asynchronous Counters ENGI 25 ELEC 24 Asynchronous Counters The term Asynchronous refers to events that do not occur at the same time With respect to counter

More information

DS87C520/DS83C520 EPROM/ROM High-Speed Micro

DS87C520/DS83C520 EPROM/ROM High-Speed Micro www.maxim-ic.com PRELIMINARY EPROM/ROM High-Speed Micro FEATURES 80C52-compatible - 8051 pin and instruction set compatible - Four 8-bit I/O ports - Three 16-bit timer/counters - 256 bytes scratchpad RAM

More information

University of Portsmouth Faculty of Technology Department of Electronic and Computer Engineering. Content

University of Portsmouth Faculty of Technology Department of Electronic and Computer Engineering. Content University of Portsmouth Faculty of Technology Department of Electronic and Computer Engineering Module: Principles of DigitalSystems Module Code: B122L Module Topic: Microcontroller Applications Lecturer:

More information

Using Xbee 802.15.4 in Serial Communication

Using Xbee 802.15.4 in Serial Communication Using Xbee 802.15.4 in Serial Communication Jason Grimes April 2, 2010 Abstract Instances where wireless serial communication is required to connect devices, Xbee RF modules are effective in linking Universal

More information

DS1621 Digital Thermometer and Thermostat

DS1621 Digital Thermometer and Thermostat Digital Thermometer and Thermostat www.dalsemi.com FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent

More information

USB TO SERIAL ADAPTER

USB TO SERIAL ADAPTER USB TO SERIAL ADAPTER (Model: U232-P9V2) SPECIFICATIONS CONTENTS 1. GENERAL SPECIFICATIONS... 1 1.1 PRODUCT SURFACE... 1 1.2 PRODUCT DIMENSION... 2 1.3 PRODUCT FEATURES... 3 1.4 PRODUCT SPECIFICATIONS...

More information

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTE Introduction This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the

More information

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI SPI Overview and Use of the PICmicro Serial Peripheral Interface In this presentation, we will look at what the Serial Peripheral Interface, otherwise known as the SPI, is, and how it is used to communicate

More information

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung USB2.0 I2C V4.4 Konverter Kabel und Box mit Galvanischetrennung USB 2.0 I2C Konverter Kabel V4.4 (Prod. Nr. #210) USB Modul: Nach USB Spezifikation 2.0 & 1.1 Unterstützt automatisch "handshake

More information

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies ETEC 2301 Programmable Logic Devices Chapter 10 Counters Shawnee State University Department of Industrial and Engineering Technologies Copyright 2007 by Janna B. Gallaher Asynchronous Counter Operation

More information

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication D/N: HA0150E Introduction This application explains how to use two I/O lines on the HT46R46 to implement half-duplex SPI communication.

More information

CENTRONICS interface and Parallel Printer Port LPT

CENTRONICS interface and Parallel Printer Port LPT Course on BASCOM 8051 - (37) Theoretic/Practical course on BASCOM 8051 Programming. Author: DAMINO Salvatore. CENTRONICS interface and Parallel Printer Port LPT The Parallel Port, well known as LPT from

More information

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme 2015 - Alle Rechte vorbehalten

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme 2015 - Alle Rechte vorbehalten ALL-USB-RS422/485 USB to Serial Converter RS422/485 User Manual ALL-USB-RS422/485 USB to RS-422/485 Plugin Adapter This mini ALL-USB-RS422/485 is a surge and static protected USB to RS-422/485 Plugin Adapter.

More information

Appendix A. This Appendix includes the following supplemental material:

Appendix A. This Appendix includes the following supplemental material: Appendix A This Appendix includes the following supplemental material: Cabling Diagrams and Instructions Connectors (9-pin D-type) Data Transfer Protocols Usage/Handshaking Ultimax Dual Screen Console

More information

Microtronics technologies Mobile: 99707 90092

Microtronics technologies Mobile: 99707 90092 For more Project details visit: http://www.projectsof8051.com/rfid-based-attendance-management-system/ Code Project Title 1500 RFid Based Attendance System Synopsis for RFid Based Attendance System 1.

More information

DS87C530/DS83C530. EPROM/ROM Micro with Real Time Clock PRELIMINARY FEATURES PACKAGE OUTLINE DALLAS DS87C530 DS83C530 DALLAS DS87C530 DS83C530

DS87C530/DS83C530. EPROM/ROM Micro with Real Time Clock PRELIMINARY FEATURES PACKAGE OUTLINE DALLAS DS87C530 DS83C530 DALLAS DS87C530 DS83C530 PRELIMINARY DS87C530/DS83C530 EPROM/ROM Micro with Real Time Clock FEATURES 80C52 Compatible 8051 Instruction set compatible Four 8 bit I/O ports Three 16 bit timer/counters 256 bytes scratchpad RAM PACKAGE

More information

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A Application Note Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A AN026701-0308 Abstract This application note demonstrates a method of implementing the Serial Peripheral Interface

More information

INFORMATICA INDUSTRIALE

INFORMATICA INDUSTRIALE INFORMATICA INDUSTRIALE Lezione 6 Prof. Christian Forlani forlani@disco.unimib.it Tutor: Stefano Brusamolino brusamolino@ira.disco.unimib.it Device Structure: Peripherals» I/O» Parallel Slave Port (PSP)»

More information

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920 Application Note, v1.0, 2001-10 Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920 Abstract The paper describes the interfaces and the handling of Audio Data

More information

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board. Bus Interfaces Different types of buses: ISA (Industry Standard Architecture) EISA (Extended ISA) VESA (Video Electronics Standards Association, VL Bus) PCI (Periheral Component Interconnect) USB (Universal

More information

VMR6512 Hi-Fi Audio FM Transmitter Module

VMR6512 Hi-Fi Audio FM Transmitter Module General Description VMR6512 is a highly integrated FM audio signal transmitter module. It integrates advanced digital signal processor (DSP), frequency synthesizer RF power amplifier and matching network.

More information

DECT Module UM-9802 Datasheet

DECT Module UM-9802 Datasheet UWIN TECHNOLOGIES CO., LTD. DECT Module UM-9802 Datasheet V2.1 1 UWIN TECHNOLOGIES CO., LTD. Contents 1. Introduction... 3 2. Features... 3 3. DECT Module Application... 3 4. DECT Module function block...

More information

Serial Communications / Protocol in AirTest Products

Serial Communications / Protocol in AirTest Products Serial Communications / Protocol in AirTest Products General The standard sensor has two different ways of serial communication with sensor s peripherals and the outside world. One is through the UART

More information

TERMINAL Debug Console Instrument

TERMINAL Debug Console Instrument Summary This document describes how to place and use the TERMINAL virtual instrument in an FPGA design. Core Reference CR0180 (v2.0) March 06, 2008 The TERMINAL device is a debug console instrument for

More information

8-bit Microcontroller with 8K Bytes In-System Programmable Flash. AT89LP52 - Preliminary

8-bit Microcontroller with 8K Bytes In-System Programmable Flash. AT89LP52 - Preliminary Features 8-bit Microcontroller Compatible with 8051 Products Enhanced 8051 Architecture Single Clock Cycle per Byte Fetch 12 Clock per Machine Cycle Compatibility Mode Up to 20 MIPS Throughput at 20 MHz

More information

2-Port RS232/422/485 Combo Serial PCI Card

2-Port RS232/422/485 Combo Serial PCI Card 2-Port RS232/422/485 Combo Serial PCI Card Installation Guide 1. Introduction Thank you for purchasing this 2-Port RS232/422/485 Combo Serial PCI Card. It is a universal add in card that connects to a

More information

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS SERIAL I/O COMMON PROTOCOLS RS-232 Fundamentals What is RS-232 RS-232 is a popular communications interface for connecting modems and data acquisition devices (i.e. GPS receivers, electronic balances,

More information

DS1621 Digital Thermometer and Thermostat

DS1621 Digital Thermometer and Thermostat www.maxim-ic.com FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is -67 F to 257 F in 0.9 F increments

More information

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB APPLICATION NOTE M16C/26 1.0 Abstract The following article describes using a synchronous serial port and the FoUSB (Flash-over-USB ) Programmer application to program the user flash memory of the M16C/26

More information

8051 MICROCONTROLLER COURSE

8051 MICROCONTROLLER COURSE 8051 MICROCONTROLLER COURSE Objective: 1. Familiarization with different types of Microcontroller 2. To know 8051 microcontroller in detail 3. Programming and Interfacing 8051 microcontroller Prerequisites:

More information

Projector Control Command Reference Manual

Projector Control Command Reference Manual Projector Control Reference Manual Copyright (C) NEC Display Solutions, Ltd. 2014-2015 BDT140013 Revision 4.0 Introduction This manual describes the commands used to control an NEC-made projector from

More information

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems. 2008 Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems. 2008 Chapter-1L03: Embedded Systems - , Raj Kamal, Publs.: McGraw-Hill Education Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems 1 Typical Embedded System Hardware units 2 Basic Circuit Elements at the System 3 (i) Power Source 1. System own supply with separate supply

More information

Lab Experiment 1: The LPC 2148 Education Board

Lab Experiment 1: The LPC 2148 Education Board Lab Experiment 1: The LPC 2148 Education Board 1 Introduction The aim of this course ECE 425L is to help you understand and utilize the functionalities of ARM7TDMI LPC2148 microcontroller. To do that,

More information

PFB366 Profibus-DP Gateway User Manual

PFB366 Profibus-DP Gateway User Manual PFB366 Profibus-DP Gateway User Manual Table of Contents CHAPTER 1 OVERVIEW...4 CHAPTER 2 INSTALLATION...5 MOUNTING...5 WIRING...6 Profibus-DP Interface...6 Serial Channel Interface...7 Wiring Examples...7

More information

Computer-System Architecture

Computer-System Architecture Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System Architecture 2.1 Computer-System Architecture 2.2 Computer-System

More information

Embedded Systems Design Course Applying the mbed microcontroller

Embedded Systems Design Course Applying the mbed microcontroller Embedded Systems Design Course Applying the mbed microcontroller Serial communications with SPI These course notes are written by R.Toulson (Anglia Ruskin University) and T.Wilmshurst (University of Derby).

More information

Parallel IO. Serial IO. Parallel vs. Serial IO. simplex vs half-duplex vs full-duplex. Wires: Full Duplex. Wires: Simplex, Half-duplex.

Parallel IO. Serial IO. Parallel vs. Serial IO. simplex vs half-duplex vs full-duplex. Wires: Full Duplex. Wires: Simplex, Half-duplex. Parallel IO Parallel IO data sent over a group of parallel wires. Typically, a clock is used for synchronization. D[15:0] clk Serial IO Serial IO data sent one bit at a time, over a single wire. A clock

More information

The Programming Interface

The Programming Interface : In-System Programming Features Program any AVR MCU In-System Reprogram both data Flash and parameter EEPROM memories Eliminate sockets Simple -wire SPI programming interface Introduction In-System programming

More information

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

Hello, and welcome to this presentation of the STM32L4 reset and clock controller. Hello, and welcome to this presentation of the STM32L4 reset and clock controller. 1 The STM32L4 reset and clock controller manages system and peripheral clocks. STM32L4 devices embed three internal oscillators,

More information

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential

More information

Am186ER/Am188ER AMD Continues 16-bit Innovation

Am186ER/Am188ER AMD Continues 16-bit Innovation Am186ER/Am188ER AMD Continues 16-bit Innovation 386-Class Performance, Enhanced System Integration, and Built-in SRAM Problem with External RAM All embedded systems require RAM Low density SRAM moving

More information

150127-Microprocessor & Assembly Language

150127-Microprocessor & Assembly Language Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an

More information

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs AN033101-0412 Abstract This describes how to interface the Dallas 1-Wire bus with Zilog s Z8F1680 Series of MCUs as master devices. The Z8F0880,

More information

Section 17. UART HIGHLIGHTS UART. This section of the manual contains the following major topics:

Section 17. UART HIGHLIGHTS UART. This section of the manual contains the following major topics: HIGHLIGHTS Section 17. UART This section of the manual contains the following major topics: 17 17.1 Introduction... 17-2 17.2 Control Registers... 17-4 17.3 UART Baud Rate Generator... 17-10 17.4 UART

More information

8-bit Microcontroller with 2K/4K Bytes Flash AT89S2051 AT89S4051

8-bit Microcontroller with 2K/4K Bytes Flash AT89S2051 AT89S4051 Features Compatible with MCS 51 Products 2K/4K Bytes of In-System Programmable (ISP) Flash Program Memory Serial Interface for Program Downloading Endurance: 10,000 Write/Erase Cycles 2.7V to 5.5V Operating

More information

Small Hardware Development and Prototyping Board for the SX28

Small Hardware Development and Prototyping Board for the SX28 Project Report: Small Hardware Development and Prototyping Board for the SX28 Project Number: PR57 1. Project Description 2. Schematic Diagram 3. Physical Diagram 4. Component Layout Diagram 5. Bill of

More information

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT HARDWARE GUIDE This document is part of Turbo Programmer documentation. For Developer Documentation, Applications and Examples, see http:/// PRELIMINARY (C)

More information

CONCEPT1 RS232 COMMUNICATION

CONCEPT1 RS232 COMMUNICATION Concept 1 RS-232 Communication Communication with Concept 1 via RS-232 is done with simple ASCII Commands and Replies. The port settings are 19200Baud, 8bits, no parity and 1 stop bit. The physical connection

More information

Manual Serial PCI Cards

Manual Serial PCI Cards Manual Serial PCI Cards W&T Models 13011, 13410 13411, 13610 13611, 13812 Version 1.4 Subject to error and alteration 37 01/2005 by Wiesemann & Theis GmbH Subject to errors and changes: Since we can make

More information

Interfacing Analog to Digital Data Converters

Interfacing Analog to Digital Data Converters Converters In most of the cases, the PIO 8255 is used for interfacing the analog to digital converters with microprocessor. We have already studied 8255 interfacing with 8086 as an I/O port, in previous

More information

Embedded. Engineer s. Development. Tool (EEDT 5.0)

Embedded. Engineer s. Development. Tool (EEDT 5.0) Embedded Engineer s Development Tool (EEDT 5.0) User Manual and Tutorial Handbook DeccanRobots Developed and Distributed by DeccanRobots As a part of Embedded Engineer s Development Tool 5.0 www.deccanrobots.com

More information

RL78/G12 APPLICATION NOTE. Serial Array Unit (CSI Master Communication) Introduction. Target Device. R01AN1369EJ0100 Rev. 1.00. Mar.

RL78/G12 APPLICATION NOTE. Serial Array Unit (CSI Master Communication) Introduction. Target Device. R01AN1369EJ0100 Rev. 1.00. Mar. APPLICATION NOTE RL78/G12 R01AN1369EJ0100 Rev. 1.00 Introduction This application note describes how the serial array unit (SAU) performs communication tasks using the CSI master communication feature.

More information

USB to serial chip CH340

USB to serial chip CH340 The DataSheet of CH340 (the first) 1 1. Introduction USB to serial chip CH340 English DataSheet Version: 1D http://wch.cn CH340 is a USB bus convert chip and it can realize USB convert to serial interface,

More information

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse: PS-2 Mouse: The Protocol: For out mini project we designed a serial port transmitter receiver, which uses the Baud rate protocol. The PS-2 port is similar to the serial port (performs the function of transmitting

More information

Using FPGAs to Design Gigabit Serial Backplanes. April 17, 2002

Using FPGAs to Design Gigabit Serial Backplanes. April 17, 2002 Using FPGAs to Design Gigabit Serial Backplanes April 17, 2002 Outline System Design Trends Serial Backplanes Architectures Building Serial Backplanes with FPGAs A1-2 Key System Design Trends Need for.

More information

Example Programs for PLC Fatek equipped with FBs-CMGSM

Example Programs for PLC Fatek equipped with FBs-CMGSM Example Programs for PLC Fatek equipped with FBs-CMGSM Example 1 example_cmgsm_01 This very simple example shows how to process incoming SMS with command for Y0 Y3 outputs in PLC Fatek. SMS command has

More information

HT1632C 32 8 &24 16 LED Driver

HT1632C 32 8 &24 16 LED Driver 328 &216 LED Driver Features Operating voltage: 2.V~5.5V Multiple LED display 32 ROW /8 COM and 2 ROW & 16 COM Integrated display RAM select 32 ROW & 8 COM for 6 display RAM, or select 2 ROW & 16 COM for

More information

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards 2012 Roving Networks. All rights reserved. Version 1.0 9/7/2012 USER MANUAL OVERVIEW The RN-131 and RN-171 WiFly radio modules are complete, standalone

More information

Keil C51 Cross Compiler

Keil C51 Cross Compiler Keil C51 Cross Compiler ANSI C Compiler Generates fast compact code for the 8051 and it s derivatives Advantages of C over Assembler Do not need to know the microcontroller instruction set Register allocation

More information

A DIY Hardware Packet Sniffer

A DIY Hardware Packet Sniffer A DIY Hardware Packet Sniffer Affordable Penetration Testing for the Individual Veronica Swanson: University of California, Irvine CyberSecurity for the Next Generation North American Round, New York 15

More information

UART IP Core Specification. Author: Jacob Gorban gorban@opencores.org

UART IP Core Specification. Author: Jacob Gorban gorban@opencores.org UART IP Core Specification Author: Jacob Gorban gorban@opencores.org Rev. 0.6 August 11, 2002 This page has been intentionally left blank Revision History Rev. Date Author Description 0.1 Jacob Gorban

More information

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to: 55 Topic 3 Computer Performance Contents 3.1 Introduction...................................... 56 3.2 Measuring performance............................... 56 3.2.1 Clock Speed.................................

More information

DS1104 R&D Controller Board

DS1104 R&D Controller Board DS1104 R&D Controller Board Cost-effective system for controller development Highlights Single-board system with real-time hardware and comprehensive I/O Cost-effective PCI hardware for use in PCs Application

More information

Section 14. Compare/Capture/PWM (CCP)

Section 14. Compare/Capture/PWM (CCP) M Section 14. Compare/Capture/PWM (CCP) HIGHLIGHTS This section of the manual contains the following major topics: 14.1 Introduction...14-2 14.2 Control Register...14-3 14.3 Capture Mode...14-4 14.4 Compare

More information

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation

More information

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ nc. Order this document by MC68328/D Microprocessor and Memory Technologies Group MC68328 MC68328V Product Brief Integrated Portable System Processor DragonBall ΤΜ As the portable consumer market grows

More information

Remote PLC system using GSM network with application to home security system

Remote PLC system using GSM network with application to home security system PLC using GS with application to home security A. Alheraish, W. Alomar, and. Abu-Al-Ela Department of Electrical Engineering, King Saud University, Riyadh, Saudi Arabia PLC using GS Keywords Programmable

More information