AN UART/SPI/I 2 C code examples. Document information. Abstract Simple code examples are provided for UART0, SPI and I 2 C.
|
|
|
- Beatrix Clark
- 9 years ago
- Views:
Transcription
1 UART/SPI/I 2 C code examples Rev April 2005 Application note Document information Info Keywords Content UART, SPI, I 2 C Abstract Simple code examples are provided for UART0, SPI and I 2 C.
2 Revision history Rev Date Description Initial version Contact information For additional information, please visit: For sales office addresses, please send an to: Application note Rev April of 17
3 1. Introduction 2. UART0 This application note provides code samples, which will enable the user to get a jumpstart into using some of the serial communication interfaces of the LPC2000 family. In this application note code samples are provided for UART0, SPI and I 2 C-bus. For detailed description on the peripheral please refer to the User manual of the respective device. The basic startup assembly code is only shown for the I 2 C-bus peripheral. For UART0 and SPI, the basic startup code should setup the stack pointer for the Supervisor mode, which could be done using the LDR (Load Register) instruction. LDR SP, =0x4.. The code was tested on a LPC2106 evaluation board, which uses a 10 MHz crystal (system clock). The on-chip PLL has not been used for the sample code examples given below. If the user uses the code for a different crystal setting then be sure to set the baud rate/speed of the peripheral accordingly before running the example code. Speed calculations equations are provided for each peripheral. All the code samples are configured to run from SRAM and they were compiled using the ADS (ARM Development Suite) v1.2 compiler. Though the below code samples have been successfully tested on the LPC2106 it should work fine on rest of the Philips LPC2000 family devices after some minor modifications. Minor modifications could be setting the Stack pointer correctly (depending upon the SRAM present on chip), using the correct header files etc. If the end user wishes to run the code from the on-chip Flash then a signature is to be placed at 0x14 and the code has to be linked differently in addition to other changes. The below code sample configures UART0 to interface to a Terminal program running on a host machine (maybe Tera Term Or HyperTerminal) at a baud rate of The code simply prints Philips LPC on the host machine terminal program forever since it is included in a while (1) loop. VPB Divider value is at its reset settings and hence the peripheral clock is one fourth of the system clock. The VPB clock would then be 2.5MHz. Steps on calculating the divisor value are shown below. 2.1 Calculating Baud rate Baud rate is calculated using the following formula: Required baud rate= VPB clock/ (16 * Divisor value) 9600 = 2.5MHz /16 * x x = 16.2 = 0x10(after discarding the decimal part) Application note Rev April of 17
4 This value needs to be entered into the U0DLL register as shown below. 2.2 C Code /* Include header file depending upon device been used */ #include"lpc2.h" void Initialize(void); /* Macro Definitions */ #define TEMT (1<<6) #define LINE_FEED 0xA #define CARRIAGE_RET 0xD /************************* MAIN *************************/ int main() int i; char c[]="philips LPC"; Initialize() /* Print forever */ while(1) i=0; /* Keep Transmitting until Null character('\0') is reached */ while(c[i]) U0THR=c[i]; i++; U0THR=LINE_FEED; U0THR=CARRAIGE_RET; /* Wait till U0THR and U0TSR are both empty */ while(!(u0lsr & TEMT)) /*************** System Initialization ***************/ void Initialize() /* Initialize Pin Select Block for Tx and Rx */ PINSEL0=0x5; /* Enable FIFO's and reset them */ U0FCR=0x7; /* Set DLAB and word length set to 8bits */ U0LCR=0x83; Application note Rev April of 17
5 /* Baud rate set to 9600 */ U0DLL=0x10; U0DLM=0x0; /* Clear DLAB */ U0LCR=0x3; /*********************************************************/ 2.3 Terminal Program settings This code was tested on Tera Term Pro v2.3 and the settings for the serial port are shown below. Fig 1. Tera Term serial port settings 2.4 Output The output of the above code should be similar to the screen shown in Fig 2. Application note Rev April of 17
6 Fig 2. Code output 3. SPI The following code sample configures the SPI as a master and transmits data bytes on the MOSI pin. Output waveforms are captured on the oscilloscope and shown below. Since no slave device is physically connected to the master, SSEL should be driven high (does not apply to the LPC213x family). MISO is not being used in this example. Also the VPB clock is set to system clock (10MHz) and SPI is run at maximum speed (SPCCR=0x8). CPOL and CPHA both are set to Speed Calculation Speed of SPI= VPB clock/ SPCCR value= 10MHz/8= 1.25 MHz. 3.2 C Code /* Include header file depending upon part used */ #include"lpc2.h" void Initialize(void); /* Macro Definitions */ #define SPIF (1<<7) #define DATA 0xC1 /************************* MAIN *************************/ int main() Application note Rev April of 17
7 Initialize(); /* Do forever */ while(1) /* Write data out */ SPDR=DATA; /* Wait for transfer to be completed */ while(!(spsr & SPIF)) /*************** System Initialization ***************/ void Initialize() /* Configure Pin Connect Block */ PINSEL0=0x5500; /* Set pclk to same as cclk */ VPBDIV=0x1; /* Set to highest speed for SPI at 10 MHz- > 1.25 MHz */ SPCCR=0x8; /* Device selected as master */ SPCR=0x20; /*********************************************************/ 3.3 Output Waveforms from Oscilloscope are shown in Fig 3. Application note Rev April of 17
8 0xC1 Fig 3. Waveforms 4. I 2 C In the above code examples for UART and SPI, interrupts have not been used but they have been used for this example. I 2 C has been classified as an IRQ interrupt. LPC2106 is being used as a Master Transmitter and a Philips port expander PCF8574 is used as a slave device. Waveforms are shown to help the user to understand the communication better. VPB Divider value is at its reset settings and hence the peripheral clock is one fourth of the system clock (10 MHz). 4.1 Calculation of Bit frequency Bit Frequency = pclk/ (I 2 CSCLH + I 2 CSCLL) Since the maximum speed the PCF8574 could interface to the LPC2106 is100 KHz 100KHz= 2.5MHz/(I 2 CSCLH + I 2 CSCLL) Therefore I 2 CSCLH + I 2 CSCLL=25 We select I 2 CSCLH=13 & I 2 CSCLL=12 Application note Rev April of 17
9 4.2 Setting of the slave address PCF8574A has the following address A2 A1 A0 In the test setup, A1 was driven high. A2 and A0 are driven low. 4.3 State Diagram (with regard to I 2 C states) Only three I 2 C states are considered in this example namely 0x8, 0x18 and 0x28. The code flow is shown below. For detailed description on the I 2 C states, please refer to the User Manual of the respective device. The section describing I 2 C has been recently updated for the LPC213x User Manual and this section will be updated for all LPC 2000 Family devices in future revisions of the User Manual. Start condition transmitted I 2 C master enters State 8H and transmits slave address + Write bit Slave acknowledges I 2 C master enters State 18H and transmits data byte 55H Slave acknowledges I 2 C master enters State 28H and transmits Stop condition Fig 4. State diagram code flow 4.4 Code The files used here are as follows: 1. Interrupt Vector table Application note Rev April of 17
10 2. Startup Assembly code 3. Main C file 4. Header file 5. Tool specific file (not shown here) Only the first three files are discussed and shown below Interrupt Vector table ; ; Assembler Directives ; AREA IVT, CODE ; New Code section CODE32 ; ARM code IMPORT start ; start symbol not ; defined in this ; section Entry ; Defines entry point ; LDR PC, =start LDR PC, Undefined_Addr LDR PC, SWI_Addr LDR PC, Prefetch_Addr LDR PC, Abort_Addr NOP LDR PC, [PC, #-0xFF0] LDR PC, FIQ_Addr Undefined_Addr DCD Undefined_Handler SWI_Addr DCD SWI_Handler Prefetch_Addr DCD Prefetch_Handler Abort_Addr DCD Abort_Handler FIQ_Addr DCD FIQ_Handler ; ; Exception Handlers ; ; The following dummy handlers do not do anything useful in ; this example. They are set up here for completeness. Undefined_Handler B Undefined_Handler SWI_Handler B SWI_Handler Prefetch_Handler B Prefetch_Handler Abort_Handler B Abort_Handler Application note Rev April of 17
11 FIQ_Handler B FIQ_Handler END Startup Assembly code: ; ; Assembler Directives ; AREA asm_code, CODE ; New Code section CODE32 ; ARM code IMPORT main ; in this section EXPORT start ; main not defined ; global symbol ; referenced in ; ivt.s ; start ; Enable interrupts MSR cpsr_c,#0x13 ; Set SP for Supervisor mode. Depending upon ; the available memory the application needs to set ; the SP accordingly LDR SP,=0x4. ; Setting up SP for IRQ mode. Change mode to ; IRQ before setting SP_irq and then ; switch back to Supervisor mode MRS R0, CPSR BIC R1, R0,#0x1F ORR R1, R1,#0x12 MSR cpsr_c, R1 LDR SP, =0x4. MSR cpsr_c, R0 ; Jump to C code LDR lr, = main MOV pc, lr END C code #include"lpc210x.h" void Initialize(void); Application note Rev April of 17
12 /* I 2 C ISR */ irq void I 2 C _ISR(void); /* Master Transmitter states */ void ISR_8(void); void ISR_18(void); void ISR_28(void); /*************************** MAIN ************************/ int main() /* Initialize system */ Initialize (); /* Send start bit */ I 2 C ONSET=0x60; /* Do forever */ while(1) IOCLR=0x40; IOSET=0x40; /*************** System Initialization ***************/ void Initialize() /* Remap interrupt vectors to SRAM */ MEMMAP=0x2; /* Initialize GPIO ports to be used as indicators */ IODIR=0xF0; IOSET=0xF0; /* Initialize Pin Connect Block */ PINSEL0=0x50; /* Initialize I 2 C */ I2CONCLR=0x6c; /* clearing all flags */ I2CONSET=0x40; /* enabling I 2 C */ I2SCLH=0xC; /* 100 KHz */ I2SCLL=0xD; /* Initialize VIC for I 2 C use */ VICINTSEL=0x0; /* selecting IRQ */ VICINTEN= 0x200; /* enabling I 2 C */ VICCNTL0= 0x29; /* highest priority and enabled */ VICVADDR0=(unsigned long) I2C_ISR; /* ISR address written to the respective address register*/ Application note Rev April of 17
13 /********************** I 2 C ISR **************************/ irq void I2C_ISR() int temp=0; temp=i2stat; switch(temp) case 8: ISR_8(); break; case 24: ISR_18(); break; case 40: ISR_28(); break; default : break; VICVADDR=0xFF; /* I 2 C states*/ /* Start condition transmitted */ void ISR_8() /* Port Indicator */ IOCLR=0x10; /* Slave address + write */ I2DAT=0x74; /* Clear SI and Start flag */ I2CONCLR=0x28; /* Port Indicator */ IOSET=0x10; Application note Rev April of 17
14 /* Acknowledgement received from slave for slave address */ void ISR_18() /* Port Indicator */ IOCLR=0x20; /* Data to be transmitted */ I2DAT=0x55; /* clear SI */ I2CONCLR=0x8; /* Port Indicator */ IOSET=0x20; /* Acknowledgement received from slave for byte transmitted from master. Stop condition is transmitted in this state signaling the end of transmission */ void ISR_28() /* Port Indicator */ IOCLR=0x80; /* Transmit stop condition */ I2CONSET=0x10; /* clear SI */ I2CONCLR=0x8; /* Port Indicator */ IOSET=0x80; /********************************************************/ Linking notes for I 2 C code: Since the interrupt vectors need to be remapped to SRAM hence the interrupt vector table should be linked to 0x Remaining files could be linked after the interrupt vector table. The first instruction to be executed will be the instruction located at 0x , which would be LDR PC, start PC gets transferred to the assembly code and from there to the main C code. On an IRQ interrupt, PC will execute the instruction located at the IRQ interrupt vector in the interrupt vector table. LDR PC, [PC, #-0xFF0] On execution of this instruction, PC will start executing the I 2 C ISR located in the C file. 4.5 Output waveforms In the output waveform the following are shown Start condition Stop condition Application note Rev April of 17
15 Slave address Data byte In the code three port indicators were used which are shown in the waveforms below. For instance consider I 2 C state 8H. void ISR_8() /* Port Indicator */ IOCLR=0x10;. IOSET=0x10; The results of the two statements are shown in the oscilloscope as channel D3 (labeled S_8). Similarly, D4 indicates state 18H and D5 indicates state 28H. Channel D2 shows all the instances when the IRQ interrupt is triggered and normal program flow (i.e. while(1) loop in C main()) is interrupted and IRQ interrupts are serviced. Channel D1 and channel D0 indicate SDA and SCLK respectively. Fig 5. Waveforms Application note Rev April of 17
16 5. Disclaimers Life support These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips Semiconductors customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application. Right to make changes Philips Semiconductors reserves the right to make changes in the products - including circuits, standard cells, and/or software - described or contained herein in order to improve design and/or performance. When the product is in full production (status Production ), relevant changes will be communicated via a Customer Product/Process Change Notification (CPCN). Philips Semiconductors assumes no responsibility or liability for the use of any of these products, conveys no licence or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless otherwise specified. Application information Applications that are described herein for any of these products are for illustrative purposes only. Philips Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Application note Rev April of 17
17 6. Contents 1. Introduction UART Calculating Baud rate C Code Terminal Program settings Output SPI Speed Calculation C Code Output I 2 C Calculation of Bit frequency Setting of the slave address State Diagram (with regard to I 2 C states) Code Interrupt Vector table C code Linking notes for I 2 C code: Output waveforms Disclaimers Contents...17 Koninklijke Philips Electronics N.V All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights. Date of release: 06 April 2005 Published in The Netherlands
AN10850. LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode
LPC1700 timer triggered memory to GPIO data transfer Rev. 01 16 July 2009 Application note Document information Info Keywords Abstract Content LPC1700, GPIO, DMA, Timer0, Sleep Mode This application note
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
DATA SHEET. BC875; BC879 NPN Darlington transistors DISCRETE SEMICONDUCTORS. Product specification Supersedes data of 1999 May 28.
DISCRETE SEMICONDUCTORS DATA SHEET book, halfpage M3D186 Supersedes data of 1999 May 28 2004 Nov 05 FEATURES High DC current gain (min. 1000) High current (max. 1 A) Low voltage (max. 80 V) Integrated
4-bit binary full adder with fast carry CIN + (A1 + B1) + 2(A2 + B2) + 4(A3 + B3) + 8(A4 + B4) = = S1 + 2S2 + 4S3 + 8S4 + 16COUT
Rev. 03 11 November 2004 Product data sheet 1. General description 2. Features The is a high-speed Si-gate CMOS device and is pin compatible with low power Schottky TTL (LSTTL). The is specified in compliance
USER GUIDE EDBG. Description
USER GUIDE EDBG Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging support through Atmel
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
AN10866 LPC1700 secondary USB bootloader
Rev. 2 21 September 2010 Application note Document information Info Content Keywords LPC1700, Secondary USB Bootloader, ISP, IAP Abstract This application note describes how to add a custom secondary USB
DATA SHEET. BST50; BST51; BST52 NPN Darlington transistors DISCRETE SEMICONDUCTORS. Product specification Supersedes data of 2001 Feb 20.
DISCRETE SEMICONDUCTORS DATA SHEET book, halfpage M3D109 Supersedes data of 2001 Feb 20 2004 Dec 09 FEATURES High current (max. 0.5 A) Low voltage (max. 80 V) Integrated diode and resistor. APPLICATIONS
INTEGRATED CIRCUITS. NE558 Quad timer. Product data Supersedes data of 2001 Aug 03. 2003 Feb 14
INTEGRATED CIRCUITS Supersedes data of 2001 Aug 03 2003 Feb 14 DESCRIPTION The Quad Timers are monolithic timing devices which can be used to produce four independent timing functions. The output sinks
INTEGRATED CIRCUITS I CODE SLI. Smart Label IC SL2 ICS20. Functional Specification. Product Specification Revision 3.1 Public. Philips Semiconductors
INTEGRATED CIRCUITS I CODE SLI Smart Label IC SL2 ICS20 Product Specification Revision 3.1 February July 2005 2001 Public Philips Semiconductors CONTENTS 1 FEATURES...4 1.1 I CODE SLI RF Interface (ISO/IEC
AN10811 Programming SPI flash on EA3131 boards Rev. 01 1 May 2009 Application note Document information Info Content Keywords Abstract
Rev. 01 1 May 2009 Application note Document information Info Keywords Abstract Content LPC3130, LPC3131, SPI flash Example for programming SPI flash on EA3131 boards. Revision history Rev Date Description
PAC52XX Clock Control Firmware Design
APPLICATION NOTE PAC52XX Clock Control Firmware Design TM Marc Sousa Senior Manager, Systems and Firmware www.active-semi.com Copyright 2014 Active-Semi, Inc. TABLE OF CONTENTS APPLICATION NOTE... 1 Table
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
PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram
TOOLSTICK VIRTUAL TOOLS USER S GUIDE RELEVANT DEVICES 1. Introduction The ToolStick development platform consists of a ToolStick Base Adapter and a ToolStick Daughter card. The ToolStick Virtual Tools
DISCRETE SEMICONDUCTORS DATA SHEET
DISCRETE SEMICONDUCTORS DATA SHEET book, halfpage M3D186 Supersedes data of 1999 Apr 23 2001 Oct 10 FEATURES High current (max. 1 A) Low voltage (max. 80 V). APPLICATIONS Audio and video amplifiers. PINNING
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).
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,
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
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
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
AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor. http://onsemi.
Design Examples of On Board Dual Supply Voltage Logic Translators Prepared by: Jim Lepkowski ON Semiconductor Introduction Logic translators can be used to connect ICs together that are located on the
AN11008 Flash based non-volatile storage
Rev. 1 5 January 2011 Application note Document information Info Content Keywords Flash, EEPROM, Non-Volatile Storage Abstract This application note describes the implementation and use of a library that
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
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
How To Add A Usb Secondary Ipo Bootloader To An Lpc23Xx Flash Device To A Flash Device
Rev. 01 16 October 2008 Application note Document information Info Keywords Abstract Content LPC23xx, Secondary ISP Bootloader, Bootloader, USB This application note describes how to add custom USB secondary
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,
UART Boot Loader Design on the Kinetis E Series
Freescale Semiconductor Application Note Document Number: AN4767 Rev. 0, 7/2013 UART Boot Loader Design on the Kinetis E Series by Wang Peng Many applications and products need to upgrade the firmware
AN3998 Application note
Application note PDM audio software decoding on STM32 microcontrollers 1 Introduction This application note presents the algorithms and architecture of an optimized software implementation for PDM signal
AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS
AVR1309: Using the XMEGA SPI Features Introduction to SPI and the XMEGA SPI module Setup and use of the XMEGA SPI module Implementation of module drivers Polled master Interrupt controlled master Polled
Software development and debugging for NXP ARM7 MCUs
THE MINISTRY of EDUCATION and SCIENCE of RUSSIAN FEDERATION SAMARA STATE AEROSPACE UNIVERSITY Software development and debugging for NXP ARM7 MCUs Learner s guide SAMARA 2011 2 Compilers: Kudryavtsev Ilya
AN10849. LPC1700 RTC hardware auto calibration. Document information. RTC, Hardware Auto Calibration, LPC1700, Graphic LCD
Rev. 01 1 July 2009 Application note Document information Info Keywords Abstract Content RTC, Hardware Auto Calibration, LPC1700, Graphic LCD Using the LPC1700 RTC s auto calibration feature Revision history
AN10860_1. Contact information. NXP Semiconductors. LPC313x NAND flash data and bad block management
Rev. 01 11 August 2009 Application note Document information Info Keywords Abstract Content LPC3130 LPC3131 LPC313x LPC313X LPC3153 LPC3154 LPC3141 LPC3142 LPC31XX LPC31xx Linux kernel Apex boot loader
AN3332 Application note
Application note Generating PWM signals using STM8S-DISCOVERY Application overview This application user manual provides a short description of how to use the Timer 2 peripheral (TIM2) to generate three
ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information
Rev. 1.1 8 August 2012 Errata sheet Document information Info Keywords Abstract Content LPC4357FET256; LPC4357FET180; LPC4357FBD208; LPC4353FET256; LPC4353FET180; LPC4353FBD208; LPC4337FET256; LPC4337FET180;
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
AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.
SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES 1. Introduction C8051F3xx and C8051F41x devices are equipped with an SMBus serial I/O peripheral that is compliant with both the System Management
Application Note: AN00141 xcore-xa - Application Development
Application Note: AN00141 xcore-xa - Application Development This application note shows how to create a simple example which targets the XMOS xcore-xa device and demonstrates how to build and run this
76-77 GHz RF Transmitter Front-end for W-band Radar Applications
Freescale Semiconductor Data Sheet Summary for MC33 7-77 GHz RF Transmitter Front-end for W-band Radar Applications The MR2001 is a scalable three package solution for automotive radar modules. The chipset
AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction
AVR1510: Xplain training - XMEGA USART Prerequisites Required knowledge AVR1500: Xplain training XMEGA Basics AVR1502: Xplain training XMEGA Direct Memory Access Controller Software prerequisites Atmel
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,
APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features
APPLICATION NOTE AT07175: SAM-BA Bootloader for SAM D21 Atmel SAM D21 Introduction Atmel SAM Boot Assistant (Atmel SAM-BA ) allows In-System Programming (ISP) from USB or UART host without any external
Exception and Interrupt Handling in ARM
Exception and Interrupt Handling in ARM Architectures and Design Methods for Embedded Systems Summer Semester 2006 Author: Ahmed Fathy Mohammed Abdelrazek Advisor: Dominik Lücke Abstract We discuss exceptions
Old Company Name in Catalogs and Other Documents
To our customers, Old Company Name in Catalogs and Other Documents On April 1 st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took
MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information
Rev. 2.1 17. April 2007 Preliminary Data Sheet Document information Info Keywords Content MFRC522, MFRC523, MFRC52x, MFRD522, MFRD523, Mifare Contactless Smart Card Reader Reference Design, Mifare Reader
ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE
ELAN DIGITAL SYSTEMS LTD. LITTLE PARK FARM ROAD, SEGENSWORTH WEST, FAREHAM, HANTS. PO15 5SJ. TEL: (44) (0)1489 579799 FAX: (44) (0)1489 577516 e-mail: [email protected] website: http://www.pccard.co.uk
QorIQ espi Controller Register Setting Considerations and Programming Examples
Freescale Semiconductor Application Note Document Number: AN4375 Rev. 1, 06/2012 QorIQ espi Controller Register Setting Considerations and Programming Examples About this document This document describes
AN3155 Application note
Application note USART protocol used in the STM32 bootloader Introduction This application note describes the USART protocol used in the STM32 microcontroller bootloader. It details each supported command.
Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.
Scanning Comparator (ScanComp) 1.0 Features Scan up to 64 single ended or differential channels automatically Note The number of input and output channels will be limited by the hardware available in the
Chapter 13. PIC Family Microcontroller
Chapter 13 PIC Family Microcontroller Lesson 01 PIC Characteristics and Examples PIC microcontroller characteristics Power-on reset Brown out reset Simplified instruction set High speed execution Up to
Serial port interface for microcontroller embedded into integrated power meter
Serial port interface for microcontroller embedded into integrated power meter Mr. Borisav Jovanović, Prof. dr. Predrag Petković, Prof. dr. Milunka Damnjanović, Faculty of Electronic Engineering Nis, Serbia
Floating Point C Compiler: Tips and Tricks Part I
TMS320 DSP DESIGNER S NOTEBOOK Floating Point C Compiler: Tips and Tricks Part I APPLICATION BRIEF: SPRA229 Karen Baldwin Digital Signal Processing Products Semiconductor Group Texas Instruments June 1993
In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM-.01. www.rovingnetworks.com 1
RN-WIFLYCR-UM-.01 RN-ISP-UM In-System Programmer 2012 Roving Networks. All rights reserved. Version 1.1 1/19/2012 USER MANUAL www.rovingnetworks.com 1 OVERVIEW You use Roving Networks In-System-Programmer
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
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
AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE
Atmel AVR 8-bit Microcontrollers AT15007: Differences between ATmega328/P and ATmega328PB APPLICATION NOTE Introduction This application note assists the users of Atmel ATmega328 variants to understand
How to design and implement firmware for embedded systems
How to design and implement firmware for embedded systems Last changes: 17.06.2010 Author: Rico Möckel The very beginning: What should I avoid when implementing firmware for embedded systems? Writing code
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)
Application Note AN_299. FT800_FT801_Internal_Clock _Trimming
AN_299 FT800_FT801_Internal_Clock _Trimming Issue Date: 2014-03-04 The FTDI FT800 and FT801 video controllers offer a low cost solution for embedded graphics requirements. In addition to the graphics,
SC16IS740/750/760. Single UART with I 2 C-bus/SPI interface, 64 bytes of transmit and receive FIFOs, IrDA SIR built-in support
Single UART with I 2 C-bus/SPI interface, 64 bytes of transmit and receive FIFOs, IrDA SIR built-in support Rev. 7 9 June 2011 Product data sheet 1. General description The is a slave I 2 C-bus/SPI interface
Software Real Time Clock Implementation on MC9S08LG32
Freescale Semiconductor Document Number: AN4478 Rev. 0, 03/2012 Software Real Time Clock Implementation on MC9S08LG32 by: Nitin Gupta Automotive and Industrial Solutions Group 1 Introduction The MC9S08LG32
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
Programing the Microprocessor in C Microprocessor System Design and Interfacing ECE 362
PURDUE UNIVERSITY Programing the Microprocessor in C Microprocessor System Design and Interfacing ECE 362 Course Staff 1/31/2012 1 Introduction This tutorial is made to help the student use C language
StrongARM** SA-110 Microprocessor Instruction Timing
StrongARM** SA-110 Microprocessor Instruction Timing Application Note September 1998 Order Number: 278194-001 Information in this document is provided in connection with Intel products. No license, express
Command Processor for MPSSE and MCU Host Bus Emulation Modes
Future Technology Devices International Ltd. Application Note AN_108 Command Processor for MPSSE and MCU Host Bus Emulation Modes Document Reference No.: FT_000109 Version 1.5 Issue Date: 2011-09-09 This
AN3265 Application note
Application note Handling hardware and software failures with the STM8S-DISCOVERY Application overview This application is based on the STM8S-DISCOVERY. It demonstrates how to use the STM8S window watchdog
ZL30136 GbE and Telecom Rate Network Interface Synchronizer
be and Telecom Rate Network Interface Synchronizer Features rovides synchronous clocks for network interface cards that support synchronous Ethernet (SyncE) in addition to telecom interfaces (T1/E1, DS3/E3,
Programming Audio Applications in the i.mx21 MC9328MX21
Freescale Semiconductor Application Note Document Number: AN2628 Rev. 1, 10/2005 Programming Audio Applications in the MC9328MX21 by: Alfred Sin 1 Abstract The MC9328MX21 () processor has two dedicated
APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram
PRECISION32 SOFTWARE DEVELOPMENT KIT CODE EXAMPLES OVERVIEW 1. Introduction The Precision32 code examples are part of the Software Development Kit (SDK) installed with the Precision32 software package
Using the RS232 serial evaluation boards on a USB port
Document information Info Content Keywords Serial evaluation Board, PN512,PN532, MFRC663, MFRC522, MFRC523, MFRC52x, MFRD522, MFRD523, MFRD52x MIFARE Contactless Smart Card Reader Reference Design, MIFARE
AN3252 Application note
Application note Building a wave generator using STM8L-DISCOVERY Application overview This application note provides a short description of how to use the STM8L-DISCOVERY as a basic wave generator for
Using the HCS12 Serial Monitor on Wytec Dragon-12 boards. Using Motorola s HCS12 Serial Monitor on Wytec s Dragon-12 boards
Using Motorola s HCS12 Serial Monitor on Wytec s Dragon-12 boards Wytec s Dragon-12 development boards are pre-installed with DBug-12, a small monitor program which allows a user to interact with the board
Freescale Semiconductor, I
nc. Application Note 6/2002 8-Bit Software Development Kit By Jiri Ryba Introduction 8-Bit SDK Overview This application note describes the features and advantages of the 8-bit SDK (software development
HEF4021B. 1. General description. 2. Features and benefits. 3. Ordering information. 8-bit static shift register
Rev. 10 21 March 2016 Product data sheet 1. General description 2. Features and benefits 3. Ordering information The is an (parallel-to-serial converter) with a synchronous serial data input (DS), a clock
DISCRETE SEMICONDUCTORS DATA SHEET M3D848. CGD923 870 MHz, 20 db gain power doubler amplifier. Product specification 2002 Oct 08
DISCRETE SEMICONDUCTORS DATA SHEET M3D848 2002 Oct 08 FEATURES High output capability Excellent linearity Extremely low noise Excellent return loss properties Rugged construction Gold metallization ensures
Monitoring TMS320C240 Peripheral Registers in the Debugger Software
TMS320 DSP DESIGNER S NOTEBOOK Monitoring TMS320C240 Peripheral Registers in the Debugger Software APPLICATION BRIEF: SPRA276 Jeff Crankshaw Digital Signal Processor Solutions May 1997 IMPORTANT NOTICE
Internal Oscillator. I 2 C Interface. SPI Interface. Controller. Internal Registers Port Controller. Eight I/O Pins. Figure 1.
SPI TO I 2 C BRIDGE AND GPIO PORT EXPANDER Single Chip SPI to I 2 C Transfer Integrated clock; no external clock required On-Chip Voltage Monitor Slave Serial Peripheral Interface (SPI) Up to 1.0 Mbit/s
AN1754 APPLICATION NOTE
AN1754 APPLICATION NOTE DATA LOGGING PROGRAM FOR TESTING ST7 APPLICATIONS VIA ICC by Microcontroller Division Application Team INTRODUCTION Data logging is the process of recording data. It is required
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.
SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.
SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance
Quad 2-input NAND Schmitt trigger
Rev. 9 15 December 2015 Product data sheet 1. General description 2. Features and benefits 3. Applications The is a quad two-input NAND gate. Each input has a Schmitt trigger circuit. The gate switches
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,
SMD version of BUK118-50DL
DESCRIPTION QUICK REFERENCE DT Monolithic temperature and SYMBOL PRMETER MX. UNIT overload protected logic level power MOSFET in TOPFET2 technology V DS Continuous drain source voltage 50 V assembled in
TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0
TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0 Freescale TWR-KV31F120M Sample Code Guide for IAR KL25_LAB Contents 1 Purpose... 3 2 Getting to know the
AN11239. Boot mode jumper settings for LPC1800 and LPC4300. Document information
Rev. 1 1 July 2012 Application note Document information Info Keywords Abstract Content Hitex Rev A4, NGX Xplorer, Keil, element14, LPC1830, LPC1850, LPC4330, LPC4350, MCB1800, MCB4300 This application
14-stage ripple-carry binary counter/divider and oscillator
Rev. 8 25 March 2016 Product data sheet 1. General description 2. Features and benefits 3. Ordering information The is a with three oscillator terminals (RS, REXT and CEXT), ten buffered outputs (Q3 to
S/PDIF Software Component
S/PDIF Software Component Document Number: Publication Date: 2012/3/21 XMOS 2012, All Rights Reserved. S/PDIF Software Component 2/11 CONTENTS SPDIF software S/PDIF Receive S/PDIF Transmit 1 SPDIF software
Definitions and Documents
C Compiler Real-Time OS Simulator Training Evaluation Boards Using and Programming the I 2 C BUS Application Note 153 June 8, 2000, Munich, Germany by Keil Support, Keil Elektronik GmbH [email protected]
Bootloader with AES Encryption
...the world's most energy friendly microcontrollers Bootloader with AES Encryption AN0060 - Application Note Introduction This application note describes the implementation of a bootloader capable of
Low-Jitter I 2 C/SPI Programmable Dual CMOS Oscillator
eet General Description The DSC2111 and series of programmable, highperformance dual CMOS oscillators utilizes a proven silicon MEMS technology to provide excellent jitter and stability while incorporating
SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: 802.15.4 wireless embedded network
u Today: Wired embedded networks Ø Characteristics and requirements Ø Some embedded LANs SPI I2C LIN Ethernet u Next lecture: CAN bus u Then: 802.15.4 wireless embedded network Network from a High End
AD9125-EBZ Quick Start Guide
Quick Start Guide 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 Getting Started with the Evaluation Board WHAT S IN THE BOX Evaluation
AN1229. Class B Safety Software Library for PIC MCUs and dspic DSCs OVERVIEW OF THE IEC 60730 STANDARD INTRODUCTION
Class B Safety Software Library for PIC MCUs and dspic DSCs AN1229 Authors: Veena Kudva & Adrian Aur Microchip Technology Inc. OVERVIEW OF THE IEC 60730 STANDARD INTRODUCTION This application note describes
Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD
Quick Start Guide MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD Quick Start Guide Get to Know the MRB-KW01x Module UART Selector ANT 1 RFIO (TX/RX) USB 2.0 Serial
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:
Lesson 16 Analog-to-Digital Converter (ADC)
Lesson 16 Analog-to-Digital Converter (ADC) 1. Overview In this lesson, the Analog-to-Digital Converter (ADC) of the Cortex-M3 is introduced. For detailed description of the features and controlling options
AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction
AVR319: Using the USI module for SPI communication Features C-code driver for SPI master and slave Uses the USI module Supports SPI Mode 0 and 1 Introduction The Serial Peripheral Interface (SPI) allows
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
How To Fix An Lmx9838 Bluetooth Serial Port Module With Bluetooth 2.0.2.2 (Bluetooth 2) From A Bluetooth Bluetooth 4.2 Device With A Bluembee 2.2 Module
LMX9838 Firmware Release Note 1.0 Introduction The National Semiconductor LMX9838Bluetooth Serial Port module is a highly integrated radio, baseband controller, memory device, crystal, antenna and loop
D-PAK version of BUK117-50DL
D-PK version of BUK117-50DL DESCRIPTION QUICK REFERENCE DT Monolithic temperature and SYMBOL PRMETER MX. UNIT overload protected logic level power MOSFET in TOPFET2 technology V DS Continuous drain source
