AN Interfacing Philips Bridge IC with Philips microcontroller. Document information

Similar documents
AN Sleep programming for NXP bridge ICs. Document information

AN Automatic RS-485 address detection. Document information

AN10428 UART-SPI Gateway for Philips SPI slave bridges

UM PCA9698 demonstration board OM6281. Rev September Document information

IMPORTANT NOTICE. As a result, the following changes are applicable to the attached document.

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

UM PCAL6524 demonstration board OM Document information

AN10688_1. PN532C106 demoboard. Document information. NFC, PN532, PN532C106, demoboard. This document describes PN532C106 demoboard.

UM OM11057 quick start guide. Document information

AN10955 Full-duplex software UART for LPC111x and LPC13xx

ES_LPC81xM. Errata sheet LPC81xM. Document information

LPC1300, FM+, Fast-mode Plus, I 2 C, Cortex-M3

UM ISP1181x Microcontroller Eval Kit. Document information. Keywords isp1181a, isp1181b, usb, universal serial bus, peripheral

AN LPC1700 Ethernet MII Management (MDIO) via software. Document information. LPC1700, Ethernet, MII, RMII, MIIM, MDIO

UM NVT2001GM and NVT2002DP demo boards. Document information

Installation Manual Installation Manual for the MicroWave Office design kit version v1.0

AN10258 How to use the LPC900 In-circuit programming (ICP)

AN SC16IS760/762 Fast IrDA mode. Document information

Installation Manual. Installation Manual for the ADS design kit version v2.1. ADS Design kit Windows Linux Unix Instruction Manual RF small signal

Installation Manual Installation Manual for the Ansoft Designer v5.0 design kit version v1.0

AN10917 Memory to DAC data transfers using the LPC1700's DMA

UM NVT2008PW and NVT2010PW demo boards. Document information

ES_LPC5410x. Errata sheet LPC5410x. Document information

AN10337 Adding ISP firmware to an LPC900 software project

PCA9633 demonstration board OM6282

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

OM13071 LPCXpresso824-MAX Development board

550 MHz, 34 db gain push-pull amplifier

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

MF1 MOA4 S50. Contactless Chip Card Module Specification. This document gives specifications for the product MF1 MOA4 S50.

IMPORTANT NOTICE. use

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

OM bit GPIO Daughter Card User Manual

Evaluation Board for CS3308. Description CS Channel. Digitally Controlled Analog Volume Control. PC or External Serial Control Input

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Figure 1. CP2108 USB-to-Quad UART Bridge Controller Evaluation Board

Freescale Semiconductor Inc. TWR-MCF51CN User Manual Rev. 1.2

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

uip, TCP/IP Stack, LPC1700

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

AN LPC82x Touch Solution Quick Start Guide. Document information. Keywords

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

AN CBTL08GP053 Programmer's Guide. Document information. Keywords Abstract

UM10766 User manual for the I2C-bus RTC PCF85263A demo board OM13510

HYDRA-X23/X23S. Power Application Controllers. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

Freescale Semiconductor Inc. Microcontroller Solutions Group. TWR-MCF51CN User Manual Rev. 1.1

UM OM bit GPIO Daughter Card User Manual. Document information. Keywords Abstract

This Application Note demonstrates an SPI-LIN slave bridge using a PSoC device. Demonstration projects are included.

PCA General description. 2-to-1 I 2 C-bus master selector with interrupt logic and reset

LPC81x, LPC82x, LPC83x Errata Sheet and Datasheet Update for Vdd.1 Errata

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

How to use the NTAG I²C plus for bidirectional communication. Rev June

ESK32-A2A Inch TFT LCD Module User Manual

Total power dissipation: 500 mw Small plastic package suitable for surface-mounted design Wide working voltage range Low differential resistance

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

1.8 V single UART, 5 Mbit/s (max.) with 128-byte FIFOs, infrared (IrDA), and XScale VLIO bus interface

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

QN908x. DK User s Guide. Document information. QN9080-DK, QN9080, QN9083, BLE, USB Dongle This document is an introduction to the QN908x DK V1.

UM User Manual for LPC54018 IoT Module. Rev November Document information

Dual back-to-back Zener diode

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

UM NXP USB PD shield board user manual COMPANY PUBLIC. Document information

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

Prototyping Module Datasheet

UM LPC54018 IoT module. Document information. LPC54018, OM40007, Amazon FreeRTOS, AWS, GT1216 LPC54018 IoT module user manual

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

INTEGRATED CIRCUITS. PCA bit I 2 C-bus and SMBus I/O port with interrupt. Product data sheet Supersedes data of 2004 Sep 30.

