CP316 USART, SPI, and I 2 C Communication

Similar documents
Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

Using Xbee in Serial Communication

Serial Communications

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

USER GUIDE EDBG. Description

The Secrets of RS-485 Half-duplex Communication

INFORMATICA INDUSTRIALE

INFORMATICA INDUSTRIALE

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

What is Easy-Radio? Devices Covered. Frequency Hopping Transceiver. Where x00 denotes frequency of operation. E.g. 400 = 433MHz

Manual Serial PCI Cards

Serial Communications

USART and Asynchronous Communication

Serial Communications (Chapter 10) RS232, SPI, I2C

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

OPT SERIAL TO FIBER OPTIC CONVERTER

DeviceMaster UP Modbus Controller to Controller Communication

Display Message on Notice Board using GSM

DECT Module UM-9802 Datasheet

Bluetooth UART/RS232 Module

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Fingerprint Based Biometric Attendance System

DS1621 Digital Thermometer and Thermostat

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Wireless Home Security System

Atmel Norway XMEGA Introduction

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

VDIP1. Vinculum VNC1L Module. Datasheet

Software User Guide UG-461

SR450 RECEIVER OPERATING INSTRUCTIONS

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

The Answer to the 14 Most Frequently Asked Modbus Questions

Single channel data transceiver module WIZ2-434

Embedded Systems Design Course Applying the mbed microcontroller

NHD-0420D3Z-FL-GBW-V3

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

DS1621 Digital Thermometer and Thermostat

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

Application Note 83 Fundamentals of RS 232 Serial Communications

Part Number Description Packages available

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

FPGA INTEGRATION MANUAL SATURN-SIL 2 MODULES. Dictionary Code. Edition 01. Revision 00. Number of pages 18

DATASHEET. DIABLO16 Processor. Embedded Graphics Processor. Document Date: 7 th November 2013 Document Revision: 1.3

TWI module seems buggy in multi-master communications

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

LDG Electronics External Meter Serial Communications Protocol Specification

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

FLYPORT Wi-Fi G

Technical Note A007 Modbus Gateway Vantage Pro2 25/09/2009 Rev. A 1 de 7

Sam440ep-flex User Guide

Real-Time Vehicle Data Logging System Using GPS And GSM

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

DS Wire Digital Thermometer and Thermostat

SIMATIC S7-300, CPU 315-2DP CPU WITH MPI INTERFACE INTEGRATED 24 V DC POWER SUPPLY 128 KBYTE WORKING MEMORY 2

Bluetooth to serial HC-06 wireless module

Methode Electronics. DM-317-XXXX 40 Gbps QSFP+ Passive Cable RoHS COMPLIANT.

SC16IS740/750/760. Single UART with I 2 C-bus/SPI interface, 64 bytes of transmit and receive FIFOs, IrDA SIR built-in support

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Introduction. Getting familiar with chipkit Pi

CENTRONICS interface and Parallel Printer Port LPT

Internal Oscillator. I 2 C Interface. SPI Interface. Controller. Internal Registers Port Controller. Eight I/O Pins. Figure 1.

Production ISP Programming Tools for SIGMA Z-Wave modules and ICs

Implementing MOD bus and CAN bus Protocol Conversion Interface

MicroVGA - Device Overview

Supplemental User Guide

EZmoto V2. Product description Rev. 6 10/01/2014. EZmoto V2 Product description Rev.6 10/01/2014

CAM-VGA100 User Manual

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

NMEA 0183 INSTALLATION AND OPERATING GUIDELINES

RS-485 Protocol Manual

IP Link Device Interface Communication Sheet

GSM Click - Cross-Platform Development Quick Start Guide

CAN bus board. EB018

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Serial port interface for microcontroller embedded into integrated power meter

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

TS5010 TeraTune Programmable Bandpass Filter

Methode Electronics. DM-338-GG-XXXX Up to 120 Gbps CXP Passive Cable Assembly.

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

The Secrets of Flow Control in Serial Communication

KTA-223 Arduino Compatible Relay Controller

Bluetooth to Serial Adapter

RockBLOCK+ Developer guide

Configuring IP to Serial with Auto Answer and Serial to IP

Transcription:

CP316, SPI, and I 2 C Communication Wilfrid Laurier University February 12, 2013

QwikFlash modules

QwikFlash modules ramifications???

QwikFlash modules ramifications??? interrupts; transmit and receive

QwikFlash modules ramifications??? interrupts; transmit and receive Sections 6.4.5 to 6.4.7

QwikFlash modules ramifications??? interrupts; transmit and receive Sections 6.4.5 to 6.4.7 Section 8.2

2 wires, one-to-one

2 wires, one-to-one EIA232 (RS232)

