Pages: [1]   Go Down
Author Topic: Arduino Pro Mini SPI clock speed problem  (Read 1181 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have one arduino mini and one SOMO-14D Embedded Audio-Sound Module. I have to communicate with sound module by using SPI but sound module accepts 5kHz maximum clock frequency. I did not find any solution to change SCK frequency to 5kHz in arduino pro mini. Can anyone help me???
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That module is not SPI.  You need to bit-bang the clk and data leads yourself perhaps?
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

are u sure that module has not SPI because using in the serial mode talks like SPI
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does it have SCK/MISO/MOSI/SS lines that obey the SPI protocol and clock at MHz rates?  No, then its not really SPI compatible...
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 481
Posts: 18742
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Normal SPI doesn't hold CLK low for 2 mS before sending data. I doubt you can convince the hardware to do that. As MarkT says, a bit of bit-banging should do it.
Logged


Pages: [1]   Go Up
Jump to: