I, Spi

I, Spi

I, SPI Serial Peripheral Interface Image credit: Newsweek.com 4-wire Interface, Full Duplex Sensor 1 CS = chip select (active low)

SCLK = serial clock MOSI = Master Output Slave Input (SDO) MISO = Master Input Slave Output (SDI) Multiple Slave Devices LoRa Radio Shared: SCLK, MOSI, MISO

Unique: CS1, CS2, CS3, SD card Sensor 1 4 Clock Modes https://community.nxp.com/docs/DOC-332403

Examples: GI Electrophys Module Erickson et al,Physiological Mesaurement 2018 Example: SD Card logger Adafruit Feather 32u4 LoRa Adafruit SD card Feather wing

Pre-defined Protocol. Example: SPIing on Pressure Sensor Data One-byte chunks transferred Arduino SPI Library: beginTransaction( ) endTransaction() transfer()

SPI vs. I2C Comparison Feature SPI Speed ++ I2C Full Duplex

++ No start/stop bits, sustained data transfer Wiring -- 4 wires/device Uses unique CS lines -- Information flows

1-direction at a time -- One byte transfers max ++ 2 wires/device I2C slave addressing (0x33) Protocol Flexibility/Robust

ness ++ Pre-defined by manufacturer ++ Acknowledge Bits ensures proper data transfer Power Consumption per

bit ++ (FIFO buffers) ++ (Open-drain resistors) First-In, First-Out BUFFERS - FIFO

The Queue Circular Buffer: Heads and Tails buf[12] buf[0] buf[1] buf[11]

buf[10] buf[2] buf[3] buf[9] buf[4] buf[8]

buf[7] buf[6] https://upload.wikimedia.org/wikipedia/commons/f/fd/Circular_Buffer_Animation.gif Universal Asynchronous Receiver-Transmitter UART

Rx to Tx and Tx to Rx BT T3.6 Data Frames and Baud Rate 10 bits transferred total 8 data bits (b0-b7)

https://learn.sparkfun.com/tutorials/serial-communication/all UART Max speed 115200 bps Max devices: 2 devices talk exclusively Easy

to wire/implement Serial library in Arduino talks UART

Recently Viewed Presentations

  • VoIP with the Asterisk PBX

    VoIP with the Asterisk PBX

    VoIP with the Asterisk PBX Mike Gerschefske Justin Gray James Yoo What is VoIP? VoIP stands for Voice over Internet Protocol It provides a means of transmitting voice communication over an IP based network VoIP can use a variety of...
  • Folie 1 - uni-trier.de

    Folie 1 - uni-trier.de

    „95 Prozent meiner Kandidaten müssen Business-Englisch beherrschen. Die Hälfte der zu besetzenden Stellen erfordert Kandidaten, die in täglich gefragten Kommunikationssituationen wie in Präsentationen und Telefonkonferenzen geübt sind.
  • Sin título de diapositiva

    Sin título de diapositiva

    costeo de prestaciones herramienta de gestion en salud adela muÑoz leiva unidad de gestion y desarrollo hospital dr. gustavo fricke viÑa del mar
  • Open Day Presentation - Robinson College

    Open Day Presentation - Robinson College

    Dr Chris Warner [email protected] and [email protected] A STEP paper I question. Robinson College. A positive integer with 2? digits (the first of which must not be 0) is called a . ... Open Day Presentation Last modified by: Dr C.D....
  • Слайд 1 - Otto von Guericke University Magdeburg

    Слайд 1 - Otto von Guericke University Magdeburg

    t = [0,d] are considered, which . are computed if the processing of the jobs starts at time 0. The running time is . O(nd) as well. The second algorithm is faster (since it considers not all points . t),...
  • Chemical Reaction - Weebly

    Chemical Reaction - Weebly

    Chemical Reaction Introduction to Chemistry Chapter 21 * Lead Nitrate and potassium Iodide * Do It! * Ethanol cannon * Barium hydroxide and ammonium chloride rxn. * Demos: Hydrogen peroxide and MnO / Chemical Changes Section 21-1 Chemical Reactions Atoms...
  • Weather Notes - Moore Public Schools

    Weather Notes - Moore Public Schools

    The Water Cycle. A series of natural processes by which water continually moves among oceans, land, and the atmosphere. Evaporation - water on Earth's surface turns to water vapor when heated and rises in the . ... Weather Notes Last...
  • Quantum Mechanical

    Quantum Mechanical

    Quantum Mechanical Theory