Please refer to "4. Evaluation Board" on page 2 for more information about these steps. Figure 1. System Connections

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

UM LPCXpresso Rev th November Document information. LPCXpresso54102, LPC54100 LPCXpresso54102 User Manual

KTTWRCM3120UG TWR-CM3120-EVM. TWR-CM3120-EVM Tower System Platform. Figure 1. TWR-CM3120-EVM

How to configure the BlueNRG-1 and BlueNRG-2 devices in network coprocessor mode. Main components Bluetooth Low Energy wireless system-on-chip

YHY202D RfidLoginer Datasheet

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

UM LPC General Purpose Shield (OM13082) Rev November Document information. Keywords

PCAL9535A. 1. General description. Low-voltage 16-bit I 2 C-bus I/O port with interrupt and Agile I/O

VENUS_ Driving Board and 39.6 Prism Display

PMEG3015EH; PMEG3015EJ

SmartMX2 family P60C080 and P60C144

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

NXP AN11528 sensor Application note

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Low forward voltage Ultra small SMD plastic package Low capacitance Flat leads: excellent coplanarity and improved thermal behavior

PMEG1030EH; PMEG1030EJ

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Hints and tips when using RC1xx0 RF Modules

MF1ICS General description. Functional specification. 1.1 Key applications. 1.2 Anticollision. Energy. MIFARE card contacts La, Lb.

Transcription:

AN0 Rev. 0 May 00 Application note Document information Info Keywords Abstract Content SCIS0 to PLPC, Bridge IC to microcontroller, serial interface The operation and description of Philips LPC00 Series microcontroller such as PLPC to Philips Bridge IC such as SCIS0 for high-speed serial data communication is discussed in this application note. In addition, the source code in C language, containing communication routines between the PLPC microcontroller and the SCIS0 Bridge IC is provided. This application note is also applicable to other Bridge ICs such as SCIS0, SCIS0, SCIS, and SCIS.

AN0 Revision history Rev Date Description 0 000 application note; initial version Contact information For additional information, please visit: http://www.semiconductors.philips.com For sales office addresses, please send an email to: sales.addresses@www.semiconductors.philips.com AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

AN0. Introduction. Block diagram The Philips Bridge IC is a new generation of interface solutions for managing high-speed serial data communication among various bus interfaces such as SPI, I C-bus, and UART including RS- and RS-. The Bridge IC is commonly used to overcome the limitation of the host bus interface to peripherals and to provide easy interface with existing different serial buses. The description of the block diagram, hardware, firmware, and software are described in the next paragraphs for users to quickly understand the implementation of the Philips LPC00 Series microcontroller to Philips Bridge IC serial interface for RS- point-point communication, RS- multi-drop application, IrDA wireless links communication, and GPIO interface. The source code in C language is provided to show how to write a simple communication program between the microcontroller and the Bridge IC serial interface. The goal is to help users to design the Bridge IC in their application and also shorten their product development cycle. The block diagram depicted in Figure shows the circuit connection between a Philips Bridge IC such as SCIS0 and Philips LPC00 Series microcontroller such as PLPC. The Bridge IC offers simple, flexible, and minimal connection to the microcontroller. The Bridge IC embedded SPI and I C-bus for the host interface so the microcontroller can easily control the Bridge IC with four-wire connection through SPI or I C-bus, which is a widely used serial bus interface. If the SPI-bus interface is selected, the Bridge IC can interface to the microcontroller with a -wire connection. The signals on the wires are MISO (Master Input Slave Output), MOSI (Master Output Slave Input), CS (Chip Select), and SPICLK (SPI Clock). If the I C-bus is selected, the Bridge can interface to the microcontroller with a -wire connection. The signals on the wires are SCL (Serial Clock) and SDA (Serial Data). After the microcontroller and Bridge IC are wired properly and their connection is established, the microcontroller can send data to and receive data from UART devices via the Bridge IC. The Bridge IC receives the data from the microcontroller via the SPI or I C-bus interface and sends the data to the UART devices via RS- or RS- bus interface, and when the Bridge IC receives the data from the UART devices the Bridge IC will notify the microcontroller by generating an interrupt signal; then the microcontroller can access the data from the Bridge IC via the SPI or I C-bus interface. Philips microcontroller PLPC SPI/I C-bus interrupt Philips bridge ICs SCIS0 SCIS0 SCIS0 SCIS SCIS TxD RxD RTS CTS transceivers (optional) RS- RS- 00aac Fig. Block diagram of Philips Bridge IC interface AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

