25.12.2013 Aufrufe

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

Gecko3 - CCC Event Weblog

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

E.1. Firmware<br />

}<br />

}<br />

// w r i t e s a 256 b y t e l o n g array to t h e a d r e s s e d page<br />

113 void pageProgram ( long adress , byte ∗ c o n t e n t a r r a y ) {<br />

int i =0;<br />

writeEnable ( ) ;<br />

S P I s e l e c t D e v i c e (M25P16) ;<br />

SPIwriteByte (PP) ;<br />

118 sendAdress ( a d r e s s ) ;<br />

for ( i =0; i > 1 6 ;<br />

SPIwriteByte ( sendByte ) ;<br />

sendByte = ( a d r e s s & 0x0000FF00 ) >> 8 ;<br />

153 SPIwriteByte ( sendByte ) ;<br />

sendByte = a d r e s s & 0x000000FF ;<br />

SPIwriteByte ( sendByte ) ;<br />

}<br />

E.1.7. SPI Kommunikation<br />

/∗ ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗<br />

2 ∗ Diplomwork :<br />

∗ <strong>Gecko3</strong> SoC HW/SW Development Board<br />

∗<br />

∗ ( ‘ \ ( ) ( ) ( )<br />

∗ | ( ) ) | ( | | | | Berne U n i v e r s i t y o f Applied S c i e n c e s<br />

7 ∗ | < ’| ) | | School o f Engineering and<br />

∗ | ( ) ) | | | | | | Information Technology<br />

∗ ( / ’( ) ( ) ( )<br />

∗<br />

∗<br />

12 ∗ Author : Christoph Zimmermann<br />

∗ Date o f c r e a t i o n : 30.10.2006<br />

Project Report 83

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!