2 wires, one-to-one EIA232 (RS232) Section 9.3

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1 asynchronous mode

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1 asynchronous mode Section 9.4.2

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1 asynchronous mode Section 9.4.2 asynchronous mode to EIA232

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1 asynchronous mode Section 9.4.2 asynchronous mode to EIA232 Section 9.4.5

2 wires, one-to-one EIA232 (RS232) Section 9.3 registers Section 9.4.1 asynchronous mode Section 9.4.2 asynchronous mode to EIA232 Section 9.4.5 Section 16.0

EIA232 summary

EIA232 summary 2 wires (+ ground), one-to-one

EIA232 summary 2 wires (+ ground), one-to-one TX

EIA232 summary 2 wires (+ ground), one-to-one TX RX

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices At least one start bit

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices At least one start bit At least one stop bit

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices At least one start bit At least one stop bit voltage levels not TTL; inverted (normally)

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices At least one start bit At least one stop bit voltage levels not TTL; inverted (normally) (except TTL serial devices)

EIA232 summary 2 wires (+ ground), one-to-one TX RX Fixed baud rate, common to both devices At least one start bit At least one stop bit voltage levels not TTL; inverted (normally) (except TTL serial devices) packets are single characters

Qwikflash UART connections

Qwikflash UART connections

2 modes; SPI and I 2 C

2 modes; SPI and I 2 C Section 15.0-15.2

SPI

SPI 3 wires +chip select, master-slave

SPI 3 wires +chip select, master-slave overview

SPI 3 wires +chip select, master-slave overview Section 10.2

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers Section 10.3.1

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers Section 10.3.1 operation

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers Section 10.3.1 operation Sections 10.3.2 to 10.3.5

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers Section 10.3.1 operation Sections 10.3.2 to 10.3.5 Section 15.3

SPI 3 wires +chip select, master-slave overview Section 10.2 SPI registers Section 10.3.1 operation Sections 10.3.2 to 10.3.5 Section 15.3 QwikFlash MAX522 DAC

SPI summary

SPI summary 3 wires (+ ground), one-to-many

SPI summary 3 wires (+ ground), one-to-many SCLK (from master)

SPI summary 3 wires (+ ground), one-to-many SCLK (from master) SDO (serial data out)

SPI summary 3 wires (+ ground), one-to-many SCLK (from master) SDO (serial data out) SDI (serial data in)

SPI summary 3 wires (+ ground), one-to-many SCLK (from master) SDO (serial data out) SDI (serial data in) CS for each device, generated by master

SPI summary 3 wires (+ ground), one-to-many SCLK (from master) SDO (serial data out) SDI (serial data in) CS for each device, generated by master data transmission rate set by SCLK

SPI summary 3 wires (+ ground), one-to-many SCLK (from master) SDO (serial data out) SDI (serial data in) CS for each device, generated by master data transmission rate set by SCLK packets are single characters

Qwikflash SPI connections

Qwikflash SPI connections

I 2 C

I 2 C 2 wires, master-multiple slave

I 2 C 2 wires, master-multiple slave overview

I 2 C 2 wires, master-multiple slave overview Section 11.2

I 2 C 2 wires, master-multiple slave overview Section 11.2 I 2 C module

I 2 C 2 wires, master-multiple slave overview Section 11.2 I 2 C module Sections 11.3 to 11.6

I 2 C 2 wires, master-multiple slave overview Section 11.2 I 2 C module Sections 11.3 to 11.6 Section 15.4

I 2 C summary

I 2 C summary 2 wires (+ ground), one-to-many

I 2 C summary 2 wires (+ ground), one-to-many SCL (from master)

I 2 C summary 2 wires (+ ground), one-to-many SCL (from master) SDA (serial data)

I 2 C summary 2 wires (+ ground), one-to-many SCL (from master) SDA (serial data) data transmission rate set by SCL

I 2 C summary 2 wires (+ ground), one-to-many SCL (from master) SDA (serial data) data transmission rate set by SCL address for each device, preset (but possibly programmable)

I 2 C summary 2 wires (+ ground), one-to-many SCL (from master) SDA (serial data) data transmission rate set by SCL address for each device, preset (but possibly programmable) packets are complex; address of recipient, read or write, data (variable number of bytes)

Qwikflash I 2 C connections

Qwikflash I 2 C connections

overview

overview reasons

overview reasons NIB

PORT configuration

PORT configuration macro or subroutine?

PORT configuration macro or subroutine? Initiallization

PORT configuration macro or subroutine? Initiallization macro or subroutine?

PORT configuration macro or subroutine? Initiallization macro or subroutine? Write to device

PORT configuration macro or subroutine? Initiallization macro or subroutine? Write to device macro or subroutine?

PORT configuration macro or subroutine? Initiallization macro or subroutine? Write to device macro or subroutine? Read from device

PORT configuration macro or subroutine? Initiallization macro or subroutine? Write to device macro or subroutine? Read from device macro or subroutine?