Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI
|
|
- Rhoda Adams
- 5 years ago
- Views:
Transcription
1 Embedded Systems and Software Serial Interconnect Buses I 2 C (SMB) and SPI I2C, SPI, etc. Slide 1
2 Provide low-cost i.e., low wire/pin count connection between IC devices There are many of serial bus standards I2C SMB SPI Microwire Maxim 3-wire Maxim/Dallas 1-wire CAN etc. Purpose of Serial Interconnect Buses We will focus on I 2 C and SPI I2C, SPI, etc. Slide 2
3 Overview Generic Serial Interconnect Bus Devices on bus. Can be several micros, one micro + peripherals, or multiple micros and one or more peripherals Pullup resistors ensure idle state of bus is HIGH. Devices pull line low when signaling. Wired-OR arrangement Bus. 1, 2, or 3 wires. This bus has 2 lines: Data and Clock. Bus carries data and commands. I2C, SPI, etc. Slide 3
4 SPI Devices D/A Converters Barometric Pressure SD Card EEPROMs I2C, SPI, etc. Slide 4
5 SPI Devices Ethernet Compass I2C, SPI, etc. Slide 5
6 SPI Devices FM Radio Chip FM Radio Module I2C, SPI, etc. Slide 6
7 I2C Devices BlinkM is a Smart LED, a networkable and programmable full-color RGB LED for hobbyists, industrial designers, and experimenters. MCP4725 is an I2C controlled Digital-to-Analog converter (DAC). A DAC allows a microcontroller to output analog values like a sine wave. Digital to analog converters are used sound generation, musical instruments, filtering, etc. I2C, SPI, etc. Slide 7
8 I2C Devices Honeywell HMC6352 Compass Module Breakout board for the Analog Devices 7746 capacitance sensor. I2C, SPI, etc. Slide 8
9 I2C Devices The TCM8240MD is a high quality, very small 1.3 mega-pixel color camera from Toshiba with the standard data + I2C interface. Breakout board using the AR1010 IC from Airoha. This FM receiver uses a simple command set over an I2C or SPI interface. This camera is also unique in that it offers on-board JPEG compression. I2C, SPI, etc. Slide 9
10 TWI Hardware on ATmega88PA ATmega88PA The ATmega88PA controller has dedicated TWI hardware. These pins provide access to the hardware One can also implement a Two-Wire serial interface in software on other pins. In other words, by bit-banging. I2C, SPI, etc. Slide 10
11 Commonly Encountered Terminology Term Transmitter Receiver Master Slave Multi-Master Arbitration Synchronization Description The device which sends the data to the bus. The device which receives the data from the bus. The device which initiates a transfer, generates clock signals and terminates a transfer. The device addressed by a master. More than one master can attempt to control the bus. Only one master can control the bus. Procedure to sync. the clock signal. I2C, SPI, etc. Slide 11
12 I 2 C (Inter-IC) I 2 C, Eye-Square-See, I2C, Eye-Two-See Two-wire serial bus protocol developed by Philips Semiconductors ~ 20 years ago Enables peripheral ICs to communicate using simple communication hardware Data transfer rates up to 100 kbits/s and 7-bit addressing possible in normal mode 3.4 Mbits/s and 10-bit addressing in fast-mode Common devices capable of interfacing to I 2 C bus: EPROMS, Flash, and some RAM memory, real-time clocks, watchdog timers, and microcontrollers Many microcontrollers, including ATmega88PA, have Two-Wire Interface (TWI) hardware AVR s TWI can be used to implement I2C, SMB, etc. I2C, SPI, etc. Slide 12
13 I2C The I2C-bus is a multi-master bus. This means that more than one device capable of controlling the bus can be connected to it. Masters are usually microcontrollers, slaves are peripherals We will use only one master (Atmega88PA) and one slave (RTC) I2C, SPI, etc. Slide 13
14 I2C Structure Master controls the bus, typically a microcontroller Pull-up resistors, ensure that by default, lines are high. We will use 4.7K resistors Slave responds to master(s), typically sensors, memory, etc. We will use one slave, a real-time clock (RTC) I2C, SPI, etc. Slide 14
15 I2C Structure Serial Clock Serial Data I2C, SPI, etc. Slide 15
16 I2C RTC Used in Lab 5 PCF8583 Clock/calendar with bit RAM Power Supply Note: the part has a built-in capacitors for the oscillator, so we don t have to supply them externally I2C, SPI, etc. Slide 16
17 PCF8583 Pin Functions Power Supply One can configure the part so that this pin periodically goes low, or goes low when an alarm goes of, or do nothing. We will not use this pin. Partially determines the RTC address on the bus (see data sheet). I2C Bus Lines It can be 1 or 0, we choose 0 I2C, SPI, etc. Slide 17
18 I2C RTC Used in Lab 5 PCF8583 Clock/calendar with bit RAM Notice, this does not use much current, one reason is because the clock frequency is low: khz I2C, SPI, etc. Slide 18
19 I2C RTC Used in Lab 5 I2C, SPI, etc. Slide 19
20 I2C RTC Used in Lab 5 Register addresses. This is located within the RTC I2C, SPI, etc. Slide 20
21 I2C RTC Used in Lab 5 Control register determines behavior: use as an event counter, or a clock, khz or 50 Hz time base, I2C, SPI, etc. Slide 21
22 I2C RTC Used in Lab 5 Registers contain the current time I2C, SPI, etc. Slide 22
23 I2C RTC Used in Lab 5 One can use the IC as a timer to time event durations I2C, SPI, etc. Slide 23
24 I2C RTC Used in Lab 5 One can use the part as an alarm clock. When alarm goes off pull INT line low I2C, SPI, etc. Slide 24
25 I2C RTC Used in Lab 5 Few bytes of additional RAM. One can use this for IDs, scratchpad, I2C, SPI, etc. Slide 25
26 I2C RTC Used in Lab 5 Select device s address on I2C bus I2C, SPI, etc. Slide 26
27 I2C RTC Used in Lab 5 IC2 Interface I2C, SPI, etc. Slide 27
28 I2C Protocol Both data and clock lines remain HIGH when the bus is not busy. A HIGH-to-LOW transition of the data line, while the clock is HIGH is defined as the start condition (S). A LOW-to-HIGH transition of the data line while the clock is HIGH is defined as the stop condition (P). I2C, SPI, etc. Slide 28
29 Acknowledgement on the I2C Bus Each byte of eight bits is followed by an acknowledge bit (ACK). Upon transmission of the 8 th bit, the master releases the SDA line, which goes HIGH, the master generates an ACK clock pulse, and the slave acknowledges by pulling the SDA line low. A master receiver must generate an acknowledge after the reception of each byte that has been clocked out of the slave transmitter. (master) MSB (slave) Also, a master receiver must generate an acknowledge after the reception of each byte that has been clocked out of the slave transmitter. I2C, SPI, etc. Slide 29
30 Acknowledgement on the I2C Bus A master receiver must signal an end of data to the transmitter by not generating an acknowledge on the last byte that has been clocked out of the slave (NACK). In this event, the transmitter must leave the data line HIGH to enable the master to generate a stop condition. (master) MSB (slave) I2C, SPI, etc. Slide 30
31 Addressing on the I2C Bus Before any data is transmitted on the I2C-bus, the device which should respond is addressed first. The addressing is always carried out with the first byte transmitted after the start procedure. This part of the address is determined by the manufacturer of the PCF8583, and is fixed. I2C, SPI, etc. Slide 31
32 Addressing on the I2C Bus Before any data is transmitted on the I2C-bus, the device which should respond is addressed first. The addressing is always carried out with the first byte transmitted after the start procedure. This part of the address is determined by the state of the IC s A0 pin It can be 1 or 0, we choose 0 I2C, SPI, etc. Slide 32
33 Addressing on the I2C Bus Before any data is transmitted on the I2C-bus, the device which should respond is addressed first. The addressing is always carried out with the first byte transmitted after the start procedure. This bit determines if we are reading ( = 1) from or writing to (= 0) to the devices I2C, SPI, etc. Slide 33
34 I2C Structure SCL SDA Microcontroller (master) EEPROM (slave) Temp. Sensor (slave) LCDcontroller (slave) < 400 pf Addr=0x01 Addr=0x02 Addr=0x03 SDA SDA SDA SDA SCL SCL SCL SCL Start condition Sending 0 Sending 1 Stop condition From Slave From receiver SDA SCL S T A R T A 6 A 5 A 0 R / w A C K D 8 D 7 D 0 A C K S T O P Start condition 7-bit address R/W 8-bit data I2C, SPI, etc. Slide 34
35 PCF8583 Control Status Register I2C, SPI, etc. Slide 35
36 PCF8583 Register Arrangement Values are stored in in BCD What does BCD mean? Answer Binary-Coded Decimal. There are two variants: Unpacked and packed Example 12d = 0x0C = b Unpacked BCD: Packed BCD: I2C, SPI, etc. Slide 36
37 PCF8583 Master transmits to slave receiver (WRITE) mode. I2C, SPI, etc. Slide 37
38 PCF8583 Master reads after setting word address (write word address; READ data). I2C, SPI, etc. Slide 38
39 PCF8583 Master reads slave immediately after first byte (READ mode). I2C, SPI, etc. Slide 39
40 I2C Bus Timing f scl = 100 khz SCL clock frequency I2C, SPI, etc. Slide 40
41 I2C Bus Timing t SU;STA = 4.7 μs min START setup time I2C, SPI, etc. Slide 41
42 I2C Bus Timing t BUF = 4.7 μs min Bus free time I2C, SPI, etc. Slide 42
43 I2C Bus Timing t HD;STA = 4 μs min START Hold Time I2C, SPI, etc. Slide 43
44 I2C Bus Timing t LOW = 4.7 μs min SCL LOW time I2C, SPI, etc. Slide 44
45 I2C Bus Timing t HIGH = 4.7 μs min SCL HIGH time I2C, SPI, etc. Slide 45
46 I2C Bus Timing t t = 1.0 μs max t f = 0.3 μs max SDA and SCL rise and fall times I2C, SPI, etc. Slide 46
47 I2C Bus Timing t SU;DAT = 250 ns min Data setup time I2C, SPI, etc. Slide 47
48 I2C Bus Timing t VD;DAT = 3.4 μs SCL LOW to data out valid I2C, SPI, etc. Slide 48
49 I2C Bus Timing t SU;STO = 3.4 μs STOP setup time I2C, SPI, etc. Slide 49
50 Actual Bus Signals SDA SCL SDA (above) and SCL (below) with R p = 10 kω and C p = 300 pf. The SCL clock runs at 100 khz (nominal). One can improve rise- and fall times by decreasing resistance values I2C, SPI, etc. Slide 50
51 Serial Peripheral Interface (SPI) Originally developed by Motorola Synchronous, serial protocol Data timing is controlled by an explicit clock signal (SCK) Master-slave Master device controls the clock Bi-directional data exchange Data clocked into and out-of device at same time I2C, SPI, etc. Slide 51
52 SPI Devices D/A Converters Barometric Pressure SD Card EEPROMS I2C, SPI, etc. Slide 52
53 SPI Devices Ethernet Compass I2C, SPI, etc. Slide 53
54 SPI Devices FM Radio Chip FM Radio Module I2C, SPI, etc. Slide 54
55 SPI signals SS (CS) (Slave Select, Chip Select) When SS is low the slave is enabled SCK (Serial Clock) Controls the sending and reading of data SD0 (Serial Data Out) Carries data OUT of the device SDI (Serial Data In) Carries data INTO the device I2C, SPI, etc. Slide 55
56 Connecting Multiple SPI Devices arbitrary SDO SDI SCK pins AVR or other Micro (Master) SS SDO SDI SCK SPI Slave 1 SS SDO SDI SCK SPI Slave K I2C, SPI, etc. Slide 56
57 SPI on AVRs AVR microcontrollers have built-in hardware support for SPI AVRs can be bus masters (common), but one can also configure them to be bus slaves AVRs use SPI pins for ISP What is ISP? I2C, SPI, etc. Slide 57
58 SPI on AVRs AVR microcontrollers have built-in hardware support for SPI SCK Master Clock Output, Slave Clock I2C, SPI, etc. Slide 58
59 SPI on AVRs AVR microcontrollers have built-in hardware support for SPI MISO SPI Bus Master Input, Slave Output) I2C, SPI, etc. Slide 59
60 SPI on AVRs AVR microcontrollers have built-in hardware support for SPI MOSI SPI Bus Master Output, Slave Input I2C, SPI, etc. Slide 60
61 SPI on AVRs AVR microcontrollers have built-in hardware support for SPI SS SPI Bus Master Slave Select If AVR is configured as slave and one is using SPI hardware for SPI, then this would be used for selecting the AVR slave I2C, SPI, etc. Slide 61
62 SPI on AVRs Port pins I2C, SPI, etc. Slide 62
63 SPI on AVRs SPI Control Register I2C, SPI, etc. Slide 63
64 SPI on AVRs SPI Status Register I2C, SPI, etc. Slide 64
65 SPI on AVRs One can configure SPI hardware to generate interrupts I2C, SPI, etc. Slide 65
66 SPI on AVRs SPDR SPI Data Register. This is where our program reads/writes data I2C, SPI, etc. Slide 66
67 SPI Data Loop SPDR Master Slave I2C, SPI, etc. Slide 67
68 SPI Data Loop Internal shift register SPDR Master Slave I2C, SPI, etc. Slide 68
69 SPI Data Loop SPDR SPI Data Register. This is where our program reads/writes data SPDR Master Slave Master selects slave on bus to talk to I2C, SPI, etc. Slide 69
70 SPI Data Loop SPDR SPI Data Register. This is where our program reads/writes data SPDR Master Slave Master generates the clock that controls the data transfer I2C, SPI, etc. Slide 70
71 SPI Modes SPI has several modes that determine when data is valid with respect to the clock Caution: read SPI peripheral (i.e., RTC, sensor, ) datasheets carefully, and make sure your AVR uses the same mode I2C, SPI, etc. Slide 71
72 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 72
73 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 73
74 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 74
75 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 75
76 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 76
77 SPI Transfer Modes SPI Transfer Format with CPHA = 0 SPI Transfer Format with CPHA = 1 I2C, SPI, etc. Slide 77
78 Configuring SPI SPIE: SPI Interrupt Enable This bit causes the SPI interrupt to be executed if SPIF bit in the SPSR register is set and the if the Global Interrupt Enable bit in SREG is set. I2C, SPI, etc. Slide 78
79 Configuring SPI SPE: SPI Enable When the SPE bit is written to one, the SPI is enabled. This bit must be set to enable any SPI operations. I2C, SPI, etc. Slide 79
80 Configuring SPI DORD: Data Order When the DORD bit is written to one, the LSB of the data word is transmitted first. When the DORD bit is written to zero, the MSB of the data word is transmitted first. I2C, SPI, etc. Slide 80
81 Configuring SPI MSTR: Master/Slave Select This bit selects Master SPI mode when written to one, and Slave SPI mode when written logic zero. If SS is configured as an input and is driven low while MSTR is set, MSTR will be cleared, and SPIF in SPSR will become set. The user will then have to set MSTR to reenable SPI Master mode. I2C, SPI, etc. Slide 81
82 Configuring SPI CPOL: Clock Polarity When this bit is written to one, SCK is high when idle. When CPOL is written to zero, SCK is low when idle. I2C, SPI, etc. Slide 82
83 Configuring SPI CPHA: Clock Phase The settings of the Clock Phase bit (CPHA) determine if data is sampled on the leading (first) or trailing (last) edge of SCK. I2C, SPI, etc. Slide 83
84 Configuring SPI CPHA: Clock Phase The settings of the Clock Phase bit (CPHA) determine if data is sampled on the leading (first) or trailing (last) edge of SCK. I2C, SPI, etc. Slide 84
85 I2C, SPI, etc. Slide 85
spi 1 Fri Oct 13 13:04:
spi 1 Fri Oct 1 1:: 1.1 Introduction SECTION SERIAL PERIPHERAL INTERFACE (SPI) The SPI module allows full-duplex, synchronous, serial communication with peripheral devices.. Features Features of the SPI
More informationSerial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses
Serial Peripheral Interface What is it? Basic SPI Capabilities Protocol Serial Peripheral Interface http://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/ SPI_single_slave.svg/350px-SPI_single_slave.svg.png
More informationUnderstanding SPI with Precision Data Converters
Understanding SPI with Precision Data Converters By: Tony Calabria Presented by: 1 Communication Comparison SPI - Serial Peripheral Interface Bus I2C - Inter- Integrated Circuit Parallel Bus Advantages
More informationMcMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016
McMaster University Embedded Systems Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016 Serial Peripherals I2C Inter-IC Bus X/Y Coord. RGB data LCD config controller LCD data controller
More informationRaspberry Pi - I/O Interfaces
ECE 1160/2160 Embedded Systems Design Raspberry Pi - I/O Interfaces Wei Gao ECE 1160/2160 Embedded Systems Design 1 I/O Interfaces Parallel I/O and Serial I/O Parallel I/O: multiple input/output simultaneously
More informationEE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave.
EE 456 Fall, 2009 Notes on SPI Bus Blandford/Mitchell The Serial Peripheral Interface (SPI) bus was created by Motorola and has become a defacto standard on many microcontrollers. This is a four wire bus
More information2-Wire, 5-Bit DAC with Three Digital Outputs
Rev 1; 6/4 2-Wire, 5-Bit DAC with Three Digital Outputs General Description The is a 5-bit digital-to-analog converter (DAC) with three programmable digital outputs. The communicates through a 2-wire,
More informationMicrocontrollers and Interfacing
Microcontrollers and Interfacing Week 10 Serial communication with devices: Serial Peripheral Interconnect (SPI) and Inter-Integrated Circuit (I 2 C) protocols College of Information Science and Engineering
More informationThe 9S12 Serial Peripheral Inteface (SPI) Huang Section 10.2 through 10.6 SPI Block User Guide
The 9S12 Serial Peripheral Inteface (SPI) Huang Section 102 through 106 SPI Block User Guide The 9S12 Serial Peripheral Interface (SPI) The 9S12 has a Synchronous Serial Interface On the 9S12 it is called
More information< W3150A+ / W5100 Application Note for SPI >
< W3150A+ / W5100 Application Note for SPI > Introduction This application note describes how to set up the SPI in W3150A+ or W5100. Both the W3150A+ and W5100 have same architecture. W5100 is operated
More informationParallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?
Introduction the Serial Communications Huang Sections 9.2, 10.2, 11.2 SCI Block User Guide SPI Block User Guide IIC Block User Guide o Parallel vs Serial Communication o Synchronous and Asynchronous Serial
More informationSerial Peripheral Interface (SPI)
SPI = Simple, 3 wire, full duplex, synchronous serial data transfer Interfaces to many devices, even many non-spi peripherals Can be a master or slave interface 4 interface pins: -MOSI master out slave
More informationAT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations
Features Compatible with MCS-51 Products 128K Bytes of In-System Reprogrammable Flash data memory and 4K Bytes of Downloadable Flash Program Memory Endurance: 1,000 Write/Erase Cycles per Sector Data Retention:
More informationDS1306. Serial Alarm Real Time Clock (RTC)
www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 96-byte nonvolatile RAM for data
More informationDS75 Digital Thermometer and Thermostat
www.maxim-ic.com FEATURES Temperature Measurements Require No External Components Measures Temperatures from -55 C to +125 C (-67 F to +257 F) 2 C Accuracy Over a -25 C to +100 C Range Thermometer Resolution
More information1.3inch OLED User Manual
1.3inch OLED User Manual 1. Key Parameters Table 1: Key Parameters Driver Chip SH1106 Interface 3-wire SPI 4-wire SPI I2C Resolution 128*64 Display Size 1.3 inch Dimension 29mm*33mm Colors Yellow, Blue
More informationDesign with Microprocessors
Design with Microprocessors Lecture 6 Interfaces for serial communication Year 3 CS Academic year 2017/2018 1 st Semester Lecturer: Radu Dănescu Serial communication modules on AVR MCUs Serial Peripheral
More informationMore on the 9S12 SPI Using the Dallas Semiconductor DS1302 Real Time Clock with the 9S12 SPI
More on the 9S12 SPI Using the Dallas Semiconductor DS1302 Real Time Clock with the 9S12 SPI Using the 9S12 SPI The SPI has a data register (SPIDR) and a shift register. To write data to the SPI, you write
More informationCprE 488 Embedded Systems Design. Lecture 4 Interfacing Technologies
CprE 488 Embedded Systems Design Lecture 4 Interfacing Technologies Joseph Zambreno Electrical and Computer Engineering Iowa State University www.ece.iastate.edu/~zambreno rcl.ece.iastate.edu Never trust
More informationGrowing Together Globally Serial Communication Design In Embedded System
Growing Together Globally Serial Communication Design In Embedded System Contents Serial communication introduction......... 01 The advantages of serial design......... 02 RS232 interface......... 04 RS422
More informationSILICON MICROSTRUCTURES
Digital Communication with SM5800 Series Parts OVERVIEW The SM5800 series pressure product offers the corrected pressure output in both analog and digital formats. Accessing the analog output is an easy
More informationEE 308 Spring Using the 9S12 SPI
Using the 9S12 SPI The SPI has a data register (SPIDR) and a shift register. To write data to the SPI, you write to the SPIDR data register. The 9S12 automatically transfers the data to the shift register
More informationDS WIRE INTERFACE 11 DECOUPLING CAP GND
Rev ; 4/3 Hex Nonvolatile Potentiometer with General Description The contains six 256-position nonvolatile (NV) potentiometers, 64 bytes of NV user EEPROM memory, and four programmable NV I/O pins. The
More informationDS1305 Serial Alarm Real Time Clock (RTC)
Serial Alarm Real Time Clock (RTC) www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100
More informationDigital Thermometer and Thermostat
General Description The DS75 digital thermometer and thermostat provides 9, 10, 11, or 12-bit digital temperature readings over a -55 C to +125 C range with ±2 C accuracy over a -25 C to +100 C range.
More informationDesign and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso
Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Microcontroller It is essentially a small computer on a chip Like any computer, it has memory,
More informationECE 4510/5530 Microcontroller Applications Week 10
ECE 4510/5530 Microcontroller Applications Week 10 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences ECE 4510/5530
More informationSerial Buses in Industrial and Automotive Applications
Serial Buses in Industrial and Automotive Applications Presented by Neelima Chaurasia Class: #368 1 Overview As consumer electronics, computer peripherals, vehicles and industrial applications add embedded
More informationLecture 25 March 23, 2012 Introduction to Serial Communications
Lecture 25 March 23, 2012 Introduction to Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications Asynchronous Serial (e.g., SCI, RS-232) Synchronous
More informationMicrocontroller basics
FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In
More informationFPGA Implementation Of SPI To I2C Bridge
FPGA Implementation Of SPI To I2C Bridge Abhilash S.Warrier Akshay S.Belvadi Dhiraj R.Gawhane Babu Ravi Teja K Abstract Today s electronic system is not a standalone unit instead working in a group, where
More informationDS1845 Dual NV Potentiometer and Memory
www.maxim-ic.com FEATURES Two linear taper potentiometers -010 one 10k, 100 position & one 10k, 256 position -050 one 10k, 100 position & one 50k, 256 postition -100 one 10k, 100 position & one 100k, 256
More informationGT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)
ADVANCED GT24C02 2-Wire 2Kb Serial EEPROM (Smart Card application) www.giantec-semi.com a0 1/19 Table of Content 1 FEATURES...3 2 DESCRIPTION...4 3 PIN CONFIGURATION...5 4 PIN DESCRIPTIONS...6 5 BLOCK
More informationDS1305EN. Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to
More informationINTEGRATED CIRCUITS. PCA bit I 2 C and SMBus I/O port with interrupt. Product data sheet Supersedes data of 2004 Jul 27.
INTEGRATED CIRCUITS Supersedes data of 2004 Jul 27 2004 Sep 30 DESCRIPTION The is a 24-pin CMOS device that provide 16 bits of General Purpose parallel Input/Output (GPIO) expansion for I 2 C/SMBus applications
More informationTOP VIEW CLOCK GENERATOR A1 A2 GND CPU SPEED SELECT
Rev 0; 6/04 9-Bit I 2 C Nonvolatile General Description The is a 9-bit nonvolatile (NV) I/O expander with 64 bytes of NV user memory controlled by an I 2 C TM - compatible serial interface. The offers
More informationPART IN+ IN- TX_DISABLE TX_FAULT BIAS SET BIASMAX 2 APCSET 2 MODSET 2 MOD SET PC_MON BS_MON
Rev 1; 2/6 Dual, NV, Variable Resistors General Description The DS392 features a dual, nonvolatile (NV), low temperature-coefficient, variable digital resistor with 256 user-selectable positions. The DS392
More informationPARALLEL COMMUNICATIONS
Parallel Data Transfer Suppose you need to transfer data from one HCS12 to another. How can you do this? You could connect PORTA of the sending computer (set up as an output port) to PORTA of the receiving
More informationLecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT
1 Lecture 5: Computing Platforms Asbjørn Djupdal ARM Norway, IDI NTNU 2013 2 Lecture overview Bus based systems Timing diagrams Bus protocols Various busses Basic I/O devices RAM Custom logic FPGA Debug
More informationInterfacing Techniques in Embedded Systems
Interfacing Techniques in Embedded Systems Hassan M. Bayram Training & Development Department training@uruktech.com www.uruktech.com Introduction Serial and Parallel Communication Serial Vs. Parallel Asynchronous
More informationPart 1 Using Serial EEPROMs
Part 1 Using Serial EEPROMs copyright 1997, 1999 by Jan Axelson If you have a project that needs a modest amount of nonvolatile, read/write memory, serial EEPROM may be the answer. These tiny and inexpensive
More informationDS1306 Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-Time Clock (RTC) Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year with Leap-Year Compensation Valid Up to
More informationLecture 14 Serial Peripheral Interface
www.atomicrhubarb.com/systems Lecture 14 Serial Peripheral Interface Section Topic Where in the books Zilog PS220 "Enhanced Serial Peripheral Interface" Assorted datasheets Synchronous Serial Buses 1-wire
More informationDS1305EN. Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to
More informationPreliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1
Nonvolatile Memory 1-Kbit E 2 PROM SDA 2516-5 Preliminary Data MOS IC Features Word-organized reprogrammable nonvolatile memory in n-channel floating-gate technology (E 2 PROM) 128 8-bit organization Supply
More informationa Serial Peripheral Interace (SPI). Embedded RISC Microcontroller Core Peripheral
Features Full-duplex, 3-wire Synchronous Data Transfer Master or Slave Operation Maximum Bit Frequency of f CLOCK /4 (in M-bits/second) LSB First or MSB First Data Transfer Four Programmable Bit Rates
More informationor between microcontrollers)
: Communication Interfaces in Embedded Systems (e.g., to interface with sensors and actuators or between microcontrollers) Spring 2016 : Communication Interfaces in Embedded Systems Spring (e.g., 2016
More information+Denotes a lead(pb)-free/rohs-compliant package.
EVALUATION KIT AVAILABLE MAX7320 General Description The MAX7320 2-wire serial-interfaced peripheral features eight push-pull outputs with selectable power-up logic states. The +5.5V tolerant RST input
More informationFreescale Semiconductor, Inc.
Order this document by /D Software I 2 C Communications By Brad Bierschenk MMD Applications Engineering Austin, Texas Introduction I 2 C Overview The I 2 C (inter-integrated circuit) protocol is a 2-wire
More informationDS1682 Total-Elapsed-Time Recorder with Alarm
www.maxim-ic.com GENERAL DESCRIPTION The DS1682 is an integrated elapsed-time recorder containing a factory-calibrated, temperaturecompensated RC time base that eliminates the need for an external crystal.
More informationDESIGNING OF INTER INTEGRATED CIRCUIT USING VERILOG
DESIGNING OF INTER INTEGRATED CIRCUIT USING VERILOG DISHA MALIK Masters of Technology Scholar, Department of Electronics & Communication Engineering, Jayoti Vidyapeeth Women s University, Jaipur INDIA
More informationIntroduction to I2C & SPI. Chapter 22
Introduction to I2C & SPI Chapter 22 Issues with Asynch. Communication Protocols Asynchronous Communications Devices must agree ahead of time on a data rate The two devices must also have clocks that are
More informationIntroduction 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,.2 SCI Block User Guide SPI Block User Guide Parallel Data Transfer Suppose you need to transfer data from one HCS2 to another. How can you do
More informationSection 16. Basic Sychronous Serial Port (BSSP)
M 16 Section 16. Basic Sychronous Serial Port (BSSP) BSSP HIGHLIGHTS This section of the manual contains the following major topics: 16.1 Introduction...16-2 16.2 Control Registers...16-3 16.3 SPI Mode...16-6
More informationDS Wire Digital Thermometer and Thermostat
www.maxim-ic.com FEATURES Temperature measurements require no external components with ±1 C accuracy Measures temperatures from -55 C to +125 C; Fahrenheit equivalent is -67 F to +257 F Temperature resolution
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 informationArduino Uno R3 INTRODUCTION
Arduino Uno R3 INTRODUCTION Arduino is used for building different types of electronic circuits easily using of both a physical programmable circuit board usually microcontroller and piece of code running
More information12 Push-Pull Outputs and 4 Inputs
EVALUATION KIT AVAILABLE MAX7326 General Description The MAX7326 2-wire serial-interfaced peripheral features 16 I/O ports. The ports are divided into 12 push-pull outputs and four input ports with selectable
More informationMicrocontrollers and Interfacing week 10 exercises
1 SERIAL PERIPHERAL INTERFACE (SPI) HARDWARE Microcontrollers and Interfacing week 10 exercises 1 Serial Peripheral Interface (SPI) hardware Complex devices (persistent memory and flash memory cards, D/A
More informationUniversität Dortmund. IO and Peripheral Interfaces
IO and Peripheral Interfaces Microcontroller System Architecture Each MCU (micro-controller unit) is characterized by: Microprocessor 8,16,32 bit architecture Usually simple in-order microarchitecture,
More informationFremont Micro Devices, Inc.
FEATURES Low voltage and low power operations: FT24C02/04/08/16: V CC = 2.5V to 5.5V FT24C02A/04A/08A/16A: V CC = 1.8V to 5.5V Maximum Standby current < 1µA (typically 0.02µA and 0.06µA @ 1.8V and 5.5V
More informationDS1625. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT
DS1625 Digital Thermometer and Thermostat FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is 67 F to
More informationECE 471 Embedded Systems Lecture 20
ECE 471 Embedded Systems Lecture 20 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 20 October 2017 Announcements Project coming Only one person was in class Wednesday due to Career
More informationDS1305. Serial Alarm Real Time Clock (RTC) FEATURES PIN ASSIGNMENT ORDERING INFORMATION
DS135 Serial Alarm Real Time Clock (RTC) FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 21 96 byte
More informationORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE
AVAILABLE Digital Thermometer and Thermostat FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is -67
More informationWhite Paper Using the MAX II altufm Megafunction I 2 C Interface
White Paper Using the MAX II altufm Megafunction I 2 C Interface Introduction Inter-Integrated Circuit (I 2 C) is a bidirectional two-wire interface protocol, requiring only two bus lines; a serial data/address
More informationLB5900 Series Power Sensor SPI & I2C Interface Guide
LB5900 Series Power Sensor SPI & I2C Interface Guide TABLE OF CONTENTS TABLE OF CONTENTS... 1 NOTICE... 4 GENERAL... 5 Sensor Power... 6 Data Line Electrical Specifications... 6 Commands, Data Transmission
More informationand 8 Open-Drain I/Os
EVALUATION KIT AVAILABLE MAX7325 General Description The MAX7325 2-wire serial-interfaced peripheral features 16 I/O ports. Ports are divided into eight push-pull outputs and eight I/Os with selectable
More informationMenu. What is SPI? EEL 3744 EEL 3744 SPI
Menu Concepts >Problems in serial communications Timing Synchronization: How do you line up the bit boundaries? Message Synchronization: How do you line up messages? Look into my... >Synchronous data solves
More informationPreliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1
Nonvolatile Memory 4-Kbit E 2 PROM with I 2 C Bus Interface SDA 2546-5 Preliminary Data MOS IC Features Word-organized reprogrammable nonvolatile memory in n-channel floating-gate technology (E 2 PROM)
More informationReal Time Embedded Systems. Lecture 1 January 17, 2012
SPI 4-Wire 3-Wire Real Time Embedded Systems www.atomicrhubarb.com/embedded Lecture 1 January 17, 2012 Topic Section Topic Where in the books Catsoulis chapter/page Simon chapter/page Zilog UM197 (ZNEO
More informationIntroduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications
Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications o Asynchronous Serial (SCI, RS-232) o Synchronous Serial (SPI, IIC) The MC9S12
More informationSPI (Serial & Peripheral Interface)
SPI (Serial & Peripheral Interface) What is SPI SPI is a high-speed, full-duplex bus that uses a minimum of 3 wires to exchange data. The popularity of this bus rose when SD cards (and its variants ie:
More informationNuvoton NCT5655Y/W. 16-bit I 2 C-bus and SMBus GPIO controller with interrupt. Revision: 1.0 Date: May, 2016 NCT5655Y/W
Nuvoton NCT5655Y/W 16-bit I 2 C-bus and SMBus GPIO controller with interrupt Revision: 1.0 Date: May, 2016 - I - Revision 1.0 NCT5655Y/W Datasheet Revision History PAGES DATES VERSION MAIN CONTENTS 1 18
More informationIV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4
IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 4.1. Serial data communication basics ----------- 1 4.2. UART ------------------------------------------------ 4 4.3. Serial Peripheral
More informationHow to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers
APPLICATION NOTE How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers SABRINA D QUARLES APPLICATIONS ENGINEER April 1993 Order Number 272319-001 Information in this document
More informationST1633. Datasheet. Capacitive Touch Screen Controller. Version /11/17
Capacitive Touch Screen Controller Datasheet Version 1.6 2015/11/17 Note: Sitronix Technology Corp. reserves the right to change the contents in this document without prior notice. This is not a final
More informationTemperature Sensor TMP2 PMOD Part 1
Temperature Sensor TMP2 PMOD Part 1 Overview of the Temperature Sensor and I 2 C Interfacing Reference Sites: Diligent Temp2 PMOD: http://www.digilentinc.com/products/detail.cfm?navpath=2,401,961&prod=pmod-tmp2
More informationSPI: Serial Peripheral Interface
ECE3411 Fall 2015 Lab 6c. SPI: Serial Peripheral Interface Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk, syed.haider}@engr.uconn.edu
More informationMicrocontroller interfaces
Microcontroller interfaces 1 Microcontroller interfaces Microcontroller interfaces Digital Analog Serial Parallel Binary (on/off) Voltage Current Asynchronous Synchronous 1-wire RS232/485 Ethernet 2-wire
More informationDS1855 Dual Nonvolatile Digital Potentiometer and Secure Memory
Dual Nonvolatile Digital Potentiometer and Secure Memory FEATURES Two Linear Taper Potentiometers DS1855-010 (One 10kΩ, 100 Position and One 10kΩ, 256 Position) DS1855-020 (One 10kΩ, 100 Position and One
More informationGT24C256 2-WIRE. 256K Bits. Serial EEPROM
GT24C256 2-WIRE 256K Bits Serial EEPROM Copyright 2013 Giantec Semiconductor Inc. (Giantec). All rights reserved. Giantec reserves the right to make changes to this specification and its products at any
More informationDS1676 Total Elapsed Time Recorder, Erasable
www.dalsemi.com Preliminary DS1676 Total Elapsed Time Recorder, Erasable FEATURES Records the total time that the Event Input has been active and the number of events that have occurred. Volatile Elapsed
More informationImplementation of MCU Invariant I2C Slave Driver Using Bit Banging
Implementation of MCU Invariant I2C Slave Driver Using Bit Banging Arindam Halder, Ranjan Dasgupta Innovation Lab, TATA Consultancy Services, Ltd. Kolkata, India arindam.halder@tcs.com,ranjan.dasgupta@tcs.com
More informationI 2 C Port Expander with Eight Inputs. Features
EVALUATION KIT AVAILABLE MAX7319 General Description The MAX7319 2-wire serial-interfaced peripheral fea-tures eight input ports with selectable internal pullups, overvoltage protection to +6V, and transition
More informationPT7C4563 Real-time Clock Module (I2C Bus)
Features Description Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) Includes time (Hour/Minute/Second) and calendar (Year/Month/Date/Day) counter functions (BCD
More informationApp Note Application Note: Addressing Multiple FPAAs Using a SPI Interface
Rev: 1.0.0 Date: 23 rd Jan 2015 App Note - 310 Application Note: Addressing Multiple FPAAs Using a SPI Interface TABLE OF CONTENTS 1 PURPOSE... 2 2 THE SPI INTERFACE... 3 2.1 OVERVIEW... 3 2.2 DETAILED
More informationFM24CL04 4Kb FRAM Serial Memory
4Kb FRAM Serial Memory Features 4K bit Ferroelectric Nonvolatile RAM Organized as 512 x 8 bits Unlimited Read/Writes 45 Year Data Retention NoDelay Writes Advanced High-Reliability Ferroelectric Process
More informationSerial Peripheral Interface (SPI) Last updated 8/7/18
Serial Peripheral Interface (SPI) Last updated 8/7/18 MSP432 SPI eusci = enhanced Universal Serial Communications Interface 2 tj MSP432 SPI ARM (AMBA Compliant) 7/8 bit transmission Master/Slave LSB/MSB
More informationDS1305 Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-Time Clock (RTC) Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year with Leap-Year Compensation Valid Up to
More informationRL78 Serial interfaces
RL78 Serial interfaces Renesas Electronics 00000-A Introduction Purpose This course provides an introduction to the RL78 serial interface architecture. In detail the different serial interfaces and their
More informationHDI Series Amplified pressure sensors
FEATURES 10 mbar to 5 bar, absolute, gage or differential pressure Digital I 2 C-bus and analog output Precision ASIC signal conditioning Calibrated and temperature compensated SMT and DIP housings RoHS
More informationFeatures. Ordering Information. Selector Guide. Applications. Pin Configurations. I 2 C Port Expander with 8 Open-Drain I/Os
General Description The MAX7321 2-wire serial-interfaced peripheral features eight open-drain I/O ports with selectable internal pullups and transition detection. Any port may be used as a logic input
More informationModule 3.C. Serial Peripheral Interface (SPI) Tim Rogers 2017
Module 3.C Serial Peripheral Interface (SPI) Tim Rogers 2017 Learning Outcome #3 An ability to effectively utilize the wide variety of peripherals integrated into a contemporary microcontroller How? A:
More informationEmbedded Workshop 10/28/15 Rusty Cain
2 IC Embedded Workshop 10/28/15 Rusty Cain Set up for Workshop: Please Sign in on Sheet. Please include your email. While you are waiting for the Workshop to begin 1. Make sure you are connected to the
More informationGT24C WIRE. 1024K Bits. Serial EEPROM
GT24C1024 2-WIRE 1024K Bits Serial EEPROM Copyright 2013 Giantec Semiconductor Inc. (Giantec). All rights reserved. Giantec reserves the right to make changes to this specification and its products at
More informationMicrocontroller Systems. ELET 3232 Topic 23: The I 2 C Bus
Microcontroller Systems ELET 3232 Topic 23: The I 2 C Bus Objectives To understand the basics of the I 2 C bus To understand the format of a serial transmission between I 2 C devices To understand how
More informationDigital Thermometer and Thermostat
General Description The DS75LV low-voltage (1.7V to 3.7V) digital thermometer and thermostat provides 9, 10, 11, or 12-bit digital temperature readings over a -55 C to +125 C range with ±2 C accuracy over
More informationDS1631/DS1631A/DS1731 High-Precision Digital Thermometer and Thermostat
AVAILABLE High-Precision Digital Thermometer and Thermostat FEATURES DS1631 and DS1631A Provide ±0.5 C Accuracy over a 0 C to +70 C Range DS1731 Provides ±1 C Accuracy over a -10 C to +85 C Range DS1631A
More informationTB2669. I²C Slave Mode. Introduction. Author: Christopher Best, Microchip Technology Inc.
I²C Slave Mode Introduction Author: Christopher Best, Microchip Technology Inc. Inter-Integrated Circuit, more commonly referred to as I 2 C, is a synchronous, two-wire, bidirectional serial communications
More information