Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:c2_dotmatrix [2016/03/14 15:01] ck.kim [Compile & run SPI test example source code] |
en:c2_dotmatrix [2016/03/14 15:14] ck.kim [How to use SPI on ODROID-C2] |
||
---|---|---|---|
Line 5: | Line 5: | ||
<WRAP left round important 100%> | <WRAP left round important 100%> | ||
Since the C2 doesn't support Hardware SPI. This Example is using the GPIO-based bitbanging SPI Master.\\ | Since the C2 doesn't support Hardware SPI. This Example is using the GPIO-based bitbanging SPI Master.\\ | ||
- | In this case, the maximum clock is about 350KHz. | + | In this case, the maximum clock is about 390KHz. |
</WRAP>\\ | </WRAP>\\ | ||
Line 39: | Line 39: | ||
max speed: 500000 Hz (500 KHz) | max speed: 500000 Hz (500 KHz) | ||
</code> | </code> | ||
+ | |||
+ | <WRAP left round important 100%> | ||
+ | Set to 500 KHz, but it is actually operating at 390KHz. | ||
+ | </WRAP>\\ | ||
<file c dot_test.c> | <file c dot_test.c> | ||
Line 204: | Line 208: | ||
<code> | <code> | ||
- | $ gcc -o dot_shift_test dot_shift_test.c | + | odroid@odroid64:~$ gcc -o dot_shift_test dot_shift_test.c |
</code> | </code> | ||
<code> | <code> | ||
- | odroid@odroid:~$ sudo ./dot_shift_test | + | odroid@odroid64:~$ sudo ./dot_shift_test |
max speed: 1000000 Hz (1000 KHz) | max speed: 1000000 Hz (1000 KHz) | ||
</code> | </code> |