| Welcome to AT91SAM Community Forum http://www.at91.com/samphpbb/ |
|
| Peripheral Clock http://www.at91.com/samphpbb/viewtopic.php?f=12&t=19062 |
Page 1 of 1 |
| Author: | federicololli [ Mon Mar 15, 2010 6:52 pm ] |
| Post subject: | Peripheral Clock |
You can set the Peripheral Clock with a divider? I would decrease the speed of the SPI bus under Mhz but with the log SCBR I can get only up to 1 MHz. |
|
| Author: | m-i-k-e.rm [ Wed Mar 17, 2010 4:38 pm ] |
| Post subject: | Re: Peripheral Clock |
If your are using the spidev driver you can set the SPI CLK in the spidev_test.c program. ******************************* * spidev_test.c ******************************* static uint8_t bits = 8; static uint32_t speed = 500000; // 500 kHz static uint16_t delay; ******************************* Michael |
|
| Author: | federicololli [ Thu Mar 18, 2010 4:57 pm ] |
| Post subject: | Re: Peripheral Clock |
I need the prescaler, if seven to 500kHz the device returns an error of spi MAIN-CLK is 400mhz then 400/255-> 1MHz for the SPI device. but in theory it would be possible to use a custom clk? |
|
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|



Forum