lecture16 - FoundationsofEmbeddedSystems ATermFall2008

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Foundations of Embedded Systems A Term Fall 2008 Reading for Today: User's Manual Ch 15 and External Temp Sensor Reading for Next Class:  Review All since Exam 1 HW #4 (on web):                   Due Monday 9/29/08 Lab #2 (on web): Due Tuesday 9/30/2008 (in class) Exam #2 – Tuesday 9/30/08   Last Class :   >> Serial vs. Parallel interfaces >> USART are parallel-to-serial and serial-to-parallel converters >> Asynchronous UART mode  Serial Peripheral Interface Bus (SPI)    >> Used primarily for synchronous serial comms between a CPU and peripherals           “within the box” = off-chip but on same PCB    >> SPI sends or receives data Most Significant Bit (MSB) first!!     -->  Synchronous = shared clock (supplied by master) = High transfer speeds (~Mbps)   >> 3-4 wire connection       SIMO = Slave In/Master Out data line       SCLK = Serial Clock  (UCLK in MSP430                                   USART)      SOMI = Slave Out/Master In data line       CS = Chip Select 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
>>  To use SPI the programmer must. .. 1) Enable USART for SPI mode  Including SELecting SPI data pins and SCLK pin for Function mode (= 1) 2) Select data format  3) Setup synchronous clock  void setupSPI(void) {   ME1 |= USPIE0;       // Enable USART0 SPI mode   U0CTL &= ~SWRST;     // Make sure SW RESET bit is off
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/27/2008 for the course ECE 2801 taught by Professor Jarvis during the Fall '08 term at WPI.

Page1 / 8

lecture16 - FoundationsofEmbeddedSystems ATermFall2008

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online