よくある質問
- M051 ベースシリーズ(95)
- M0518シリーズ(97)
- M0519シリーズ(43)
- M0564 シリーズ(1)
- ミニ 51 ベースシリーズ(90)
- ナノ 100/102 ベースシリーズ(101)
- Nano103 ベースシリーズ(10)
- ナノ 110/112 LCD シリーズ(100)
- ナノ 120 USB シリーズ(111)
- ナノ 130 アドバンストシリーズ(110)
- NUC029 シリーズ(94)
- NUC100/200 アドバンストシリーズ(102)
- NUC120/122/123/220 USB シリーズ(116)
- NUC121/125シリーズ(1)
- NUC126 USB シリーズ(2)
- NUC130/230 CAN シリーズ(103)
- NUC131/NUC1311 CAN シリーズ(98)
- NUC140/240 コネクティビティシリーズ(114)
よくある質問
How to set the High Slew Rate Control Register to increase the SPI frequency to 36 MHz without causing waveform distortion? 日付:2018-03-08
When GPIO is configured to SPI mode, the High Slew Rate I/O is disabled by default. The user must set the GPIO High Slew Rate Control Register to enable the High Slew Rate I/O mode for adjusting the SPI frequency to 36MHz
The programming example is as follows:
//Set SYS MFP to SPI mode
SYS->GPB_MFPL |= (SYS_GPB_MFPL_PB2MFP_SPI0_CLK | SYS_GPB_MFPL_PB3MFP_SPI0_MISO0 | SYS_GPB_MFPL_PB4MFP_SPI0_SS | SYS_GPB_MFPL_PB5MFP_SPI0_MOSI0);
//Set GPIO to High Slew Rate I/O mode
PB->SLEWCTL |= (GPIO_SLEWCTL_HSREN2_Msk | GPIO_SLEWCTL_HSREN3_Msk | GPIO_SLEWCTL_HSREN4_Msk | GPIO_SLEWCTL_HSREN5_Msk);


| 製品: | マイクロコントローラ ,Arm Cortex-M4 MCU ,M451 Base シリーズ ,M451M シリーズ ,M452 USB シリーズ ,M453 CAN シリーズ ,M4TK タッチキーシリーズ |
|---|---|
| アプリケーション: | |
| 機能: | Peripherals,Connectivity,SPI,I/O,GPIO |