This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 7. c-b-a-f-h-g-f-g 8. UCB0CTL1 = UCSSEL_2 + UCSWRST; //SMCLK, reset registers UCB0CTL0 = UCCKPH + //data changed on falling d edge, captured on rising edge UCCKPL + //the inactive state is high UCMSB + //MSB first UCMST+ //Master mode UCMODE_0 + //3-Pin SPI UCSYNC //Synchronous UCB0BR0 =16; UCB0BR1=0; //Together gives a prescaler of 16 P3SEL |=0x0A; //Select P3.1 and 3.3 as SIMO and CLK P3DIR |=0x01; //Select P3.0 as GPIO for FS UCB0CTL1 &= ~UCSWRST; //Disable reset IFG2 &= ~UCB0TXIFG; //Clear Flag IE2 |= UCB0TXIE; //Enable ISR 9. The Nyquist frequency of a 10 kHz signal is 5 kHz...
View Full Document
- Fall '08