Download presentation
Presentation is loading. Please wait.
1
iTASK Final Presentation May 3, 2007 EE 296 Kazuki Morishita Archimedes
2
Goal ► SPI communication - observe transmit signals between master and slave. - observe transmit signals between master and slave. - make sure that they receive transmit signals. - make sure that they receive transmit signals. Archimedes
3
Hardware design Concentration is only on getting the ARM processors to communicate with each other using SPI. Archimedes
4
Hardware design (cont.) Hardware design (cont.) SPI pins Output pins Archimedes
5
Software design Yes No Archimedes
6
Software design (cont.) For this project, SCK’s period = about 25 us. With uVision compiler, CCLK = 19.6608 Meg * MSEL( =1). CCLK = 19.6608 Meg * MSEL( =1). PCLK rate = 20 Meg / VPBDIV( = 2). Thus SCK frequency = about 10 Meg/SPCCR ( = 254) ---> SCK period = about 25 us. PCLK rate = 20 Meg / VPBDIV( = 2). Thus SCK frequency = about 10 Meg/SPCCR ( = 254) ---> SCK period = about 25 us. Archimedes
7
Software design (cont.) Codes Master Slave Master Slave Archimedes
9
Signals on MOSI, MISO, SCK Archimedes S0SPDR = 0x16 SCK MOSI S0SPDR = 0x01 MISO 10110 1?
10
Problems ► MISO signal was small (< 25 us). ► Led did not flash as expected. ► Sometimes signal on MISO was inverted. ► Debugging was not easy. ---> IOSET1 = ‘1’ and check if the port is high. ---> IOSET1 = ‘1’ and check if the port is high. Archimedes
11
Improvements and Suggestions ► Read the user manual for LPC2119 well. ► No need to connect to a slave physically. ► Interrupt driven SPI ► Multiple slaves or/and masters Archimedes
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.