// Karl's MS G4 Transmitter Code // Nordic packet: NO_FFTS, FFT_SIZE, 32 Floating Pt. Magnitude Sums
|
|
- Polly Barber
- 6 years ago
- Views:
Transcription
1 // Karl's MS G4 Transmitter Code // Nordic packet: NO_FFTS, FFT_SIZE, 32 Floating Pt. Magnitude Sums #include "DSP28x_Project.h" #include "Nordic_TX.h" #include <FPU.h> #include <math.h> #define FFT_SIZE 256 //32, 64, 128, 256, etc. #define FFT_STAGES 8 //log2(fft_size) #define NO_FFTS 1 //number of FFTs to sample & process //Linker file reserves space for up to 32*64 bins #define Nordic_CSN_low GpioDataRegs.GPACLEAR.bit.GPIO20 = 1 //Nordic Interface #define Nordic_CSN_high GpioDataRegs.GPASET.bit.GPIO20 = 1 #define Nordic_CE_low GpioDataRegs.GPACLEAR.bit.GPIO21 = 1 #define Nordic_CE_high GpioDataRegs.GPASET.bit.GPIO21 = 1 #define NordicIRQ GpioDataRegs.GPADAT.bit.GPIO24 #define PACKET_BYTES 288 //NO_FFTS, FFT_SIZE, 32 Mag Sums = 136 bytes + 24 dummy bytes to //create 160 bytes = 5x32 bytes = 5 packets void void void System_init(void); FFT_init(void); Transmit_Data(void); samplebuffer[fft_size*no_ffts]; OutBuffer[FFT_SIZE]; TwiddleBuffer[FFT_SIZE]; MagBuffer[FFT_SIZE/2]; SumSpectrum[FFT_SIZE/2]; Hanning[FFT_SIZE] = 0, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2 42, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,0.0; RFFT_F32_STRUCT fft; TempSum; unsigned long Nordic_Fail_Counter; char Nordic_Fail_Flg; // if counter overflows, flg is set & the entire transmit // event is dumped unsigned long TXdata[PACKET_BYTES]; #pragma DATA_SECTION(samplebuffer, "INBUFA"); //Align the INBUF section to 2*FFT_SIZE in the linker file void main(void) //LPM_ini(); EALLOW; FlashRegs.FPWR.all = 0; EDIS; System_init(); EALLOW; GpioCtrlRegs.GPADIR.all = 0x0005; GpioCtrlRegs.GPAPUD.bit.GPIO24 = 1; GpioDataRegs.GPADAT.bit.GPIO24 = 0; EDIS; sample_count = 0; FFT_init(); SetupNordicTX(); Nordic_Fail_Counter = 0; //Configure Low Power Mode (only needed for idle) //Turn off flash module //Initialize Peripheral Clock //Nordic GPIO Setup // GPIO0-GPIO31 are inputs... 0, 2, are output //diable pullup on nordic IRQ line //Initialize sample counter //Initialize FFT Configuration //Initialize Nordic // while(1) //this while loop is used for testing code...comment out when finished testing
3 Nordic_Fail_Flg = 0; Zero_SumSpectrum(); //Zero out Spectrum Sum values InitPll(1,1); //Clk Speed 1X (2,2), 2X (4,2), 3X (6,2), 4X (8,2) //5X (10,2) first number multiplies, second number (1) = /4 //(2) = /2, (3) = /1 does not work for(i=0;i<fft_size;i++) samplebuffer[i] = samplebuffer[i] * Hanning[i]; for(j=0;j<(no_ffts);j++) //COMPUTE ALL FFTs and MAGNITUDES fft.inbuf = &samplebuffer[j*fft_size]; //Set FFT input ptr to original sample buffer RFFT_f32(&fft); //Real FFT Calc (read from sample buffer) fft.magbuf = &samplebuffer[j*(fft_size/2)]; //Set Mag output ptr to orig sample buf RFFT_f32_mag(&fft); //Real Mag Calc (write back to sample buf) for(j=0;j<(no_ffts);j++) //COMPUTE SUM SPECTRUM for(i=0;i<(fft_size/2);i++) TempSum = SumSpectrum[i] + samplebuffer[(j*(fft_size/2))+i]; SumSpectrum[i] = TempSum; SumSpectrum[0] = 0.0; if (Channel == 0) LED_on; NordicWReg(RF_CH, 40); NordicWReg(RF, 0x86); Nordic_CE_high; while(1) LED_on; Transmit_Data(); LED_off; //make DC term zero //CONSTANT CARRIER TEST CODE //Write RF Channel Register // pulse CE high for 10uS t start packet transmit //NORDIC TRANSMIT DATA // //end of test while loop...comment out when finished testing
4 void Zero_SumSpectrum(void) for(i=0;i<(fft_size/2);i++) SumSpectrum[i]= 0.0; void Zero_SampleBuffer(void) for(j=0;j<(no_ffts);j++) for(i=0;i<(fft_size);i++) samplebuffer[j*fft_size+i]= 0.0; //Zero Out SumSpectrum values //DEBUG PURPOSES - load sample buffer with zeros void System_init(void) InitSysCtrl(); InitPll(2,2); //SYSTEM INITIALIZATION 2MHZ XTAL //Clk Speed 1X (2,2), 2X (4,2), 3X (6,2), 4X (8,2) 5X (10,2) first number //multiplies, second number (1) = /4, (2) = /2, (3) = /1 does not work void FFT_init(void) //FFT INITIALIZATION fft.inbuf = samplebuffer; //Input data buffer fft.outbuf = OutBuffer; //FFT output buffer fft.cossinbuf = TwiddleBuffer; //Twiddle factor buffer fft.fftsize = FFT_SIZE; //FFT length fft.fftstages = FFT_STAGES; //FFT Stages fft.magbuf = MagBuffer; //Magnitude buffer RFFT_f32_sincostable(&fft); //Initialize Twiddle Buffer typedef Uint16 UBYTE; /* Unsigned 8 bit quantity */ typedef Uint16 UWORD; /* Unsigned 16 bit quantity */ void RF_calc_crc(unsigned long *pdata, int count) UWORD CRC, temp; unsigned long value; int i,j,k;
5 CRC=0xffff; for(i=0;i<count;i++) value=*pdata++; for(j=0;j<4;j++) temp=value>>(8*j); temp=temp & 0x00FF; CRC=CRC ^ temp; for(k=0;k<8;k++) temp=crc & 0x0001; CRC=CRC >> 1; if ((temp & 0x0001)== 0x0001) CRC=CRC ^ 0xA001; *pdata++= (UBYTE) CRC & 0x00ff; temp = CRC >> 8; *pdata = (UBYTE)temp & 0x00ff; void Transmit_Data(void) volatile unsigned short ret; int i= 0,j = 0,k = 0, word_count= 0; inter; TXdata[0] = (unsigned long) NO_FFTS; TXdata[1] = (unsigned long) FFT_SIZE; TXdata[2] = 1; //Build TX data packet //FFT Size //Battery Good for(i=0;i<(fft_size/4);i++) memcpy(&txdata[i+3],&sumspectrum[i],sizeof()); for(i=0;i<5;i++) TXdata[i+67] = 0xfab4; //5 dummy values RF_calc_crc(TXdata,67); //Calc CRC16 for(k = 0;k < PACKET_BYTES/32; k++) //32 bytes per RF trans. event (8x32 bit words per tx event) Nordic_CSN_low; //enable nordic to recieve commands SPITX(W_TX_PAYLOAD); //send write payload command while (SpiaRegs.SPIFFRX.bit.RXFFINT == 0); //wait for transmission to complete
6 for(i = 0;i <= 7; i++) word_count++; SPITX(TXdata[i+j] >> 24); //send high byte SPITX(TXdata[i+j] >> 16); //send Low byte SPITX(TXdata[i+j] >> 8); //send high byte SPITX(TXdata[i+j]); //send Low byte Nordic_CSN_high; //deselct Nodic on SPI Nordic_CE_high; // pulse CE high for 10uS t start packet transmit DELAY_US(15); while (!NordicIRQ &&!Nordic_Fail_Flg) Nordic_Fail_Counter++; if (Nordic_Fail_Counter == 2001) Nordic_Fail_Flg = 1; DELAY_US(300); if ((NordicRReg(STATUS) & 0x10) Nordic_Fail_Flg) NordicTX(0xE1); //Flush TX Buffer Nordic_Fail_Flg = 0; Nordic_Fail_Counter = 0; k = (PACKET_BYTES/32)+1; NordicWReg(STATUS, 0x70); //Write Status Register to clear all flags j += 8; //increment index (counting 8 longs per transmit) DELAY_US(3000); Nordic_CE_low;
F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE
Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN-500035-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE Revision History Revision
More informationApplication Note: AN00144 xcore-xa - xcore ARM Boot Library
Application Note: AN00144 xcore-xa - xcore ARM Boot Library This application note shows how to create a simple application which targets the XMOS xcore-xa device and demonstrates how to build and run this
More informationHardware interface and protocol of data exchange with mobile beacon via USB, UART and SPI interfaces.
Hardware interface and protocol of data exchange with mobile beacon via USB, UART and SPI interfaces. Version 2016.03.07 Valid for firmware v4.07 and newer To get location data from mobile beacon (hedgehog),
More informationOPERATIONAL AMPLIFIER
Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN-500080-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95F430 SERIES OPERATIONAL AMPLIFIER APPLICATION NOTE Revision History Revision History
More informationOPERATIONAL AMPLIFIER
Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN-500080-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95F430 SERIES OPERATIONAL AMPLIFIER APPLICATION NOTE Revision History Revision History
More informationF28335 ControlCard Lab1
F28335 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f2833x\v132
More informationTel: Fax:
/****************************************************************************** Title: RFM22 transmitter demo program Current version: V1.2 Function: Package send Demo Processor PIC16F690 DIP-20 Clock:
More informationnrf 24E1 Figure 1: Wireless 2.4GHz mouse/keyboard application
USB MCU nrf 2401 APPLICATION NOTE Frequency Agility Protocol for nrf24xx nan24-07 1. General This application note describes the low-level. This is a protocol that gives protection against disturbing traffic
More informationECE Microcontrollers. Serial Peripheral Interface (SPI) & NRF24 Radio
ECE 381 - Microcontrollers Serial Peripheral Interface (SPI) & NRF24 Radio Lab 9 Summary We will develop a wireless temperature sensor Once a second, sample LM34CZ voltage Convert to floating point with
More informationF28069 ControlCard Lab1
F28069 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f28069\v135
More information8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers
8051 Peripherals On-Chip Memory Timers Serial Port Interrupts Computer Engineering 2 2-1 8051 Timers 8051 Timers The 8051 has 2 internal 16-bit timers named Timer 0 and Timer 1 Each timer is a 16-bit counter
More informationEngineer-to-Engineer Note
Engineer-to-Engineer Note EE-391 Technical notes on using Analog Devices products and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors or e-mail
More informationUser Manual of NRF24L01 Breakout Board
User Manual of NRF24L01 Breakout Board LinkSprite Technologies, Inc December 2010 1 / 9 1. Introduction 1. 2.4GHz ISM frequency band 2. Max data rate 2Mbps, GFSK modulation, robust anti-interference, especially
More informationApplication Note: AN00142 xcore-xa - xcore ARM Bridge Library
Application Note: AN00142 xcore-xa - xcore ARM Bridge Library This application note shows how to create a simple application which targets the XMOS xcore-xa device and demonstrates how to build and run
More informationZigbee Development Board (Z- DB001) with Z-001 or Z-002 Module
Zigbee Development Board (Z- DB001) with Z-001 or Z-002 Module H-2 Technik UG (haftungsbescgränkt) Version Information Version Date Modified By Introduction 1.1 05.2017 Wang Release Inhalt 1. Hardware
More informationF28027 USB Stick Lab1_3
F28027 USB Stick Lab1_3 Blink LED LD2 (GPIO34) CPU Timer 0 Interrupt Service FLASH based standalone version 1. Project Dependencies The project expects the following support files: Support files of controlsuite
More informationCAN Module Documentation
CAN Module Documentation Thomas Craig twc22 12/11/2009 Overview Purpose To provide a standard and robust C-language ARM7 software interface to the Controller Area Network (CAN) busses that form the main
More informationAMP DISPLAY INC. SPECIFICATIONS AMP DISPLAY INC 9856 SIXTH STREET RANCHO CUCAMONGA CA TEL: FAX:
AMP DISPLAY INC. SPECIFICATIONS CUSTOMER CUSTOMER PART NO. AMP PART NO. AP-CTP035A0RSI3E00000 APPROVED BY DATE Approved For Specifications Approved For Specifications & Sample AMP DISPLAY INC 9856 SIXTH
More informationF28335 I2C MODULE v1.1
1 F28335 I2C MODULE v1.1 Abstract This document describes how to configure for I2C module of F28335. 2 Table of Contents 1. Overview... 3 2. Configuration details... 3 3. Reference... 7 3 1. Overview Step
More informationAN-1435 APPLICATION NOTE
APPLICATION NOTE 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 Implementing UART Using the ADuCM3027/ADuCM3029 Serial Ports INTRODUCTION
More informationEE445L Fall 2010 Final Version A Page 1 of 10
EE445L Fall 2010 Final Version A Page 1 of 10 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are done, you turn in
More informationFinal exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Dec 20, Student's name: Student ID:
Fall term 2012 KAIST EE209 Programming Structures for EE Final exam Thursday Dec 20, 2012 Student's name: Student ID: The exam is closed book and notes. Read the questions carefully and focus your answers
More informationConto D1 MODBUS COMMUNICATION PROTOCOL
ENERGY METER Conto D1 MODBUS COMMUNICATION PROTOCOL 4/03/15 Pagina 1 di 7 FIRMWARE CONTENTS 1.0 ABSTRACT 2.0 DATA MESSAGE DESCRIPTION 2.1 Parameters description 2.2 Data format 2.3 Description of CRC calculation
More informationApplication note, Nordic nrf24l01 with Bascom-Avr
Application note, Nordic nrf24l01 with Bascom-Avr Getting a Nordic nrf24l01 single chip 2.4GHZ radio transceiver up and running with Bascom-Avr. Written by Evert Dekker 2007. What s an nrf24l01 The nrf24l01
More informationME 4447/ME Microprocessor Control of Manufacturing Systems/ Introduction to Mechatronics. Instructor: Professor Charles Ume
ME 4447/ME 6405 Microprocessor Control of Manufacturing Systems/ Introduction to Mechatronics Instructor: Professor Charles Ume Lecture on Codewarrior Integrated Development Environment Contents Overview
More informationCOMMUNICATION MODBUS PROTOCOL
COMMUNICATION MODBUS PROTOCOL BOZZA_V04 Conto D6-Pd 05/12/2017 Pag. 1/15 CONTENTS 1.0 ABSTRACT... 2 2.0 DATA MESSAGE DESCRIPTION... 3 2.1 Parameters description... 3 2.2 Data format... 4 2.3 Description
More informationVCU-II Software Library USER S GUIDE
VCU-II Software Library USER S GUIDE C28X-VCU-LIB-UG-V2.10.00.00 Copyright 2015 Texas Instruments Incorporated. Copyright Copyright 2015 Texas Instruments Incorporated. All rights reserved. ControlSUITE
More informationHello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used
Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used to connect devices such as microcontrollers, sensors,
More informationAN HI-3200 Avionics Data Management Engine Evaluation Board Software Guide
August 12, 2011 AN - 166 HI-3200 Avionics Data Management Engine Evaluation Board Software Guide Introduction This application note provides more detail on the HI-3200 demo software provided in the Holt
More informationLORD MANUAL. Wireless Sensor Networks LXRS Data Communications Protocol
LORD MANUAL Wireless Sensor Networks LXRS Data Communications Protocol 1 2013 LORD Corporation MicroStrain Sensing Systems 459 Hurricane Lane Suite 102 Williston, VT 05495 United States of America Phone:
More informationEECS 373 Midterm 2 Fall 2018
EECS 373 Midterm 2 Fall 2018 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Nor did I discuss this exam with anyone after
More informationSpiNNaker Application Programming Interface (API)
SpiNNaker Application Programming Interface (API) Version 2.0.0 10 March 2016 Application programming interface (API) Event-driven programming model The SpiNNaker API programming model is a simple, event-driven
More informationCOMMUNICATION MODBUS PROTOCOL
COMMUNICATION MODBUS PROTOCOL MFD4E06 - NEMO-D4e PR146 08/03/2018 Pag. 1/16 CONTENTS 1.0 ABSTRACT... 2 2.0 DATA MESSAGE DESCRIPTION... 3 2.1 Parameter description... 3 2.2 Data format... 4 2.3 Description
More information2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II
2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II Instructor: Dr. Hong Ma Oct. 1, 2007 Structure of MSP430 Program 1. Declarations 2. main() 1. Watch-dog timer servicing 2.
More informationFeatures 2.4 GHz Carrier Frequency RS232 UART interface with variable baud rate Input supply voltage: 5V to 12V 255 possible Channels frequencies (0 to 255) Programmable Device Address (255 per channel)
More informationAPPLICATION NOTE 5306 Programming Baud Rates of the MAX3108 UART
Maxim > Design Support > Technical Documents > Application Notes > Interface Circuits > APP 5306 Keywords: UART, RS232, RS485, SPI, I2C, half duplex, HDX, full duplex, FDX, WLP, wafer level package, FIFO,
More informationEE Embedded Systems Design. Lessons Exceptions - Resets and Interrupts
EE4800-03 Embedded Systems Design Lessons 7-10 - Exceptions - Resets and Interrupts 1 - Exceptions - Resets and Interrupts Polling vs. Interrupts Exceptions: Resets and Interrupts 68HC12 Exceptions Resets
More informationWiMOD LR Base Host Controller Interface
WiMOD LR Base Host Controller Interface Specification Version 1.10 Document ID: 4100/40140/0062 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY Introduction Document Information File
More informationWiMOD LR Base Plus Host Controller Interface
WiMOD LR Base Plus Host Controller Interface Specification Version 1.2 Document ID: 4000/40140/0125 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY Introduction Document Information
More informationE85 Lab 8: Assembly Language
E85 Lab 8: Assembly Language E85 Spring 2016 Due: 4/6/16 Overview: This lab is focused on assembly programming. Assembly language serves as a bridge between the machine code we will need to understand
More informationExceptions in H8S/2357. Exercise Interrupts "Traffic Light Controller"
Exceptions in H8S/2357 Exercise Interrupts "Traffic Light Controller" - Principles Time Based Event Handling - Implementation H8S/2357 as Internal TPU Controlled Interrupts - Recapitulation - Handling
More informationHI 3593 ARINC V Dual Receiver, Single Transmitter with SPI Application Note AN 161 June 13, 2012
23351 Madero, Mission Viejo, CA 92691. USA. Tel: + 1 949 859 8800 Fax: + 1 949 859 9643 Email: sales@holtic.com Web: www.holtic.com HI 3593 ARINC 429 3.3V Dual Receiver, Single Transmitter with SPI Application
More informationUsing UART in radio data transmission with the CDP-02 module By Tomihiko Uchikawa
Using UART in radio data transmission with the CDP-02 module By Tomihiko Uchikawa Abstract: The first time a customer uses the CDP-TX-02N/RX-02N (called CDP-02 module) radio module, they are often uncertain
More informationWrite LED display data, in accordance with the address from the display from low to high, from low to high data byte operation.
The register stores transferred from an external device via the serial interface to the TM1637 data address 00H-05H bytes of six units, respectively, and SGE and GRID pin chip LED lights are connected
More informationIP-ARINC429. OCTAL ARINC429 Industry Pack Module REFERENCE MANUAL. Revision 1.2 September 2009
IP-ARINC429 OCTAL ARINC429 Industry Pack Module REFERENCE MANUAL Revision 1.2 September 2009 ALPHI TECHNOLOGY CORP. 1898 E. Southern Ave Tempe, AZ 85282 USA Tel : (480 838-2428 IP_ARINC429 HARDWARE REFERENCE
More informationWireless M-Bus Host Controller Interface DLL
Wireless M-Bus Host Controller Interface DLL Document ID: 4100/6404/0051 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY General Information Document Information File name WMBus_HCIDLL_Spec.docx
More informationL76-L I2C Application Note
GNSS Module Series Rev. L76-L_I2C_Application_Note_V1.0 Date: 2016-09-14 www.quectel.com Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company
More informationEE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.
More on Programming the 9S12 in C Huang Sections 5.2 through 5.4 Introduction to the MC9S12 Hardware Subsystems Huang Sections 8.2-8.6 ECT_16B8C Block User Guide A summary of MC9S12 hardware subsystems
More informationWiMOD LR Base Host Controller Interface
WiMOD LR Base Host Controller Interface Specification Version 1.7 Document ID: 4100/40140/0062 IMST GmbH Carl-Friedrich-Gauß-Str. 2-4 47475 KAMP-LINTFORT GERMANY Introduction Document Information File
More informationCOMMUNICATION MODBUS PROTOCOL
COMMUNICATION MODBUS PROTOCOL CE4DT36 CONTO D4 Pd (3-single phase) PR134 20/10/2016 Pag. 1/11 Contents 1.0 ABSTRACT... 2 2.0 DATA MESSAGE DESCRIPTION... 3 2.1 Parameters description... 3 2.2 Data format...
More information8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.
AVR134: Real-Time Clock (RTC) using the Asynchronous Timer Features Real-Time Clock with Very Low Power Consumption (4µA @ 3.3V) Very Low Cost Solution Adjustable Prescaler to Adjust Precision Counts Time,
More informationUM2379. The BlueNRG-1, BlueNRG-2 radio driver. User manual. Introduction
User manual The BlueNRG-1, BlueNRG-2 radio driver Introduction This document describes the BlueNRG-1, BlueNRG-2 radio low level driver, which provides access to the BlueNRG-1 and BlueNRG-2 devices in order
More informationIF96017 MODBUS COMMUNICATION PROTOCOL
CONTENTS 1.0 ABSTRACT 04/07/14 Pagina 1 di 9 MULTIFUNCTION FIRMWARE 1.00 COMMUNICATION PROTOCOL IF96017 MODBUS COMMUNICATION PROTOCOL 2.0 DATA MESSAGE DESCRIPTION 2.1 Parameters description 2.2 Data format
More informationKeywords: CRC, CRC-7, cyclic redundancy check, industrial output, PLC, programmable logic controller, C code, CRC generation, microprocessor, switch
Keywords: CRC, CRC-7, cyclic redundancy check, industrial output, PLC, programmable logic controller, C code, CRC generation, microprocessor, switch APPLICATION NOTE 6002 CRC PROGRAMMING FOR THE MAX14900E
More informationCODA Online Data Formats
CODA Online Data Formats Evio Header Formats Bank : 32 bits MSB (31) LSB (0) Length (32 bit words, exclusive) Tag (16 bits) (2) Type (6) Num (8) Segment : Padding Tag (8 bits) (2) Type (6) Length (16)
More informationMicrocontroller Introduction
Microcontroller Introduction Embedded Systems 2-1 Data Formats for the Renesas Microcontroller Byte Word 8 bits signed & unsigned unsigned range 0 to 255 unsigned char a; 16 bits signed & unsigned unsigned
More information80C51 Block Diagram. CSE Overview 1
80C51 Block Diagram CSE 477 8051 Overview 1 80C51 Memory CSE 477 8051 Overview 3 8051 Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits i.e. addresses for only 256 bytes! PC is
More informationCOMMUNICATION MODBUS PROTOCOL
COMMUNICATION MODBUS PROTOCOL CE4DMID31 / CE4DMID21 CONTO D4 Pd MID PR123 20/10/2016 Pag. 1/9 Contents 1.0 ABSTRACT... 2 2.0 DATA MESSAGE DESCRIPTION... 3 2.1 Parameters description... 3 2.2 Data format...
More informationSPIRIT1 Development Kit Software Package
SPIRIT1 Development Kit Software Package SPIRIT1 Development Kit content [1/3] SPIRIT1 Library (STM32L, STM8L) Spirit1 low level drivers: APIs to manage the features the device offers (platform independent
More informationInterfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller
Interfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller 1 INTRODUCTION The objective of this document is to show how to set up SPI/I2C communication between VTI Technologies CMR3000-D01 digital
More informationEmbedded Software TI2726 B. 4. Interrupts. Koen Langendoen. Embedded Software Group
Embedded Software 4. Interrupts TI2726 B Koen Langendoen Embedded Software Group What is an Interrupt? Asynchronous signal from hardware Synchronous signal from software Indicates the need for attention
More informationAsynchronous Serial Communication Protocol (without Flow Control) using TLM 2.0 (Example of Non memory based protocol )
Asynchronous Serial Communication Protocol (without Flow Control) using TLM 2.0 (Example of Non memory based protocol ) Copyright GreenSocs Ltd 2008 Developed by: Manish Aggarwal, Ruchir Bharti Circuitsutra
More information+ Overview. Projects: Developing an OS Kernel for x86. ! Handling Intel Processor Exceptions: the Interrupt Descriptor Table (IDT)
+ Projects: Developing an OS Kernel for x86 Low-Level x86 Programming: Exceptions, Interrupts, and Timers + Overview! Handling Intel Processor Exceptions: the Interrupt Descriptor Table (IDT)! Handling
More informationInterfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller
Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller 1 INTRODUCTION The objective of this document is to show how to set up SPI/I2C communication between VTI Technologies CMA3000-D01 digital
More informationFPU DSP Software Library USER S GUIDE
FPU DSP Software Library USER S GUIDE FPU-SW-LIB-UG-V1.50.00.00 Copyright 2015 Texas Instruments Incorporated. Copyright Copyright 2015 Texas Instruments Incorporated. All rights reserved. ControlSUITE
More informationEEPROM Driver for MC56F84xxx and MC56F82xxx DSC Family
Freescale Semiconductor Document Number: AN5074 Application Note Rev 0, 01/2015 EEPROM Driver for MC56F84xxx and MC56F82xxx DSC Family by: Xuwei Zhou 1 Introduction In the Freescale MC56F84xxx DSC family,
More informationExperiment Objectives. 2. Preparation. 3. Tasks. 3.1 Task A: String to Integer Conversion
Experiment 3 1. Objectives In this experiment, you will learn more AVR instructions by writing AVR assembly programs to do string-to-number conversion, positional multiplication, positional division, and
More informationDesign UART Loopback with Interrupts
Once the E is displayed, will the 0 reappear if you return the DIP switch to its OFF position and re-establish the loopback path? Usually not. When you break the loopback path, it will most likely truncate
More informationSpecification E2 Interface
Specification E2 Interface Version 4.1 Name Date Created: Robert Mayr. 15.04.2011 Checked: Haider A. 15.04.2011 Approved: Reason for change: Text corrections TABLE OF CONTENTS 1 INTRODUCTION... 3 1.1 Overview..................................................................................................................
More informationUM2330 User manual. ST8500 boot. Introduction
UM30 User manual ST8500 boot Introduction This user manual describes ST8500 bootloader functionalities and operations to be done for a correct device boot and the firmware images download. The following
More informationMCO556 Practice Test 2
Question 1 : MCO556 For the program shell on the following page, fill in the blanks and add the code required to create a program which flashes LEDs. The LED flashing must be controlled from the keypad
More informationThomas Liu (Business Manager) //****************************************************************//
//****************************************************************// // Program for AM230x series //MCU: AT89S52, Frequency of crystal oscillator: 11.0592MHz //Function: Transmit RH & Temp. Data via PC
More informationFloating-Point Unit. Introduction. Agenda
Floating-Point Unit Introduction This chapter will introduce you to the Floating-Point Unit (FPU) on the LM4F series devices. In the lab we will implement a floating-point sine wave calculator and profile
More informationConcepts of Serial Communication
Section 6. Serial Communication Communication Using Serial Interfaces: UART and SPI Concepts of Serial Communication Limitations of Parallel Bus Clock skew becomes a serious issue for high speed and long
More informationHow to use RFpro in Packet Mode
How to use RFpro in Packet Mode Jumper Setting Priority Jumper J1 à Configuration Mode Jumper à Higher Priority Jumper J2 à Packet Mode Jumper à Lower Priority When both the jumpers are connected, by default,
More informationF²MC-8FX FAMILY MB95200H/210H SERIES HOW TO USE DBG PIN 8-BIT MICROCONTROLLER APPLICATION NOTE
Fujitsu Microelectronics (Shanghai) Co., Ltd. Application Note MCU-AN-500009-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H/210H SERIES HOW TO USE DBG PIN APPLICATION NOTE Revision History Revision
More informationOptional Pause Pulse for constant frame length of 282 clock ticks
PSoC Creator Component Datasheet Single Edge Nibble Transmission (SENT_TX) 1.0 Features Compliant with SAE J2716 APR2016 (Issued 2007-04, Revised 2016-04) without any serial message formats Selectable
More informationAVR Timers TIMER0. Based on:
AVR Timers TIMER0 Based on: http://maxembedded.wordpress.com/2011/06/24/avr-timers-timer0-2/ The basic concepts of AVR Timers. Let me summarize it: We have seen how timers are made up of registers, whose
More informationUBC104 Embedded Systems. Review: Introduction to Microcontrollers
UBC104 Embedded Systems Review: Introduction to Microcontrollers Processors General purpose processors: 80386 Pentium Core Duo Large number of pins External memory External peripherals * Figure from Intel
More information8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 { 0x25, 0x66 }, // "4" { 0x2E, 0x6D }, // "5" { 0x36, 0x7D }, // "6" { 0x3D, 0x07 }, // "7" { 0x3E, 0x7F }, // "8" { 0x46,
More informationFinal Exam. 11 May 2018, 120 minutes, 26 questions, 100 points
Name: CS520 Final Exam 11 May 2018, 120 minutes, 26 questions, 100 points The exam is closed book and notes. Please keep all electronic devices turned off and out of reach. Note that a question may require
More informationCN310 Microprocessor Systems Design
CN310 Microprocessor Systems Design Microcontroller Nawin Somyat Department of Electrical and Computer Engineering Thammasat University Outline Course Contents 1 Introduction 2 Simple Computer 3 Microprocessor
More informationF²MC-8FX FAMILY MB95200H/210H SERIES HOW TO USE DBG PIN 8-BIT MICROCONTROLLER APPLICATION NOTE
Fujitsu Microelectronics (Shanghai) Co., Ltd Application Note MCU-AN-500009-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H/210H SERIES HOW TO USE DBG PIN APPLICATION NOTE Revision History Revision
More informationSENSYLINK Microelectronics Co., LTD. (CT1701) Single-Wire Digital Temperature Sensor
SENSYLINK Microelectronics () Single-Wire Digital Temperature Sensor is a Low Cost Digital Temperature Sensor with±0.1 C Accuracy over 33 C to 43 C with Single-wire Interface. It is ideally used in General
More informationZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B
ZMD400-A01 ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE 802.15.4 Standard DATA SHEET Version B Quan International Co., Ltd., ZMD400 Features Fully compliant 802.15.4 Standard
More informationData Link Protocols. High Level Data. Control Protocol. HDLC Framing ~~~~~~~~ Functions of a Data Link Protocol. Framing PDUs. Addressing Destination
Data Link Protocols Data Link Services Connection-less services Functions of a Data Link Protocol Framing PDUs ing Destination Error Detection / Error Recovery Link Management Ethernet (covered elsewhere)
More informationReal-Time Embedded Systems. CpE-450 Spring 06
Real-Time Embedded Systems CpE-450 Spring 06 Class 5 Bruce McNair bmcnair@stevens.edu 5-1/42 Interfacing to Embedded Systems Distance 100 m 10 m 1 m 100 cm 10 cm "Transmission line" capacitance ( C) Distance
More informationTwo Wire Interface (TWI) also commonly called I2C
(TWI) also commonly called I2C MSP432 I2C 2 tj MSP432 I2C ARM (AMBA Compliant) 8 bit transmission word 7/10 bit addressing Multi-master/slave modes 4 slave addresses 4 eusci-b modules 3 tj Overview 8 bit
More informationAMCAT Automata Coding Sample Questions And Answers
1) Find the syntax error in the below code without modifying the logic. #include int main() float x = 1.1; switch (x) case 1: printf( Choice is 1 ); default: printf( Invalid choice ); return
More informationMIDI.C December 8, 2002 Page 1
MIDI.C December 8, 2002 Page 1 /* Midi.c These are the functions that provide the interface to the midi port */ #include #include #include "smb.h" #include "midi.h" #pragma interrupt_handler
More informationFredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.
SECOND шт. Assembly and С Programming forthefreescalehcs12 Microcontroller Fredrick M. Cady Department of Electrical and Computer Engineering Montana State University New York Oxford Oxford University
More informationDesigning Your Own Soft Modules
4 Objectives Learn how to create circuit schematics with OrCAD Learn how to export a circuit from OrCAD as an EDIF netlist. Learn how to import an EDIF netlist into the FastChip library as a new soft module.
More information7.2: Timersystem im Input-Capture Modus
7.2: Timersystem im Input-Capture Modus Sie verstehen die Betriebsart Input-Capture des Timersystems im HCS08. Sie können das Timersystem zur Auswertung von empfangenen Signalen einsetzen. 1. Timer mit
More informationTECH TIP. Tritex Modbus Protocol Specification
Tritex Modbus Protocol Specification Introduction This document describes Tritex s implementation of the MODBUS communication protocol used for transferring data between a serial host and an Exlar drive.
More informationEE445L Fall 2014 Final Version A solution Page 1 of 7
EE445L Fall 2014 Final Version A solution Page 1 of 7 Jonathan W. Valvano Solution This is the closed book section. You must put your answers in the boxes. When you are done, you turn in the closed-book
More informationInterrupts and Using Them in C
Interrupts and Using Them in C Lecture 10 Embedded Systems 10-1 In These Notes... Interrupts How they work Creating and debugging C interrupt routines Sources M16C Hardware Manual P&P 8.1 and 8.5 Readings
More informationEE445L Fall 2014 Final Version A Page 1 of 7
EE445L Fall 2014 Final Version A Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes. When you are done, you turn in the closed-book part
More informationC:\Documents and Settings\Administrateur\Mes documents\projets Keil\DisplayTech\main.c
#include "c8051f000.h" #define TH0VAL 0xFB //Valeur du poids fort du Timer 0 #define TL0VAL 0x71 //Valeur du poids faible du Timer 0 #define csetd0 0x01 #define csetd1 0x02 #define csetd2 0x04 #define
More informationCS16 Exam #1 7/17/ Minutes 100 Points total
CS16 Exam #1 7/17/2012 75 Minutes 100 Points total Name: 1. (10 pts) Write the definition of a C function that takes two integers `a` and `b` as input parameters. The function returns an integer holding
More informationMICROPROCESSOR BASED SYSTEM DESIGN
MICROPROCESSOR BASED SYSTEM DESIGN Lecture 5 Xmega 128 B1: Architecture MUHAMMAD AMIR YOUSAF VON NEUMAN ARCHITECTURE CPU Memory Execution unit ALU Registers Both data and instructions at the same system
More information