The Schultz MIDI Benchmarking Toolbox for MIDI Interfaces, Percussion Pads, and Sound Cards

Total Page:16

File Type:pdf, Size:1020Kb

The Schultz MIDI Benchmarking Toolbox for MIDI Interfaces, Percussion Pads, and Sound Cards Behavior Research Methods (2019) 51:204–234 https://doi.org/10.3758/s13428-018-1042-7 The Schultz MIDI Benchmarking Toolbox for MIDI interfaces, percussion pads, and sound cards Benjamin G. Schultz1 Published online: 17 April 2018 # The Author(s) 2018 Abstract The Musical Instrument Digital Interface (MIDI) was readily adopted for auditory sensorimotor synchronization experi- ments. These experiments typically use MIDI percussion pads to collect responses, a MIDI–USB converter (or MIDI–PCI interface) to record responses on a PC and manipulate feedback, and an external MIDI sound module to generate auditory feedback. Previous studies have suggested that auditory feedback latencies can be introduced by these devices. The Schultz MIDI Benchmarking Toolbox (SMIDIBT) is an open-source, Arduino-based package designed to measure the point-to- point latencies incurred by several devices used in the generation of response-triggered auditory feedback. Experiment 1 showed that MIDI messages are sent and received within 1 ms (on average) in the absence of any external MIDI device. Latencies decreased when the baud rate increased above the MIDI protocol default (31,250 bps). Experiment 2 benchmarked the latencies introduced by different MIDI–USB and MIDI–PCI interfaces. MIDI–PCI was superior to MIDI–USB, primarily because MIDI–USB is subject to USB polling. Experiment 3 tested three MIDI percussion pads. Both the audio and MIDI message latencies were significantly greater than 1 ms for all devices, and there were significant differences between percussion pads and instrument patches. Experiment 4 benchmarked four MIDI sound modules. Audio latencies were significantly greater than 1 ms, and there were significant differences between sound modules and instru- ment patches. These experiments suggest that millisecond accuracy might not be achievable with MIDI devices. The SMIDIBT can be used to benchmark a range of MIDI devices, thus allowing researchers to make informed decisions when choosing testing materials and to arrive at an acceptable latency at their discretion. Keywords Musical Instrument Digital Interface (MIDI) . Auditory feedback . Sensorimotor synchronization . Motor timing . Microcontrollers The Musical Instrument Digital Interface (MIDI) is a digital by performers from Prince to present-day bands like Snarky communication protocol for electronic musical instruments, Puppy, MIDI instruments have commonly been used in sen- computers, and audio devices that allows them to communi- sorimotor synchronization experiments to measure the timing cate between one another to produce music and sound effects of actions and to generate auditory feedback (cf. Repp. 2005; and to record responses. MIDI is, arguably, the most widely Repp & Su, 2013). In these experiments, participants aim to used technical specification for digital musical instruments, synchronize their responses to an external stimulus (e.g., a anditwaspopularevenbeforeitwasfirstpublished metronome or auditory sequence), and the timing of responses (International MIDI Association, 1983). Besides being used relative to events (or beats) is recorded. Despite the wide use and success of MIDI, the temporal latencies of the recorded Electronic supplementary material The online version of this article response timings and auditory feedback have rarely been (https://doi.org/10.3758/s13428-018-1042-7) contains supplementary benchmarked (but see Mills, van der Steen, Schultz, & material, which is available to authorized users. Keller, 2015; Repp, 2010; Schultz & van Vugt, 2016) and are rarely specified by the manufacturer. The aim of the pres- * Benjamin G. Schultz ent study was to describe tools to benchmark the latencies of [email protected] several commercially available MIDI devices—namely, the Schultz MIDI Benchmarking Toolbox (SMIDIBT). The 1 Basic & Applied Neurodynamics Laboratory, Department of Neuropsychology & Psychopharmolcology, Maastricht University, SMIDIBT affords the opportunity for researchers to measure Universiteitssingel 40, 6229 ER Maastricht, The Netherlands the timing error within MIDI devices (and configurations Behav Res (2019) 51:204–234 205 thereof), in order to make informed decisions regarding the study I also examined the performance of several affordable choice of experimental apparatus, sample sizes (and statistical devices—namely, an Alesis PercPad ($199 US), a LogiLink power, given said error), and interpretation of the results (e.g., MIDI–USB cable ($20 US), and a MIDItech Pianobox ($90 negative mean asynchrony; see Repp, 2005). US). I start by describing the hardware and software of the Previous sensorimotor synchronization experiments have SMIDIBT and exploring the limits of MIDI-based communi- used various combinations of MIDI response devices (e.g., cation (Exp. 1). I then investigate some of the assumptions pianos or percussion pads), MIDI-to-PC conversion interfaces surrounding the use of the MIDI protocols: specifically, USB (e.g., MIDI–USB converters), and external MIDI sound mod- polling rates, the asserted 1-ms resolution of MIDI devices ules to produce auditory feedback (see Table 1 and Fig. 1a). (e.g., Large, Fink, & Kelso, 2002; Ravignani, Delgado, & Similarly, the computer software used to record responses and Kirby, 2016), and whether MIDI messages and audio output control auditory feedback, such as FTAP (Finney, 2001)or are synchronous (see Maidhof, Kästner, & Makkonen, 2014). Max-MSP (Cycling’74, 2014), differs between studies. The present study compared the latencies of the various MIDI Although it would be difficult to benchmark some of these devices to the critical value of 1 ms, since this is the latency setups for various reasons (e.g., discontinued stock, financial assumed (and, perhaps, desired) in some experiments (e.g., expense, custom designs/scripts, PC specifications), it is pos- Large et al., 2002; Ravignani et al., 2016). The primary aim is sible to provide a benchmarking toolbox so researchers can to understand the hardware and software limitations that may test their own experimental setups. Here I present the influence latencies when using individual MIDI devices or SMIDIBT for MIDI devices and test some of the most fre- chaining several MIDI devices, and show users how to mea- quently used devices or the newer (or similar) versions (see sure these latencies themselves. To improve accessibility, I Table 1). Since Schultz and van Vugt (2016) claimed that one have also included a step-by-step guide in the supplementary of the advantages of an open-source microcontroller response materials (see the SMIDIBT Reference Manual) that contains device (other than sub-millisecond auditory feedback) is that less technical descriptions aimed at novices who perform au- it is more affordable than MIDI-based setups, in the present ditory feedback experiments. Table 1 List of the commercially available devices used in previous experiments and/or tested in the present study (demarcated with a *) Type Device References MIDI–USB interface LogiLink MIDI-USB* N/A M-Audio UNO* Mills et al. (2015) MIDI Man (MIDI Sport) Collyer et al. (1997); Schultz & van Vugt (2016) Roland UM-ONE* Rogers et al. (2014) MIDI–PCI interface Labway Soundboard D66* N/A Sound Blaster Live PCI* Pecenka & Keller (2011); Pfordresher & Benitez (2007); Pfordresher & Dalla Bella (2011); Pfordresher & Kulpa (2011) TerraTec TT Solo 1-NL* N/A Percussion pad Alesis PercPad* Sadakata et al. (2008) Roland Handsonic 20* (Roland Handsonic 10, 15) Hurley, Martens, & Janata (2014); Janata, Tomic, & Haberman (2012); Mills et al. (2015); Pecenka & Keller (2011); Schultz & van Vugt (2016) Roland SPD6* London et al. (2009); Pfordresher & Benitez (2007); Pfordresher & Dalla Bella (2011); Pfordresher & Kulpa (2011); Repp (2010); Repp & Knoblich (2007); Repp, London, & Keller (2005, 2012) MIDI sound modules MIDItech Pianobox* N/A Roland Mobile Studio Canvas SD-50* Pfordresher & Benitez (2007); Pfordresher & (Edirol StudioCanvas SD-80) Dalla Bella (2011); Pfordresher & Kulpa (2011) Yamaha TX81Z Schultz & van Vugt (2016) MIDI piano sound modules Kawai CL25* N/A Korg MicroX* N/A Roland RD-250s Repp (2010); Repp & Marcus (2010) Yamaha Clavinova CLP-150 Kaiser & Keller (2011); Pecenka & Keller (2011); Repp & Keller (2010); Repp, London, & Keller (2012) 206 Behav Res (2019) 51:204–234 Fig. 1 Layouts of a typical MIDI setup (a) and of the SMIDIBT setups sources of latencies in a typical MIDI setup is represented in panels b that can be used to test the latencies of MIDI messages that are sent (middle section of a typical MIDI setup), c (first section of a typical MIDI through computers and MIDI serial devices (b), the latencies of MIDI setup), and d (final section of a typical MIDI setup). The OUT audio and and audio from percussion pads (c), and the latencies of audio generated voltages can be compared in to her measure the veridical timing by MIDI sound modules (d). Each of the three components that can be between inputs and outputs MIDI-to-USB conversion and USB polling communication avoids the delays introduced by polling or, instead, introduces different or more variable delays (Finney, The speed at which MIDI messages can be sent and read by 2016). In Experiment 2 I benchmarked the latency introduced the USB port and other MIDI devices is determined by the by MIDI–USB and conventional Peripheral Component number of bits-per-second (bps), called the baud rate (or serial Interconnect (PCI) sound card interfaces, the latter requiring transfer rate). For MIDI, this
Recommended publications
  • FW-1804 Firewire Audio-MIDI Interface
    » D00846700A FW-1804 FireWire Audio-MIDI Interface SETUP GUIDE Contents Introduction ...............................2 About the FW-1804 .......................2 Monitor Mixing ...........................2 The IEEE 1394 Standard ...................2 Before Installing the Software ...............3 Installation (Windows 2000 and Windows XP) .....4 Installation (Mac OS X 10.2.8 and above).........6 Installation (Mac OS 9.2)......................7 Connections ...............................8 MIDI Connections ........................8 Analog Audio Connections .................8 Status Indicators .........................9 Clock Source Setting ......................9 Introduction About the FW-1804 • COMPUTER selects the signals from the DAW passed through the FireWire connection. The level of the signals from the computer is set using the master output control The FW-1804 provides your computer with high-quality of the DAW software and the two analog outputs may be audio facilities: eight channels of analog input and two of selected (using the software Control Panel) for output of output, with two channels of digital audio I/O through these signals. coaxial connections and eight channels of digital I/O through optical connections—at up to 96 kHz 24-bit. There • INPUTS selects the stereo mix of the analog, optical and are also two physical MIDI input and four physical output coaxial signals for monitoring. ports. • BOTH allows the computer signals to be monitored It is connected to the host computer using a single 6-pin to mixed with the input signals. 6-pin IEEE 1394 cable (supplied) that carries audio and Individual channels can be set to unity gain by pressing and MIDI information back and forth between the FW-1804 holding the computer's [Shift] key while clicking on the and the computer.
    [Show full text]
  • United States Patent (19) 11 Patent Number: 6,157,976 Tien Et Al
    USOO6157976A United States Patent (19) 11 Patent Number: 6,157,976 Tien et al. (45) Date of Patent: Dec. 5, 2000 54 PCI-PCI BRIDGE AND PCI-BUS AUDIO OTHER PUBLICATIONS ACCELERATOR INTEGRATED CIRCUIT PCI System Architecture, Tom Shanley/Don Anderson, 75 Inventors: Paul Tien, Fremont; Cheng-Yeuan 1995, pp. 381-382. Tsay, Pleasanton; Rsong-Hsiang Shiao, Fremont, all of Calif. Primary Examiner Ayaz R. Sheikh Assistant Examiner Rupal D. Dharia 73 Assignee: ESS Technology, Fremont, Calif. Attorney, Agent, or Firm-Gray Cary Ware & Freidenrich 57 ABSTRACT 21 Appl. No.: 09/074,657 A semiconductor device with an embedded PCI 2.1 com 22 Filed: May 6, 1998 pliant bridge provides expanded functionality as System 51511 Int. Cl. ............................. GO6F13FOO700; GO6F 13/38/ level implementationsp of a PCI-to-PCI bridge,9. and enhances 52 U.S. Cl. ............................ 710/129, 710/127, 710/64; the level of integration possible. The embedded PCI-to-PCI 345/435; 84/604; 84/621; 84/622; 84/647 bridge allows the creation of multi-function, multimedia 58) Field of Search 345/435: 710/127 add-on cards Supporting multiple devices. Multi-function, 710129,6484/602,604 621 622 647. multimedia Subsystems that provide audio, graphics, MPEG, s w is s s 454. 70425s etc., are mapped into a bridged-to PCI-bus that keeps Such s traffic off the main PCI-bus. The advantage for the system or 56) References Cited add-in card Vendor is that the various multimedia chips that are combined can come from different Sources, providing an U.S. PATENT DOCUMENTS optimized and highly customized combination of functions.
    [Show full text]
  • Profire Lightbridge User Guide | 2 Introduction 1
    34-in/36-out FireWire Lightpipe Interface User Guide English Table of Contents English . 2 Introduction . 2 What’s in the Box . 2 About ProFire Lightbridge . 3 ProFire Lightbridge Features . 4 System Requirements . 5 Controls and Connectors . 6 Front Panel . 6 Rear Panel . 7 Driver Installation . 8 Hardware Connections . 8 Audio . 8 MIDI . 9 Word Clock . 9 Using ProFire Lightbridge . 9 The Software Control Panel . 10 Hardware Page . 10 About Page . 13 Word Clock Synchronization . 14 Understanding Word Clock . 14 Specifications . 18 Warranty . 19 Warranty Terms . 19 Warranty Registration . 19 M-Audio ProFire Lightbridge User Guide | 2 Introduction 1 hank you for purchasing M-Audio’s ProFire Lightbridge interface. ProFire Lightbridge uses the ADAT optical T I/O standard to bring extensive digital connectivity to your studio. With its four ADAT optical inputs, four ADAT optical outputs, S/PDIF coaxial input and output, and stereo analog outputs, ProFire Lightbridge lets you connect a variety of devices to your FireWire-equipped digital audio workstation. Using the high-bandwidth, industry-standard FireWire (IEEE1394) protocol, ProFire Lightbridge gives your DAW up to 34 audio inputs and 36 outputs while connecting to your computer via a single cable. This makes it perfect for multi-channel transfers to and from external multitrack recorders. ProFire Lightbridge is also ideal for linking your DAW to an external digital mixer, or for connecting to another computer hosting soft synths and signal processors. This manual will explain the features and operation of ProFire Lightbridge. Even if you are an experienced recording enthusiast, please take a moment to read this guide and familiarize yourself with all of the unique features of your ProFire Lightbridge.
    [Show full text]
  • US-16X08 Reference Manual
    D01247020B US-16x08USB2.0 Audio Interface/Mic Preamp Reference Manual Before connecting this unit to a computer, you must download and install a dedicated driver. Contents 1 – Introduction ..............................................3 Windows 8 ....................................................................23 Features ..................................................................................3 Windows 7 ....................................................................23 Conventions used in this manual ..................................3 Mac OS X and iTunes ........................................................24 iOS ..........................................................................................24 2 – Names and functions of parts ..................4 Front panel ............................................................................4 9 – MIDI Implementation Chart ...................25 Rear panel ..............................................................................5 10 – Troubleshooting ...................................26 3 – Installation ................................................6 Troubleshooting ................................................................26 System requirements.........................................................6 11 – Specifications ........................................28 Windows ..........................................................................6 Specifications .....................................................................28 Mac OS X..........................................................................6
    [Show full text]
  • 3.4.1 SPI - Serial Peripheral Interface
    DIPLOMARBEIT Herr Axel Schneider Entwicklung einer updatefähigen Embedded-Linux-Hardwareplattform zum Einsatz in einer speziellen Gerätesteuerung Mittweida, 2012 Fakultät Elektro- und Informationstechnik DIPLOMARBEIT Entwicklung einer updatefähigen Embedded-Linux-Hardwareplattform zum Einsatz in einer speziellen Gerätesteuerung Autor: Herr Axel Schneider Studiengang: Elektrotechnik Schwerpunkt Energiesystemtechnik Seminargruppe: ET07wE-D Erstprüfer: Prof. Dr.-Ing. Thomas Beierlein Zweitprüfer: Dipl.-Ing. (FH) Jan Färber Einreichung: Mittweida, 17.08.2012 Bibliografische Angaben: Schneider, Axel: Entwicklung einer updatefähigen Embedded-Linux-Hardwareplatt- form für den Einsatz in einer speziellen Gerätesteuerung - 2012 – 74 Seiten, 43 Abbildungen, 13 Tabellen, 3 Anlagen , Mittweida, Hochschule Mittweida (FH), University of Applied Sciences, Fakultät Elektro- und Informationstechnik Diplomarbeit, 2012 Referat: Das Projekt „Pfeifen-Orgel mit dynamischer Stimmung“ ist ein Steuerungssystem zur Verbesserung der Klangqualität einer Orgel. Das System besteht aus dezentralen Elementen und einer zentralen Steuerung. Diese Arbeit befasst sich mit der Entwicklung der zentralen Einheit, der Zentralen Ak- tor-Steuerung. Ihre Aufgabe umfasst grundlegend die Mikrocontroller gestützte Da- tenverarbeitung und Kommunikation über spezielle, im Projekt benötigte Peripherie. Für die an diese Arbeit angrenzende Entwicklung der Steuerungssoftware, verfügt die Hardwareplattform über ein angepasstes Embedded Linux. Inhaltsverzeichnis Inhaltsverzeichnis...............................................................................................I
    [Show full text]
  • Apogee Ensemble Thunderbolt Audio Interface
    Apogee Ensemble Thunderbolt Audio Interface User’s Guide Fall 2014 Contents Overview!...........................................................................................................5 Introduction!................................................................................................................5 Features!.......................................................................................................................5 Package Contents!......................................................................................................6 Ensemble Thunderbolt Panel Tour!...........................................................................7 Front Panel!.................................................................................................................7 Rear Panel!..................................................................................................................8 Display!........................................................................................................................9 Input Settings Display Screen!..................................................................................9 Getting Started!...............................................................................................10 Precautions when powering Ensemble On/Off!......................................................10 Thunderbolt Notes!....................................................................................................10 Ensemble Software!..................................................................................................11
    [Show full text]
  • User's Guide M-Audio Ozone
    M-Audio Ozone version: MA-Ozone_052803 User’s Guide Introduction . .2 M-Audio Ozone Features . .2 M-Audio Ozone Overview . .2 What’s in the Box . .3 Guide to Getting Started . .4 M-Audio Ozone Panel Features . .4 Top Panel . .4 Rear Panel . .6 M-Audio Ozone Driver Installation . .7 Driver Installation for Windows . .7 Windows XP: . .8 Windows 2000: . .12 Windows ME: . .16 Windows 98SE: . .18 M-Audio Ozone and the Windows Sound System . .23 Macintosh Driver Installation . .23 OMS Installation . .24 M-Audio Ozone Driver Installation . .24 OMS Configuration (Mac OS9 only) . .25 M-Audio Ozone and the Mac OS 9 Sound Manager . .27 M-Audio Ozone and Mac OS X . .27 The M-Audio Ozone Control Panel . .28 Application Software Setup . .30 M-Audio Ozone Hardware Installation . .31 M-Audio Ozone Audio Setup and Control . .31 Using the Mic and Instrument Inputs . .33 Setting Input Gain . .34 Phantom Power . .34 Using the Aux Inputs . .35 Using Direct Monitor . .36 M-Audio Ozone MIDI Setup and Control . .37 MIDI Functions In Standalone Mode . .39 Utilizing the Programming Assignment Keys . .39 Technical Support & Contact Information . .44 M-Audio Ozone Warranty Information . .45 M-Audio Ozone Technical Specifications . .46 Appendix A - MIDI Controller Information . .47 Appendix B - M-Audio Ozone Block Diagram . .48 Introduction Congratulations on your purchase of the M-Audio Ozone. The M-Audio Ozone is an innovative product—a powerful combination of MIDI controller and audio interface with microphone and instrument preamps that will turn your computer into a virtual music production studio. You may use your M-Audio Ozone in conjunction with a USB-equipped PC or Macintosh computer and appropriate music software to enter a full range of MIDI note and controller information, as well as record and play back your voice, guitar, or external sound modules.
    [Show full text]
  • Serial Communication Buses
    Computer Architecture 10 Serial Communication Buses Made wi th OpenOffi ce.org 1 Serial Communication SendingSending datadata oneone bitbit atat oneone time,time, sequentiallysequentially SerialSerial vsvs parallelparallel communicationcommunication cable cost (or PCB space), synchronization, distance ! speed ? ImprovedImproved serialserial communicationcommunication technologytechnology allowsallows forfor transfertransfer atat higherhigher speedsspeeds andand isis dominatingdominating thethe modernmodern digitaldigital technology:technology: RS232, RS-485, I2C, SPI, 1-Wire, USB, FireWire, Ethernet, Fibre Channel, MIDI, Serial Attached SCSI, Serial ATA, PCI Express, etc. Made wi th OpenOffi ce.org 2 RS232, EIA232 TheThe ElectronicElectronic IndustriesIndustries AllianceAlliance (EIA)(EIA) standardstandard RS-232-CRS-232-C (1969)(1969) definition of physical layer (electrical signal characteristics: voltage levels, signaling rate, timing, short-circuit behavior, cable length, etc.) 25 or (more often) 9-pin connector serial transmission (bit-by-bit) asynchronous operation (no clock signal) truly bi-directional transfer (full-duplex) only limited power can be supplied to another device numerous handshake lines (seldom used) many protocols use RS232 (e.g. Modbus) Made wi th OpenOffi ce.org 3 Voltage Levels RS-232RS-232 standardstandard convertconvert TTL/CMOS-levelTTL/CMOS-level signalssignals intointo bipolarbipolar voltagevoltage levelslevels toto improveimprove noisenoise immunityimmunity andand supportsupport longlong cablecable lengthslengths TTL/CMOS → RS232: 0V = logic zero → +3V…+12V (SPACE) +5V (+3.3V) = logic one → −3V…−12V (MARK) Some equipment ignores the negative level and accepts a zero voltage level as the "OFF" state The "dead area" between +3V and -3V may vary, many receivers are sensitive to differentials of 1V or less Made wi th OpenOffi ce.org 4 Data frame CompleteComplete one-byteone-byte frameframe consistsconsists of:of: start-bit (SPACE), data bits (7, 8), stop-bits (MARK) e.g.
    [Show full text]
  • A Gumstix-Based MIDI-To-OSC Converter
    midOSC: a Gumstix-Based MIDI-to-OSC Converter Sebastien´ Schiesser Institute for Computer Music and Sound Technology Zurich University of the Arts Baslerstrasse 30, 8048 Zurich, Switzerland [email protected] Abstract [14], sent to the remote-controlled devices location and con- A MIDI-to-OSC converter is implemented on a commer- verted back to MIDI. Until now, this has been done at each cially available embedded linux system, tighly integrated conversion point through a Max/MSP patch running on a with a microcontroller. A layered method is developed which computer connected to a MIDI interface. This is very de- permits the conversion of serial data such as MIDI to OSC manding in terms of hardware: in the backstage system of formatted network packets with an overall system latency the mAe, a computer is dedicated to conversion purposes below 5 milliseconds for common MIDI messages. only. And when MIDI devices are present on stage, an ad- The Gumstix embedded computer provide an interest- ditional laptop with interface is required. ing and modular platform for the development of such an The mAe is intended to be modular and to support several embedded applications. The project shows great potential “I/O hubs”, where audio and control data are collected and to evolve into a generic sensors-to-OSC ethernet converter dispatched. In order to avoid dependence on a converting which should be very useful for artistic purposes and could computer at each hub, it seemed appropriate to use a dedi- be used as a fast prototyping interface for gesture acquisition cated converter which can run independently, be stacked in devices.
    [Show full text]
  • Introduction to Serial Communication
    Technical Tutorial Introduction to Serial Communication Introduction to Serial Communication Technical Tutorial 2002 – 12 - 06 Technical Tutorial Introduction to Serial Communication Table of Contents 1: Introduction 1.1. DCE and DTE Devices 1.2. Synchronous data transfer 1.3. Asynchronous data transfer 2: RS232 2.1. RS232 on DB9 (9-pin D-type connector) 2.2. RS232 on DB25 (25-pin D-type connector) 2.3. RS232 on RJ-45 2.4. Signal Description 2.5. Limitations of RS232 3: RS422 and RS485 3.1. RS422 Serial Communication 3.2. RS485 Serial Communication 3.3. Converters 4: Summary Table 5: Serial Interface of Sena Products 5.1. HelloDevice Lite series 5.2. HelloDevice Pro series 5.3. HelloDevice Super series 5.4. IALink100 Series 5.5. VTS Series 2 Technical Tutorial Introduction to Serial Communication 1. Introduction The purpose of this application note is to attempt to describe the main elements in Serial Communication. This application note attempts to cover enough technical details of RS232, RS422 and RS485. 1.1. DCE and DTE Devices DTE stands for Data Terminal Equipment, and DCE stands for Data Communications Equipment. These terms are used to indicate the pin-out for the connectors on a device and the direction of the signals on the pins. Your computer is a DTE device, while most other devices such as modem and other serial devices are usually DCE devices. RS-232 has been around as a standard for decades as an electrical interface between Data Terminal Equipment (DTE) and Data Circuit-Terminating Equipment (DCE) such as modems or DSUs.
    [Show full text]
  • Lab 5: Serial Communication (Sci/Spi) and C Objectives Required Materials Introduction
    University of Florida EEL 3744 –Spring 2018 Dr. Eric M. Schwartz Electrical & Computer Engineering Dept. 28-Mar-18 Page 1/8 Revision 7 LAB 5: SERIAL COMMUNICATION (SCI/SPI) AND C OBJECTIVES As discovered in Homework 4, the asynchronous UART • Understand the basic operation and structure of protocol utilizes a transfer rate (denoted as the baud rate), as asynchronous and synchronous serial communication, well as two physical connections for each device to i.e., SCI (UART) and SPI. communicate data, i.e., a pin for Receiving data (Rx), and a pin • Utilize C programming constructs to create functions to for Transmitting data (Tx). The only way that this protocol interact with the XMEGA’s USART and SPI systems. functions correctly is if both devices agree on a common baud • Learn how to use SPI communication to interact with an rate. external IMU sensor package. • Stream and plot real-time 3D (XYZ) acceleration data SPI, on the other hand, utilizes a shared clock signal connected using the XMEGA’s USART system and Atmel Studio’s between (at least) two devices (usually denoted as SCK), where Data Visualizer. only one device is known as the “master” device, and where the other devices are “slaves.” Full-duplex communication is REQUIRED MATERIALS possible with SPI (i.e., two devices can talk to each other at the • µPAD v2.0 Development Board same time), although the master always starts any • Robotics Backpack communication between the devices. When the master wants • Digilent/NI Analog Discovery (DAD/NAD) kit to transmit/receive data to/from the slave(s), it generates the • LSM330.h header file synchronized Serial Clock signal (SCK).
    [Show full text]
  • EB215 Local Interconnect Network (LIN)
    Freescale Semiconductor EB215 Engineering Bulletin Rev. 1.0, 03/2005 Local Interconnect Network (LIN) Physical Interface Difference Between MC33399 and MC33661 Introduction This engineering bulletin highlights the differences between two Local Interconnect Network (LIN) Physical Interfaces, namely the 33399 and the 33661. The LIN is a serial communication protocol designed to support automotive networks in conjunction with Controller Area Network (CAN). As the lowest level of a hierarchical network, LIN enables cost-effective communication with sensors and actuators when all the features of CAN are not required. The 33399 and the 33661 are physical layer components dedicated to automotive sub-bus applications. They offer speech communication from 1.0 kbps to 20 kbps. There are two main operating modes: Normal and Sleep. For feature information, refer to the device data sheets for 33399 and 33661 © Freescale Semiconductor, Inc., 2005. All rights reserved. Differences Guide Differences Guide This section should be used as a quick guide to determine the main differences between the devices in a similar family. Using Table 1, you can note the differences most relevant to your system/application. This engineering bulletin should be used in conjunction with the most recent specification for each device, to ensure that all differences have been captured. Table 1. Device Differences Parameter 33399 33661 LIN Protocol Specification Addresses LIN 1.3 Applications Addresses LIN 2.0 Applications Terminal Out and Package 8-terminal SOICN. 8-terminal SOICN. One baud rate operation: Two baud rate operations: Baud Rate Operation 1.0 kbps to 20 kbps • 1.0 kbps to 10 kbps • 1.0 kbps to 20 kbps Capable of: Capable of: Controlling an external switchable voltage • Controlling an external switchable voltage INH Output regulator.
    [Show full text]