AN0. Hardware description The hardware consists of the two major parts, which are the microcontroller and the Bridge IC. The Bridge IC provides a seamless interface convergence between the SPI or I C-bus and RS- or RS- protocols and vice versa. In addition, the Bridge IC checks the data transmission for errors and maintains very high data throughput. The functions of the two major parts are described as follows: Philips PLPC microcontroller The microcontroller connection to the Bridge IC is through the SPI or I C-bus interface. The microcontroller acts as a master controlling the Bridge IC with the embedded firmware code in the microcontroller ROM (Read Only Memory). The microcontroller initiates the data transfer on the bus and controls the Bridge IC with the chip select pin for SPI-bus interface. Philips SCIS0 Bridge IC The Bridge IC acts as a slave interface convergence between the microcontroller and UART peripheral. The Bridge IC handles the SPI or I C-bus interface to the microcontroller and the UART that consists of transmitter and receiver. The transmitter sends the data received from the microcontroller to the UART peripherals. The receiver sends the data received from the UART peripheral to the microcontroller. The transceivers are optional and can be intended for RS- or RS- communication interface. The transceivers consist of drivers and receivers. The drivers convert the UART-logic output levels to RS- or RS- signals, whereas the receivers convert the RS- or RS- signals to UART-logic input levels. If the UART-logic level conversion is not required, the transceivers are optional. For hardware connection details, please refer to the schematic shown in Figure and Figure. AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Application note Rev. 0 May 00 of 0 AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. A B C D E F G H JP SPI_MISO SPI_CS SPI_SCLK SPI_MOSI SPI-BUS JP IC-BUS SPI_CS SPI_MISO SPI_MOSI SPI_SCLK R 0 kω R 0 kω IC_SCL IC_SDA RESET_N R0 0 kω IC_SCL IC_SDA A COM B B COM A/B_N A A VL COM B 0 B COM GND A Fig. Schematic diagram (part ) U C SWITCHES A/B_N = LOW, COM-B A/B_N = HIGH, COM-A R 0 kω R 0 kω IC/SPI_N CS/A0_N SI/A SPI MISO SCL/SCLK IC SDA R 0 kω C U JP IC/SPI C 0 µf C0 pf XTAL IC/SPI_N XTAL CS/A0_N RESET_N 0 SI/A RXD SO TXD SCL/SCLK CTS_N SDA RTS_N GPIO/RI_N GPIO0 GPIO/CD_N GPIO GPIO/DTR_N GPIO GPIO/DSR_N 0 GPIO GND SCIS0/0-TSSOP Y. MHz C pf C C 0 µf C C TXD RTS_N DTR_N RI_N CD_N CTS_N DSR_N C U TIN TIN TIN ROUT ROUT ROUT ROUT ROUT IC/SPI_N CS/A0_N SI/A SPI MISO SCL/SCLK IC SDA IO0 IO IO IO RS- transceiver U GND C+ V+ C V C+ SHUTDOWN_N ONLINE_N C STATUS_N IC/SPI_N CS/A0_N SI/A SO SCL/SCLK 0 SDA GPIO0 GPIO GPIO GPIO TOUT 0 TOUT TOUT RIN RIN RIN RIN RIN XTAL XTAL RESET_N RXD TXD CTS_N RTS_N GPIO/RI_N 0 GPIO/CD_N GPIO/DTR_N GPIO/DSR_N GND SCIS0/0-HVQFN C 0. µf C 0. µf P DB connector 00aac Philips Semiconductors AN0

xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Application note Rev. 0 May 00 of 0 AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. J Fig. Schematic diagram (part ) DC power jack C 0 µf C 0 µf S SW SPST C U R 0 kω C BODY VIN VOUT GND regulator U VSS VDD 0 P./INT_N P0. P./SS_N P0. P./RESET_N P0./PDA P0./PCL P./MISO P./MOSI P./SCLK P./SDA P.0/TXD P./SCL P./RXD P.0/XTAL P./XTAL P. P. P0.0 P. P0. P.0 0 P0. P. P0. P. Philips PLPC C 0 µf C0 SPI_MISO A SPI_CS B SPI_SCLK C SPI_MOSI D E IC_SCL F IC_SDA G RESET_N H 00aac Philips Semiconductors AN0

