Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAX11131BOB_Tester MAX11131BOB_12bit_16ch_SampleSet_SPI_ADC MAX11131BOB_Serial_Tester
Diff: MAX11131.cpp
- Revision:
- 3:621191a7e3fd
- Parent:
- 2:50a0cf017492
- Child:
- 4:8a0ae95546fa
diff -r 50a0cf017492 -r 621191a7e3fd MAX11131.cpp
--- a/MAX11131.cpp Wed Jun 19 22:45:51 2019 +0000
+++ b/MAX11131.cpp Fri Aug 02 23:27:03 2019 +0000
@@ -129,10 +129,17 @@
//#define SPI_SCLK_Hz 48000000 // 48MHz
//#define SPI_SCLK_Hz 24000000 // 24MHz
//#define SPI_SCLK_Hz 12000000 // 12MHz
+ //#define SPI_SCLK_Hz 6000000 // 6MHz
//#define SPI_SCLK_Hz 4000000 // 4MHz
//#define SPI_SCLK_Hz 2000000 // 2MHz
//#define SPI_SCLK_Hz 1000000 // 1MHz
+#if defined(TARGET_MAX32600)
+ // MAX11131BOB_Serial_Tester on MAX32600MBED limit SCLK=6MHz
+ m_SPI_SCLK_Hz = 6000000; // 6MHz; MAX11131 limit is 48MHz
+#else
+ // all other platforms
m_SPI_SCLK_Hz = 12000000; // 12MHz; MAX11131 limit is 48MHz
+#endif
m_spi.frequency(m_SPI_SCLK_Hz);
// TODO1: CODE GENERATOR: class constructor definition gpio InputPin (Input to device) initialization
MAX11131BOB