147 Pages

S12SPIV3

Course: EE 308, Fall 2009
School: NMT
Rating:
 
 
 
 
 

Word Count: 7833

Document Preview

NUMBER DOCUMENT S12SPIV3/D SPI Block Guide V03.06 Original Release Date: 21 JAN 2000 Revised: 04 FEB 2003 Motorola, Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or...

Register Now

Unformatted Document Excerpt

Coursehero >> New Mexico >> NMT >> EE 308

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
NUMBER DOCUMENT S12SPIV3/D SPI Block Guide V03.06 Original Release Date: 21 JAN 2000 Revised: 04 FEB 2003 Motorola, Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including Typicals must be validated for each customer application by customers technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. Motorola, Inc., 2001 1 SPI Block Guide V03.06 Revision History Version Revision Effective Number Date Date 0.1 0.2 0.3 21 Jan 2000 1 Mar 2000 14 Jun 2000 31 Aug 2000 13 Mar 2001 13 Mar 2001 6 July 2001 19 July 2001 26 July 2001 13 Mar 2001 19 Mar 2001 6 July 2001 19 July 2001 Author Description of Changes This spec is based on the Barracuda, with modications to change the module from 16 bit to 8 bit. Template of this document changed as per Version 2.0 SRS. - Signal names are changed as per the SRS2.0 - SPE bit remains set in the Mode Fault error case - Slave SPI does not support div2 and div4 cases - Electrical spec added - SPIF ag is cleared by a read access to the status register followed by read access to the data register. - Incorporated feedback regarding format of the document. - Incorporated changes as a result of internal discussions and clarication of SRS2 - Line is added with respect to SPTEF bit to make spec more clear. - Landscape pages have been removed from pdf. - Extra blank pages have been removed. - Line is added with respect to SPE bit to make spec more clear. -Added Document Names -variable denitions and Names have been hidden -Changed chapter 3.9 Errata to Note Based on the BUG version V02.02 an improved version was created. The specication counter has to be increased, because there is a difference in the behavior in SPI master mode from this specication to its predecessor. In SPI Master Mode, the change of a cong bit during a transmission in progress, will abort the transmission and force the SPI into idle state. Section 4.4.2 - Changed description of transfer format CPHA=0 in slave mode Section 4.4.3 - Changed description of transfer format CPHA=1 in master mode - Changed Figure 4-3 Section 4.6.2 - Added note for mode fault in bidirectional master mode Section 4.7.1 - Changed description of bidirectional mode with mode fault Section 4.8.3 - Changed last sentence in stop mode description Section 3.3.4 - Changed description of SPTEF ag Section 4.1 - Changed description of SPTEF ag and SPIDR behaviour 0.4 0.5 0.6 0.7 0.8 V02.02 V03.00 27 Sep 2001 27 Sep 2001 V03.01 14 Dec 2001 14 Dec 2001 V03.02 07 Jan 2002 07 Jan 2002 2 SPI Block Guide V03.06 Version Revision Effective Number Date Date V03.03 V03.04 V03.05 V03.06 09 Jan 2002 18 Mar 2002 03 Apr 2002 04 Feb 2003 09 JAN 2002 18 Mar 2002 03 Apr 2002 04 Feb 2003 Author Description of Changes Transferred document to SRS3.0 format Updated Document Format. Minor Document cleanup. Minor Document cleanup. 3 SPI Block Guide V03.06 4 SPI Block Guide V03.06 Table of Contents Section 1 Introduction 1.1 1.2 1.3 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Section 2 External Signal Description 2.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2 Detailed Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.1 MOSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.2 MISO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.3 SS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.4 SCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Section 3 Memory Map/Register Definition 3.1 Register Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.1.1 SPI Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.1.2 SPI Control Register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.1.3 SPI Baud Rate Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.1.4 SPI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1.5 SPI Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Section 4 Functional Description 4.1 4.2 4.3 4.4 4.4.1 4.4.2 4.4.3 4.5 4.6 4.6.1 4.6.2 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Master Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Slave Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Transmission Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Clock Phase and Polarity Controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 CPHA = 0 Transfer Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 CPHA = 1 Transfer Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 SPI Baud Rate Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Special Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 SS Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Bidirectional Mode (MOMI or SISO). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5 SPI Block Guide V03.06 4.7 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.7.1 Mode Fault Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.8 Low Power Mode Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.8.1 SPI in Run Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.8.2 SPI in Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.8.3 SPI in Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.8.4 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.8.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Section 5 Initialization/Application Information 6 SPI Block Guide V03.06 List of Figures Figure 1-1 Figure 3-1 Figure 3-2 Figure 3-3 Figure 3-4 Figure 3-5 Figure 4-1 Figure 4-2 Figure 4-3 Figure 4-4 SPI Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 SPI Control Register 1 (SPICR1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 SPI Control Register 2 (SPICR2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 SPI Baud Rate Register (SPIBR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 SPI Status Register (SPISR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 SPI Data Register (SPIDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Master/Slave Transfer Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 SPI Clock Format 0 (CPHA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 SPI Clock Format 1 (CPHA = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Baud Rate Divisor Equation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7 SPI Block Guide V03.06 8 SPI Block Guide V03.06 List of Tables Table 3-1 Table 3-2 Table 3-3 Table 3-4 Table 4-1 Module Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 SS Input / Output Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Bidirectional Pin Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Example SPI Baud Rate Selection (25 MHz Bus Clock) . . . . . . . . . . . . . . . . . 19 Normal Mode and Bidirectional Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9 SPI Block Guide V03.06 10 SPI Block Guide V03.06 Preface Terminology Acronyms and Abbreviations SPI SS SCK MOSI MISO MOMI SISO Serial Parallel Interface Slave Select Serial Clock Master Output, Slave Input Master Input, Slave Output Master Output, Master Input Slave Input, Slave Output 11 SPI Block Guide V03.06 12 SPI Block Guide V03.06 Section 1 Introduction Figure 1-1 gives an overview on the SPI architecture. The main parts of the SPI are status,control and data registers, shifter logic, baud rate generator, master/slave control logic and port control logic. SPI 2 SPI Control Register 1 BIDIROE SPI Control Register 2 2 SPC0 SPI Status Register SPIF MODF SPTEF Slave Control CPOL CPHA MOSI Interrupt Control SPI Interrupt Request Baud Rate Generator Counter Slave Baud Rate Phase + SCK in Polarity Control Master Baud Rate Phase + SCK out Polarity Control MISO Port Control Logic SCK Master Control Baud Rate SS Shift Clock Sample Clock Bus Clock Prescaler Clock Select SPPR 3 SPR 3 LSBFE=1 SPI Baud Rate Register 8 8 LSBFE=0 Shifter data in LSBFE=0 LSBFE=1 MSB LSBFE=0 LSBFE=1 LSB SPI Data Register data out Figure 1-1 SPI Block Diagram 1.1 Overview The SPI module allows a duplex, synchronous, serial communication between the MCU and peripheral devices. Software can poll the SPI status flags or the SPI operation can be interrupt driven. 13 SPI Block Guide V03.06 1.2 Features The SPI includes these distinctive features: Master mode and slave mode Bi-directional mode Slave select output Mode fault error flag with CPU interrupt capability Double-buffered data register Serial clock with programmable polarity and phase Control of SPI operation during wait mode 1.3 Modes of Operation The SPI functions in three modes, run, wait, and stop. Run Mode This is the basic mode of operation. Wait Mode SPI operation in wait mode is a configurable low power mode, controlled by the SPISWAI bit located in the SPICR2 register. In wait mode, if the SPISWAI bit is clear, the SPI operates like in Run Mode. If the SPISWAI bit is set, the SPI goes into a power conservative state, with the SPI clock generation turned off. If the SPI is configured as a master, any transmission in progress stops, but is resumed after CPU goes into Run Mode. If the SPI is configured as a slave, reception and transmission of a byte continues, so that the slave stays synchronized to the master. Stop Mode The SPI is inactive in stop mode for reduced power consumption. If the SPI is configured as a master, any transmission in progress stops, but is resumed after CPU goes into Run Mode. If the SPI is configured as a slave, reception and transmission of a byte continues, so that the slave stays synchronized to the master. This is a high level description only, detailed descriptions of operating modes are contained in section 4.8 Low Power Mode Options. Section 2 External Signal Description 14 SPI Block Guide V03.06 2.1 Overview This section lists the name and description of all ports including inputs and outputs that do, or may, connect off chip. The SPI module has a total of 4 external pins. 2.2 Detailed Signal Description 2.2.1 MOSI This pin is used to transmit data out of the SPI module when it is configured as a Master and receive data when it is configured as Slave. 2.2.2 MISO This pin is used to transmit data out of the SPI module when it is configured as a Slave and receive data when it is configured as Master. 2.2.3 SS This pin is used to output the select signal from the SPI module to another peripheral with which a data transfer is to take place when its configured as a Masterand its used as an input to receive the slave select signal when the SPI is configured as Slave. 2.2.4 SCK This pin is used to output the clock with respect to which the SPI transfers data or receive clock in case of Slave. Section 3 Memory Map/Register Definition This section provides a detailed description of address space and registers used by the SPI. The memory map for the SPI is given below in Table 3-1. The address listed for each register is the sum of a base address and an address offset. The base address is defined at the SoC level and the address offset is defined at the module level. Reads from the reserved bits return zeros and writes to the reserved bits have no effect. Table 3-1 Module Memory Map Address $___0 $___1 $___2 Use SPI Control Register 1 (SPICR1) SPI Control Register 2 (SPICR2) SPI Baud Rate Register (SPIBR) Access Read / Write Read / Write 1 Read / Write 1 15 SPI Block Guide V03.06 Table 3-1 Module Memory Map $___3 $___4 $___5 $___6 $___7 SPI Status Register (SPISR) Reserved SPI Data Register (SPIDR) Reserved Reserved Read 2 23 Read / Write 23 23 NOTES: 1. Certain bits are non-writable. 2. Writes to this register are ignored. 3. Reading from this register returns all zeros. 3.1 Register Descriptions This section consists of register descriptions in address order. Each description includes a standard register diagram with an associated figure number. Details of register bit and field function follow the register diagrams, in bit order. 3.1.1 SPI Control Register 1 Register Address: $___0 Bit 7 R W Reset: SPIE 0 6 SPE 0 5 SPTIE 0 4 MSTR 0 3 CPOL 0 2 CPHA 1 1 SSOE 0 Bit 0 LSBFE 0 Figure 3-1 SPI Control Register 1 (SPICR1) Read: anytime Write: anytime SPIE SPI Interrupt Enable Bit This bit enables SPI interrupt requests, if SPIF or MODF status flag is set. 1 = SPI interrupts enabled. 0 = SPI interrupts disabled. SPE SPI System Enable Bit This bit enables the SPI system and dedicates the SPI port pins to SPI system functions. If SPE is cleared, SPI is disabled and forced into idle state, status bits in SPISR register are reseted 1 = SPI enabled, port pins are dedicated to SPI functions. 0 = SPI disabled (lower power consumption). SPTIE SPI Transmit Interrupt Enable This bit enables SPI interrupt requests, if SPTEF flag is set. 1 = SPTEF interrupt enabled. 16 SPI Block Guide V03.06 0 = SPTEF interrupt disabled. MSTR SPI Master/Slave Mode Select Bit This bit selects, if the SPI operates in master or slave mode. Switching the SPI from master to slave or vice versa forces the SPI system into idle state. 1 = SPI is in Master mode 0 = SPI is in Slave mode CPOL SPI Clock Polarity Bit This bit selects an inverted or non-inverted SPI clock. To transmit data between SPI modules, the SPI modules must have identical CPOL values. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state. 1 = Active-low clocks selected. In idle state SCK is high. 0 = Active-high clocks selected. In idle state SCK is low. CPHA SPI Clock Phase Bit This bit is used to select the SPI clock format. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state. 1 = Sampling of data occurs at even edges (2,4,6,...,16) of the SCK clock 0 = Sampling of data occurs at odd edges (1,3,5,...,15) of the SCK clock SSOE Slave Select Output Enable The SS output feature is enabled only in master mode, if MODFEN is set, by asserting the SSOE as shown in Table 3-2. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state. Table 3-2 SS Input / Output Selection MOD SSOE FEN 0 0 1 1 0 1 0 1 Master Mode SS not used by SPI SS not used by SPI SS input with MODF feature SS is slave select output Slave Mode SS input SS input SS input SS input LSBFE LSB-First Enable This bit does not affect the position of the MSB and LSB in the data register. Reads and writes of the data register always have the MSB in bit 7. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state. 1 = Data is transferred least significant bit first. 0 = Data is transferred most significant bit first. 17 SPI Block Guide V03.06 3.1.2 SPI Control Register 2 Register Address: $___1 R W Reset: Bit 7 0 0 6 0 0 5 0 0 = Reserved 4 MODFEN 0 3 BIDIROE 0 2 0 0 1 SPISWAI 0 Bit 0 SPC0 0 Figure 3-2 SPI Control Register 2 (SPICR2) Read: anytime Write: anytime; writes to the reserved bits have no effect MODFEN Mode Fault Enable Bit This bit allows the MODF failure being detected. If the SPI is in Master mode and MODFEN is cleared, then the SS port pin is not used by the SPI. In Slave mode, the SS is available only as an input regardless of the value of MODFEN. For an overview on the impact of the MODFEN bit on the SS port pin configuration refer to Table 3-2. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state. 1 = SS port pin with MODF feature 0 = SS port pin is not used by the SPI BIDIROE Output enable in the Bidirectional mode of operation This bit controls the MOSI and MISO output buffer of the SPI, when in bidirectional mode of operation (SPC0 is set). In master mode this bit controls the output buffer of the MOSI port, in slave mode it controls the output buffer of the MISO port. In master mode, with SPC0 set, a change of this bit will abort a transmission in progress and force the SPI into idle state. 1 = Output buffer enabled 0 = Output buffer disabled SPISWAI SPI Stop in Wait Mode Bit This bit is used for power conservation while in wait mode. 1 = Stop SPI clock generation when in wait mode 0 = SPI clock operates normally in wait mode SPC0 Serial Pin Control Bit 0 This bit enables bidirectional pin configurations as shown in Table 3-3. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state Table 3-3 Bidirectional Pin Congurations Pin Mode SPC0 BIDIROE MISO Master Mode of Operation MOSI 18 SPI Block Guide V03.06 Table 3-3 Bidirectional Pin Congurations Pin Mode Normal Bidirectional SPC0 0 1 BIDIROE MISO MOSI X Master In Master Out 0 Master In MISO not used by SPI 1 Master I/O Slave Mode of Operation X Slave Out SlaveIn 0 Slave In MOSI not used by SPI 1 Slave I/O Normal Bidirectional 0 1 3.1.3 SPI Baud Rate Register Register Address: $___2 R W Reset: Bit 7 0 0 6 SPPR2 0 5 SPPR1 0 = Reserved 4 SPPR0 0 3 0 0 2 SPR2 0 1 SPR1 0 Bit 0 SPR0 0 Figure 3-3 SPI Baud Rate Register (SPIBR) Read: anytime Write: anytime; writes to the reserved bits have no effect SPPR2SPPR0 SPI Baud Rate Preselection Bits SPR2SPR0 SPI Baud Rate Selection Bits These bits specify the SPI baud rates as shown in the table below. In master mode, a change of these bits will abort a transmission in progress and force the SPI system into idle state. The baud rate divisor equation is as follows: BaudRateDivisor = ( SPPR + 1 ) 2 ( SPR + 1 ) The baud rate can be calculated with the following equation: Baud Rate = BusClock BaudRateDivisor Table 3-4 Example SPI Baud Rate Selection (25 MHz Bus Clock) SPPR2 0 SPPR1 0 SPPR0 0 SPR2 0 SPR1 0 SPR0 0 BaudRate Divisor 2 Baud Rate 12.5 MHz 19 SPI Block Guide V03.06 Table 3-4 Example SPI Baud Rate Selection (25 MHz Bus Clock) SPPR2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 SPPR1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 SPPR0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 SPR2 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 SPR1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 SPR0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 BaudRate Divisor 4 8 16 32 64 128 256 4 8 16 32 64 128 256 512 6 12 24 48 96 192 384 768 8 16 32 64 128 256 512 1024 10 20 40 80 160 320 640 1280 12 24 48 96 Baud Rate 6.25 MHz 3.125 MHz 1.5625 MHz 781.25 kHz 390.63 kHz 195.31 kHz 97.66 kHz 6.25 MHz 3.125 MHz 1.5625 MHz 781.25 kHz 390.63 kHz 195.31 kHz 97.66 kHz 48.83 kHz 4.16667 MHz 2.08333 MHz 1.04167 MHz 520.83 kHz 260.42 kHz 130.21 kHz 65.10 kHz 32.55 kHz 3.125 MHz 1.5625 MHz 781.25 kHz 390.63 kHz 195.31 kHz 97.66 kHz 48.83 kHz 24.41 kHz 2.5 MHz 1.25 MHz 625 kHz 312.5 kHz 156.25 kHz 78.13 kHz 39.06 kHz 19.53 kHz 2.08333 MHz 1.04167 MHz 520.83 kHz 260.42 kHz 20 SPI Block Guide V03.06 Table 3-4 Example SPI Baud Rate Selection (25 MHz Bus Clock) SPPR2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 SPPR1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 SPPR0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 SPR2 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 SPR1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 SPR0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 BaudRate Divisor 192 384 768 1536 14 28 56 112 224 448 896 1792 16 32 64 128 256 512 1024 2048 Baud Rate 130.21 kHz 65.10 kHz 32.55 kHz 16.28 kHz 1.78571 MHz 892.86 kHz 446.43 kHz 223.21 kHz 111.61 kHz 55.80 kHz 27.90 kHz 13.95 kHz 1.5625 MHz 781.25 kHz 390.63 kHz 195.31 kHz 97.66 kHz 48.83 kHz 24.41 kHz 12.21 kHz NOTE: In slave mode of SPI S-clock speed DIV2 is not supported. 3.1.4 SPI Status Register Register Address: $___3 R W Reset: Bit 7 SPIF 0 6 0 0 5 SPTEF 1 = Reserved 4 MODF 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0 Figure 3-4 SPI Status Register (SPISR) Read: anytime Write: has no effect SPIF SPIF Interrupt Flag 21 SPI Block Guide V03.06 This bit is set after a received data byte has been transferred into the SPI Data Register. This bit is cleared by reading the SPISR register (with SPIF set) followed by a read access to the SPI Data Register. 1 = New data copied to SPIDR 0 = Transfer not yet complete SPTEF SPI Transmit Empty Interrupt Flag If set, this bit indicates that the transmit data register is empty. To clear this bit and place data into the transmit data register, SPISR has to be read with SPTEF=1, followed by a write to SPIDR. Any write to the SPI Data Register without reading SPTEF=1, is effectively ignored. 1 = SPI Data register empty 0 = SPI Data register not empty MODF Mode Fault Flag This bit is set if the SS input becomes low while the SPI is configured as a master and mode fault detection is enabled, MODFEN bit of SPICR2 register is set. Refer to MODFEN bit description in 3.1.2 SPI Control Register 2. The flag is cleared automatically by a read of the SPI Status Register (with MODF set) followed by a write to the SPI Control Register 1. 1 = Mode fault has occurred. 0 = Mode fault has not occurred. 3.1.5 SPI Data Register Register Address: $___5 Bit 7 R W Reset: Bit 7 0 6 6 0 5 5 0 4 4 0 3 3 0 2 2 0 1 2 0 Bit 0 Bit 0 0 Figure 3-5 SPI Data Register (SPIDR) Read: anytime; normally read only after SPIF is set Write: anytime The SPI Data Register is both the input and output register for SPI data. A write to this register allows a data byte to be queued and transmitted. For a SPI configured as a master, a queued data byte is transmitted immediately after the previous transmission has completed. The SPI Transmitter Empty Flag SPTEF in the SPISR register indicates when the SPI Data Register is ready to accept new data. Reading the data can occur anytime from after the SPIF is set to before the end of the next transfer. If the SPIF is not serviced by the end of the successive transfers, those data bytes are lost and the data within the SPIDR retains the first byte until SPIF is serviced. 22 SPI Block Guide V03.06 Section 4 Functional Description 4.1 General The SPI module allows a duplex, synchronous, serial communication between MCU the and peripheral devices. Software can poll the SPI status flags or SPI operation can be interrupt driven. The SPI system is enabled by setting the SPI enable (SPE) bit in SPI Control Register 1. While SPE bit is set, the four associated SPI port pins are dedicated to the SPI function as: Slave select (SS) Serial clock (SCK) Master out/slave in (MOSI) Master in/slave out (MISO) The main element of the SPI system is the SPI Data Register. The 8-bit data register in the master and the 8-bit data register in the slave are linked by the MOSI and MISO pins to form a distributed 16-bit register. When a data transfer operation is performed, this 16-bit register is serially shifted eight bit positions by the S-clock from the master, so data is exchanged between the master and the slave. Data written to the master SPI Data Register becomes the output data for the slave, and data read from the master SPI Data Register after a transfer operation is the input data from the slave. A read of SPISR with SPTEF=1 followed by a write to SPIDR puts data into the transmit data register. When a transfer is complete, received data is moved into the receive data register. Data may be read from this double-buffered system any time before the next transfer has completed. This 8-bit data register acts as the SPI receive data register for reads and as the SPI transmit data register for writes. A single SPI register address is used for reading data from the read data buffer and for writing data to the transmit data register. The clock phase control bit (CPHA) and a clock polarity control bit (CPOL) in the SPI Control Register 1 (SPICR1) select one of four possible clock formats to be used by the SPI system. The CPOL bit simply selects a non-inverted or inverted clock. The CPHA bit is used to accommodate two fundamentally different protocols by sampling data on odd numbered SCK edges or on even numbered SCK edges (see 4.4 Transmission Formats). The SPI can be configured to operate as a master or as a slave. When the MSTR bit in SPI Control Register1 is set, master mode is selected, when the MSTR bit is clear, slave mode is selected. 4.2 Master Mode The SPI operates in master mode when the MSTR bit is set. Only a master SPI module can initiate transmissions. A transmission begins by writing to the master SPI Data Register. If the shift register is empty, the byte immediately transfers to the shift register. The byte begins shifting out on the MOSI pin under the control of the serial clock. S-clock 23 SPI Block Guide V03.06 The SPR2, SPR1, and SPR0 baud rate selection bits in conjunction with the SPPR2, SPPR1, and SPPR0 baud rate preselection bits in the SPI Baud Rate register control the baud rate generator and determine the speed of the transmission. The SCK pin is the SPI clock output. Through the SCK pin, the baud rate generator of the master controls the shift register of the slave peripheral. MOSI, MISO pin In master mode, the function of the serial data output pin (MOSI) and the serial data input pin (MISO) is determined by the SPC0 and BIDIROE control bits. SS pin If MODFEN and SSOE bit are set, the SS pin is configured as slave select output. The SS output becomes low during each transmission and is high when the SPI is in idle state. If MODFEN is set and SSOE is cleared, the SS pin is configured as input for detecting mode fault error. If the SS input becomes low this indicates a mode fault error where another master tries to drive the MOSI and SCK lines. In this case, the SPI immediately switches to slave mode, by clearing the MSTR bit and also disables the slave output buffer MISO (or SISO in bidirectional mode). So the result is that all outputs are disabled and SCK, MOSI and MISO are inputs. If a transmission is in progress when the mode fault occurs, the transmission is aborted and the SPI is forced into idle state. This mode fault error also sets the mode fault (MODF) flag in the SPI Status Register (SPISR). If the SPI interrupt enable bit (SPIE) is set when the MODF flag gets set, then an SPI interrupt sequence is also requested. When a write to the SPI Data Register in the master occurs, there is a half SCK-cycle delay. After the delay, SCK is started within the master. The rest of the transfer operation differs slightly, depending on the clock format specified by the SPI clock phase bit, CPHA, in SPI Control Register 1 (see 4.4 Transmission Formats). NOTE: A change of the bits CPOL, CPHA, SSOE, LSBFE, MODFEN, SPC0, BIDIROE with SPC0 set, SPPR2-SPPR0 and SPR2-SPR0 in master mode will abort a transmission in progress and force the SPI into idle state. The remote slave cannot detect this, therefore the master has to ensure that the remote slave is set back to idle state. 4.3 Slave Mode The SPI operates in slave mode when the MSTR bit in SPI Control Register1 is clear. SCK clock In slave mode, SCK is the SPI clock input from the master. MISO, MOSI pin In slave mode, the function of the serial data output pin (MISO) and serial data input pin (MOSI) is determined by the SPC0 bit and BIDIROE bit in SPI Control Register 2. SS pin 24 SPI Block Guide V03.06 The SS pin is the slave select input. Before a data transmission occurs, the SS pin of the slave SPI must be low. SS must remain low until the transmission is complete. If SS goes high, the SPI is forced into idle state. The SS input also controls the serial data output pin, if SS is high (not selected), the serial data output pin is high impedance, and, if SS is low the first bit in the SPI Data Register is driven out of the serial data output pin. Also, if the slave is not selected (SS is high), then the SCK input is ignored and no internal shifting of the SPI shift register takes place. Although the SPI is capable of duplex operation, some SPI peripherals are capable of only receiving SPI data in a slave mode. For these simpler devices, there is no serial data out pin. NOTE: When peripherals with duplex capability are used, take care not to simultaneously enable two receivers whose serial outputs drive the same system slaves serial data output line. As long as no more than one slave device drives the system slaves serial data output line, it is possible for several slaves to receive the same transmission from a master, although the master would not receive return information from all of the receiving slaves. If the CPHA bit in SPI Control Register 1 is clear, odd numbered edges on the SCK input cause the data at the serial data input pin to be latched. Even numbered edges cause the value previously latched from the serial data input pin to shift into the LSB or MSB of the SPI shift register, depending on the LSBFE bit. If the CPHA bit is set, even numbered edges on the SCK input cause the data at the serial data input pin to be latched. Odd numbered edges cause the value previously latched from the serial data input pin to shift into the LSB or MSB of the SPI shift register, depending on the LSBFE bit. When CPHA is set, the first edge is used to get the first data bit onto the serial data output pin. When CPHA is clear and the SS input is low (slave selected), the first bit of the SPI data is driven out of the serial data output pin. After the eighth shift, the transfer is considered complete and the received data is transferred into the SPI Data Register. To indicate transfer is complete, the SPIF flag in the SPI Status Register is set. NOTE: A change of the bits CPOL, CPHA, SSOE, LSBFE, MODFEN, SPC0 and BIDIROE with SPC0 set in slave mode will corrupt a transmission in progress and has to be avoided. 4.4 Transmission Formats During an SPI transmission, data is transmitted (shifted out serially) and received (shifted in serially) simultaneously. The serial clock (SCK) synchronizes shifting and sampling of the information on the two serial data lines. A slave select line allows selection of an individual slave SPI device, slave devices that are not selected do not interfere with SPI bus activities. Optionally, on a master SPI device, the slave select line can be used to indicate multiple-master bus contention. 25 SPI Block Guide V03.06 MASTER SPI MISO MOSI SCK BAUD RATE GENERATOR SS MISO MOSI SCK SS SLAVE SPI SHIFT REGISTER SHIFT REGISTER VDD Figure 4-1 Master/Slave Transfer Block Diagram 4.4.1 Clock Phase and Polarity Controls Using two bits in the SPI Control Register1, software selects one of four combinations of serial clock phase and polarity. The CPOL clock polarity control bit specifies an active high or low clock and has no significant effect on the transmission format. The CPHA clock phase control bit selects one of two fundamentally different transmission formats. Clock phase and polarity should be identical for the master SPI device and the communicating slave device. In some cases, the phase and polarity are changed between transmissions to allow a master device to communicate with peripheral slaves having different requirements. 4.4.2 CPHA = 0 Transfer Format The first edge on the SCK line is used to clock the first data bit of the slave into the master and the first data bit of the master into the slave. In some peripherals, the first bit of the slaves data is available at the slaves data out pin as soon as the slave is selected. In this format, the first SCK edge is issued a half cycle after SS has become low. A half SCK cycle later, the second edge appears on the SCK line. When this second edge occurs, the value previously latched from the serial data input pin is shifted into the LSB or MSB of the shift register, depending on LSBFE bit. After this second edge, the next bit of the SPI master data is transmitted out of the serial data output pin of the master to the serial input pin on the slave. This process continues for a total of 16 edges on the SCK line, with data being latched on odd numbered edges and shifted on even numbered edges. Data reception is double buffered. Data is shifted serially into the SPI shift register during the transfer and is transferred to the parallel SPI Data Register after the last bit is shifted in. After the 16th (last) SCK edge: 26 SPI Block Guide V03.06 Data that was previously in the master SPI Data Register should now be in the slave data register and the data that was in the slave data register should be in the master. The SPIF flag in the SPI Status Register is set indicating that the transfer is complete. Figure 4-2 is a timing diagram of an SPI transfer where CPHA = 0. SCK waveforms are shown for CPOL = 0 and CPOL = 1. The diagram may be interpreted as a master or slave timing diagram since the SCK, MISO, and MOSI pins are connected directly between the master and the slave. The MISO signal is the output from the slave and the MOSI signal is the output from the master. The SS pin of the master must be either high or reconfigured as a general-purpose output not affecting the SPI. End of Idle State SCK Edge Nr. SCK (CPOL = 0) SCK (CPOL = 1) 1 2 Begin of Idle State 15 16 Begin 3 4 5 6 Transfer 7 8 9 10 11 12 End 13 14 CHANGE O MOSI pin CHANGE O MISO pin SEL SS (O) Master only SEL SS (I) tL tT Bit 1 Bit 6 tI tL MSB rst (LSBFE = 0): MSB Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 LSB rst (LSBFE = 1): LSB Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 tL = Minimum leading time before the rst SCK edge tT = Minimum trailing time after the last SCK edge tI = Minimum idling time between transfers (minimum SS high time) tL, tT, and tI are guaranteed for the master mode and required for the slave mode. LSB Minimum 1/2 SCK for tT, tl, tL MSB Figure 4-2 SPI Clock Format 0 (CPHA = 0) In slave mode, if the SS line is not deasserted between the successive transmissions then the content of the SPI Data Register is not transmitted, instead the last received byte is transmitted. If the SS line is deasserted for at least minimum idle time ( half SCK cycle) between successive transmissions then the content of the SPI Data Register is transmitted. In master mode, with slave select output enabled the SS line is always deasserted and reasserted between successive transfers for at least minimum idle time. If next transfer begins here SAMPLE I MOSI/MISO 27 SPI Block Guide V03.06 4.4.3 CPHA = 1 Transfer Format Some peripherals require the first SCK edge before the first data bit becomes available at the data out pin, the second edge clocks data into the system. In this format, the first SCK edge is issued by setting the CPHA bit at the beginning of the 8-cycle transfer operation. The first edge of SCK occurs immediately after the half SCK clock cycle synchronization delay. This first edge commands the slave to transfer its first data bit to the serial data input pin of the master. A half SCK cycle later, the second edge appears on the SCK pin. This is the latching edge for both the master and slave. When the third edge occurs, the value previously latched from the serial data input pin is shifted into the LSB or MSB of the SPI shift register, depending on LSBFE bit. After this edge, the next bit of the master data is coupled out of the serial data output pin of the master to the serial input pin on the slave. This process continues for a total of 16 edges on the SCK line with data being latched on even numbered edges and shifting taking place on odd numbered edges. Data reception is double buffered, data is serially shifted into the SPI shift register during the transfer and is transferred to the parallel SPI Data Register after the last bit is shifted in. After the 16th SCK edge: Data that was previously in the SPI Data Register of the master is now in the data register of the slave, and data that was in the data register of the slave is in the master. The SPIF flag bit in SPISR is set indicating that the transfer is complete. Figure 4-3 shows two clocking variations for CPHA = 1. The diagram may be interpreted as a master or slave timing diagram since the SCK, MISO, and MOSI pins are connected directly between the master and the slave. The MISO signal is the output from the slave, and the MOSI signal is the output from the master. The SS line is the slave select input to the slave. The SS pin of the master must be either high or reconfigured as a general-purpose output not affecting the SPI. 28 SPI Block Guide V03.06 End of Idle State SCK Edge Nr. SCK (CPOL = 0) SCK (CPOL = 1) 1 2 3 Begin 4 5 6 7 Transfer 8 9 10 11 12 End 13 14 15 16 Begin of Idle State CHANGE O MOSI pin CHANGE O MISO pin SEL SS (O) Master only SEL SS (I) tL tT MSB LSB Bit 6 Bit 1 Bit 5 Bit 2 Bit 4 Bit 3 Bit 3 Bit 4 Bit 2 Bit 5 Bit 1 Bit 6 tI tL MSB rst (LSBFE = 0): LSB rst (LSBFE = 1): LSB Minimum 1/2 SCK for tT, tl, tL MSB tL = Minimum leading time before the rst SCK edge, not required for back to back transfers tT = Minimum trailing time after the last SCK edge tI = Minimum idling time between transfers (minimum SS high time), not required for back to back transfers Figure 4-3 SPI Clock Format 1 (CPHA = 1) The SS line can remain active low between successive transfers (can be tied low at all times). This format is sometimes preferred in systems having a single fixed master and a single slave that drive the MISO data line. Back to Back transfers in master mode In master mode, if a transmission has completed and a new data byte is available in the SPI Data Register, this byte is send out immediately without a trailing and minimum idle time. The SPI interrupt request flag (SPIF) is common to both the master and slave modes. SPIF gets set one half SCK cycle after the last SCK edge. 4.5 SPI Baud Rate Generation Baud rate generation consists of a series of divider stages. Six bits in the SPI Baud Rate register (SPPR2, SPPR1, SPPR0, SPR...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UCSD - VLSICAD - 110
Can Recursive Bisection Alone Produce Routable Placements?Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov UCLA Computer Science Dept., Los Angeles, CA 90095-1596 fcaldwell,abk,imarkovg@cs.ucla.eduAbstract This work focuses on congestion-d
New Mexico - CS - 534
SAN FRANCISCO JULY 22-26Volume 19, Number 3, 1985An I m a g e S y n t h e s i z e rKen PerlinCourant Institute of Mathematical Sciences New York UniversityAbstractWe introduce the concept of a Pixel Stream Editor. This forms the basis for a
New Mexico - CS - 530
The 2D Fourier Transform The analysis and synthesis formulas for the 2D continuous Fourier transform are as follows: Analysis F(u, v) = Synthesis f (x, y) =Z Z Zf (x, y)e j2(ux+vy)dx dy ZF(u, v)e j2(ux+vy)du dvSeparability of 2
Clemson - BUSINESS - 072408
Skip to page navigation|Skip navigation|Acrobat Reader|Flash Player|Text Version A-Z Index Calendar Map Webcams Phonebook Search: http:/www.clemson.edu/Page Not Found!Requesting page: /404Error.phpThe Web page you have requested is not cur
Clemson - BUSINESS - 0708
Skip to page navigation|Skip navigation|Acrobat Reader|Flash Player|Text Version A-Z Index Calendar Map Webcams Phonebook Search: http:/www.clemson.edu/Page Not Found!Requesting page: /404Error.phpThe Web page you have requested is not cur
Clemson - BUSINESS - 0708
Skip to page navigation|Skip navigation|Acrobat Reader|Flash Player|Text Version A-Z Index Calendar Map Webcams Phonebook Search: http:/www.clemson.edu/Page Not Found!Requesting page: /404Error.phpThe Web page you have requested is not cur
Clemson - THRD - 310
Skip to page navigation|Skip navigation|Acrobat Reader|Flash Player|Text Version A-Z Index Calendar Map Webcams Phonebook Search: http:/www.clemson.edu/Page Not Found!Requesting page: /404Error.phpThe Web page you have requested is not cur
Clemson - THRD - 310
Skip to page navigation|Skip navigation|Acrobat Reader|Flash Player|Text Version A-Z Index Calendar Map Webcams Phonebook Search: http:/www.clemson.edu/Page Not Found!Requesting page: /404Error.phpThe Web page you have requested is not cur
Clemson - ECE - 327
2608 Sweetgum Drive Apex NC 27502 Toll-free: 800-549-9377 International: 919-387-0076 FAX: 919-387-1302XSTOOLs V4.0 User ManualGUI-Based and Command Line-Based XS Board UtilitiesRELEASE DATE: 10/29/2001Copyright 1997-2001 by X Engineering Soft
Loyola Chicago - C - 101
CHEM 101 1.HOUR EXAM IV17-NOV-95Write your answer to each of the following comparisons or calculations: A. smaller atom at.no. 13 at.no. 14OB. formal charge of sulfur in the compound:CH3 OS OOHC. D.more electronegative larger anion
Loyola Chicago - C - 101
CHEM 101FINAL EXAM8-DEC-95DIRECTIONS: This exam consists of 18 problems and two blue books. Print your name both covers, and show work for problems 1 -10 in blue book # 1, on the corresponding blue book pages. show work for problems 11 -18 in b
Loyola Chicago - C - 101
CHEM 101 1.HOUR EXAM 3October 29, 1996A mixture of gases is prepared by adding fluorine to neon until 3/8 of the total mass is due to fluorine. At this point the pressure of the mixture is 0.8291 atm. What is the partial pressure of the neon?
Loyola Chicago - C - 101
CHEM 101 1.HOUR EXAM 4November 19, 1996Construct Lewis dot diagrams for each of the following: a. NCl3 b. XeO42-2.Lewis dot diagrams for oxy-acids can be represented in two ways, (A) with, and (B) without, oxygen double bonded to the centra
Loyola Chicago - C - 101
CHEM 101FINAL EXAM6-DEC-96This exam consists of eighteen (18) problems on three (3) pages, plus two bluebooks. Work problems 1 through 10 in the first blue book, and 11 through 18 in the second. 1. The solubility of potassium bromide, KBr, is 5
Loyola Chicago - C - 101
CHEM 101HOUR EXAM IVNovember 18, 19971.A.Write the complete electronic configuration for an atom having 62 protons. (For full credit you must show the configuration in the same form as the periodic table - just like we do in class.) Write t
Loyola Chicago - C - 101
CHEM 101FINAL EXAM5-DEC-97Directions: Use Blue Book # 1 for problem 1 - 10, and Blue Book #2 for 11-18. specific heat of water as: solid = 2.03 values for gas constant R: Plancks constant liquid = 4.18 gas = 2.02 J/g-deg 8.31 J/K-mol 3.0E+8 m/s
Loyola Chicago - C - 101
CHEM 101HOUR EXAM II13-OCT-98Directions: show all work for each question only on its corresponding numbered blue book page.1.Write a balanced net ionic equation for each reaction or process shown: a. b. c. dissolving solid copper(II) nitrat
Loyola Chicago - C - 101
CHEM 101 1.HOUR EXAM III3-NOV-98The density of a sample gas at some temperature and pressure is 0.853 g/L. a. At the same temperature and pressure, what volume of a different gas having a density of 1.015 g/L will contain 4/5 as many molecules
Loyola Chicago - C - 101
CHEM 101 1.HOUR EXAM IV24-NOV-98Write the full electronic configuration (as shown in class) for each of the following: a. N (at.no. 7) b. Ni (at.no. 28) c. Nd (at.no. 60)2.Construct Lewis dot diagrams for each of the following (central atom
Mt. Aloysius - COMP - 1711
The Profession of ITPeter J. DenningThe Field of Programmers MythThe persistent public image of computing as a field of programmers has become a costly myth. Reversing it is possible but not easy.Are you concerned with the widely held public
Mt. Aloysius - COMP - 1711
COMPUTER SCIENCE: THE DISCIPLINEPeter J. Denning August 1997 Revised July 1999 Copyright 1999 by Peter J. Denning. You may make one exact copy for personal use. Any other copying or distribution requires explicit permission. This article will appea
Mt. Aloysius - MATH - 3231
boneh.qxp12/7/98 11:40 AMPage 203Twenty Years of Attacks on the RSA CryptosystemDan BonehIntroductionThe RSA cryptosystem, invented by Ron Rivest, Adi Shamir, and Len Adleman [18], was first publicized in the August 1977 issue of Scientific
Mt. Aloysius - MATH - 2111
Math 2111 Assignment 6 (2003)CorrectionEach exercise is worth 10 points except the first exercise which is worth 30 points (Total is 70). 1. Explain why the the function is differentiable at the given point. Then find the linearisation L(x, y) of t
Mt. Aloysius - MATH - 2111
Math 2111 Assignment 7 (2003)CorrectionEach exercise is worth 10 points. 1. Find the maximum rate of change of f (x, y) = ln(x2 + y 2 ) at (1, 2) and the direction in which it occurs. 2 4 2y 2x ln(x2 + y 2 ) = , , at (1, 2). The unit = 2 + y 2 x2
Mt. Aloysius - MATH - 2111
Math 2111 Assignment 1 (2005)Solution1. Determine whether the following sequences converge or diverge. If they converge, nd the limit. (a) an = n2 + 1 3n2 + 12x We have an = f (n), where f (x) = 3x2+1 . Since limx+ f (x) = +1 1/3, we have that l
Mt. Aloysius - MATH - 2111
Math 2111 Assignment 3 (2005)Solution1. Study the convergence of the following series (conditionally convergent, absolutely convergent or divergent). For each series, clearly state which test you are using.(a)n=1(1)nn2n3+1 +1x2 + 1
Mt. Aloysius - MATH - 2111
Math 2111 Assignment 5 (2005)Solution 1. Explain why the function f (x, y) = 3x2 + ey is dierentiable at (1, 0). Then nd the linearization L(x, y) of f at (1, 0) and write an equation of the tangent plane. ey 3x and fy (x, y) = we have that fx 3x2
Mt. Aloysius - MATH - 2111
Math 2111 Midterm Test #215 November 2005 Student Number Total marks: 42 Name Duration of Test: 1 hour (11:3012:30pm)You are not allowed to use any book or notes. You may use a non-graphing calculator. 1. [6] Find and sketch the domain of f (x, y
Clemson - UNIT - 108
Loyola Chicago - C - 105
Born-Haber Cycle for:NaClBorn-Haber Cycle for:NaClNa(o ) solid+ Cl2 ( gas )NaCl( solid )Born-Haber Cycle for:NaClNa(o ) gasNa(o ) solid+ Cl2 ( gas )NaCl( solid )Born-Haber Cycle for:NaClNa(o ) gasCl( o ) gasN
Loyola Chicago - C - 105
Born-Haber Cycle for:CaF2Born-Haber Cycle for:CaF2Ca( o ) solid+F2 ( gas)CaF2 (solid )Born-Haber Cycle for:CaF2Ca(o ) gasCa( o ) solid+F2 ( gas)CaF2 (solid )Born-Haber Cycle for:CaF2Ca(o ) gas2F( o ) gasCa( o
UMass (Amherst) - ECE - 353
Instruction Set NomenclatureStatus Register (SREG)SREG: C: Z: N: V: S: H: T: I: Status Register Carry Flag Zero Flag Negative Flag Twos complement overflow indicator N V, For signed tests Half Carry Flag Transfer bit used by BLD and BST instructio
UMass (Amherst) - ECE - 353
Nonblocking Assignments in Verilog Synthesis, Coding Styles That Kill!SNUG-2000 San Jose, CA Voted Best Paper 1st PlaceClifford E. CummingsSunburst Design, Inc.ABSTRACT One of the most misunderstood constructs in the Verilog language is the no
CSU Northridge - COMP - 182
COMP 182 Fall 2008 Midterm #1 Five problems, 15 minutes each, 20 points each Closed book, one page notes allowed Problem 1 Part A Indicate the time complexity for the following operations or methods. In each case, let n represent the size of the prob
CSU Northridge - COMP - 182
COMP 182 Fall 2008 Midterm #1 Solutions Five problems, 15 minutes each, 20 points each Scoring Results120 100 80 60 40 20 0 0 10 20 30 Series1Number of Exams = 27 Mean = 70 Median = 73 Range 90-100 80-89 70-79 60-69 50-59 40-49 <40 Count 2 7 7 6
CSU Northridge - COMP - 516
Chapter 12Computer OrganizationCentral Processing Unit (CPU) Data section Receives data from and sends data to the main memory subsystem and I/O devices Control section Issues the control signals to the data section and the other components
Penn State - DHM - 125
Dylan McShain 395A Electronic Portfolio Assignment I was very skeptical of what would happen when I immersed myself within the world of middle school physical education as an up and coming student teacher at Penn State University. While it wasn't my
Mich Tech - EE - 5223
Maryville MO - PT - 415
Maryville MO - PT - 415
VESTIBULAR SYSTEM TREATMENT SUGGESTIONS* General body responses leading to relaxation 1. Slow rocking 2. Slow anterior-posterior: horizontal or vertical movement (chair, hassock, mesh net, swing, ball bolster, carriage) 3. Rocking bed or chair 4. Slo
Maryville MO - PT - 415
EXERCISES TO IMPROVE POSTURAL STABILITY 1. Practice walking turning head from one side to the other 10 minutes, 3 times a day 2. Practice marching in place eyes open, eyes closed 50 steps 3. Step Ups on a small step move arms up and down as you step
Maryville MO - PT - 415
UCSD - CSE - 190
Announcements Homework 3 due today Typo: Part V, first line - 'Write up a page or two description of how you implemented the algorithm in Part II.' It should be part III.Optical FlowComputer Vision CSE 190-B Lecture 17Computer Vision Thursday
Washington - AIS - 370
Washington - HST - 498
PROSTITUTION~ -deserted it. The London Penitentiary was somewhat more successful, but it trained women only in laundry, needlework, and domestic skills, thus channeling them into the low-paying female occupations that fe~ the supply of prostitutes
Washington - HST - 388
WESTERN TRAVELERS, EASTERN ANTIQUITIES, AND THE IMAGE OF THE TURK IN EARLY MODERN EUROPEAMANDA WUNDERUniversity of Wisconsin-MadisonAbstractEducated elite Europeans who visited Constantinople on diplomatic, scholarly, and commercial enterprises
Washington - HIST - 498
Washington - HIST - 388
Washington - HIST - 388
Washington - HIST - 388
Uni. Westminster - EMP - 0401
Part1DietaryGoals,DietDataCollectionandAnalysis Part1A:Introduction,OverviewandInstructionsDiligenceisthemotherofgoodluck BenjaminFranklinNURS210DietaryAnalysisProject2004Introduction to Part 1 Part 1 of the 2004 Dietary Analysis project is desi
Uni. Westminster - EMP - 0401
NURS 210 Dietary Analysis Project 2004Part 1 DStudent_ Section_ Date_ (Type your information in the underlined area)STEP 5 Evaluation of the ProcessCritically analyze your Personal Profile and the process of collecting and entering data by an
Washington University in St. Louis - CIS - 677
Instructions for Local Viewing of Audio/Video RecordingsYou need the latest version of RealPlayer G2 to use the audio/videorecordings. This player is available free fromhttp:/www.real.com/products/player/index.html Free version issufficient, pl
Allan Hancock College - CS - 2111
Summary of Event-B Proof ObligationsJean-Raymond Abrial (ETHZ)March 2008Purpose of this Presentation1- Prerequisite: (1) Summary of Mathematical Notation (a quick review) (2) Summary of Event-B Notation Examples developed in (2) will be used
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506
Paul Smith's College - SHARE - 111506