AN0. Software description The programming of the Bridge IC can be done by writing firmware code, which requires the following software: Keil is one of the embedded system vendors that provide the software development tools for Philips PLPC microcontroller. The software compiles the firmware code written in C and generates an Intel Hex file. The software evaluation development kit can be downloaded from the Keil website. Flash Magic is free Windows application software that allows easy programming of Philips PLPC microcontroller. The software loads the Intel Hex file to the microcontroller by using its in-system programming mode communicating through serial port. The software can be downloaded from the Embedded Systems Academy website under Flash Magic.. In-System Programming mode. Firmware description Philips PLPC microcontroller has an on-chip Flash program memory with ISP (In-System Programming) that allows the microcontroller to be programmed without removing the microcontroller from the board, and also the microcontroller, which if previously programmed can be reprogrammed without removal from the board. The microcontroller must be powered up in a special ISP mode to perform the ISP operation. The ISP mode allows the microcontroller to communicate with a host device such as PC through a serial port. The host sends commands and data to the microcontroller. The commands can be erase, read, and write. After the completion of the ISP operation, the microcontroller is reconfigured and has to be reset or power cycled so the microcontroller will operate normally. The ISP programming for the device can be done using a Windows application software, which uses an Intel Hex file as input to program it. For more information about the software, please refer to Section Software description. The firmware code for the PLPC microcontroller is written in C language. It can be compiled by using an embedded C compiler. For more information about the compiler, please refer to Section Software description. The firmware code consists of three major blocks: Main Loop, Interrupt Service Routine, and Bus Interface layer, and are described in. Main Loop The function of the Main Loop is to reset and initialize the Bridge IC by writing a character to the Bridge IC register. Inside the Main Loop, the microcontroller can select one of the two methods for communicating to the Bridge IC. The first method is polling the Bridge IC status register regularly. The second method is using an interrupt handler in the Interrupt Service Routine until the Bridge IC generates an interrupt. If using the interrupt handler, AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

AN0. Conclusion the microcontroller and the bus interrupt bits must be enabled. The other function of the Main Loop is to keep checking the event flags and pass to the appropriate subroutine for further processing.. Interrupt Service Routine The microcontroller uses the Interrupt Service Routine (ISR) to handle an interrupt generated by the Bridge IC. As soon as the Bridge IC generates an interrupt, the ISR checks the interrupt status of the Bridge IC to determine the interrupt type and sets up proper event flags to inform the Main Loop program for processing the interrupt request.. Bus interface layer The bus interface layer handles the SPI or I C-bus interface between the microcontroller and the Bridge IC. The three functions in the bus interface layer are: BusInterface_Init: The microcontroller initialize the SPI or I C-bus controller to initiate the SPI or I C-bus data transfer. BusInterface_Read: The microcontroller reads data from the SPI or I C-bus and stores the data for further processing. BusInterface_Write: The microcontroller writes data to the SPI or I C-bus for the Bridge IC to read. Philips Bridge IC provides easy interface to a host controller such as Philips PLPC microcontroller, enables seamless and high-speed SPI or I C-bus to RS- or RS- protocols convergence including GPIO for general-purpose input/output and IrDA for wireless links, and offers low voltage operation, low power consumption, and compact design which is suitable for battery-operated applications. In addition, the Bridge IC reduces software overhead, frees up the host controller resources, increases design flexibility, and improves overall system performance. For more details about the Bridge ICs, please download the data sheets from the Philips Semiconductors website under Interface & Control, UARTs. AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

AN0. Legal information. Definitions Draft The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. Philips Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information.. Disclaimers General Information in this document is believed to be accurate and reliable. However, Philips Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. Right to make changes Philips Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use Philips Semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of a Philips Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. Philips Semiconductors accepts no liability for inclusion and/or use of Philips Semiconductors products in such equipment or applications and therefore such inclusion and/or use is for the customer s own risk. Applications Applications that are described herein for any of these products are for illustrative purposes only. Philips Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification.. Trademarks Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners. I C-bus logo is a trademark of Koninklijke Philips Electronics N.V. AN0_ Koninklijke Philips Electronics N.V. 00. All rights reserved. Application note Rev. 0 May 00 of 0

AN0. Contents Introduction............................ Block diagram.......................... Hardware description.................... Software description..................... In-System Programming mode............. Firmware description..................... Main Loop.............................. Interrupt Service Routine.................. Bus interface layer...................... Conclusion............................. Legal information......................... Definitions.............................. Disclaimers............................. Trademarks............................ Contents.............................. 0 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section Legal information. Koninklijke Philips Electronics N.V. 00. All rights reserved. For more information, please visit: http://www.semiconductors.philips.com. For sales office addresses, email to: sales.addresses@www.semiconductors.philips.com. Date of release: May 00 Document identifier: AN0_