SPI question
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
SPI question
hi everyone, i was wondering if it was possible to have an spi interface with a 30MHz SCLK? I will be using thist to controll TLC5940's by texas instruments @ 30MHz
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
30MHz should be possible.. I've been there i believe.
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
great to know! thanks! But how can you acheive this?...Bianco wrote:30MHz should be possible.. I've been there i believe.
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
Using buffered ports would be recommended.
You problably also want to take a look at the XMOS SPI module
http://www.xmos.com/applications/module/spi?ver=all
You problably also want to take a look at the XMOS SPI module
http://www.xmos.com/applications/module/spi?ver=all
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
thank you but i am already using the SPI module but i cant figure out the divider value to make it 30MHz...Bianco wrote:Using buffered ports would be recommended.
You problably also want to take a look at the XMOS SPI module
http://www.xmos.com/applications/module/spi?ver=all
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
Well i finaly got it... it was all in the .xn file...
ReferenceFrequency 120MHz
and a divider of 2 (120MHz (ref clock) / (2 x 2 (divider))) = 30MHz
ReferenceFrequency 120MHz
and a divider of 2 (120MHz (ref clock) / (2 x 2 (divider))) = 30MHz