MQX Dspi

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,993件の閲覧回数
Garil
Contributor III

Hi folk, i have the kenetis demoboard twr53 also new in this mcu

i m trying using the spi2 on my board with an external chip which is active when the cs is high, in other way i m using the  ioctl cmd ( IO_IOCTL_SPI_READ_WRITE) which auto assert the chip.                                                                    __________

can someone please tell me how i can assert the chip "high" ? not low e.g not __                   __   but __|                      |__

                                                                                                                                                  |________|

Please look at the wave form if what i wrote not clear

thx in advance

0 件の賞賛
返信
1 解決策
1,622件の閲覧回数
BryGuyH
Contributor IV

Like a lot of parts of MQX the drivers often don't allow configuration of low level chip features. In this case the DSPI module driver for the kinetis chip set:

 

dspi_ptr->MCR |= DSPI_MCR_PCSIS(0xFF);

 

in the _dspi_polled_init function of the BSP. So you can either modify that for your application or else come back through after you do the fopen for the spi channel you are using and manually modify the SPIx_MCR register.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,622件の閲覧回数
Garil
Contributor III

Sorry guys, just wanted to give u my configuration

MQX 3.7, Codewarrior 10.1 pro, twr53n512 the 53 demoboard

thx

0 件の賞賛
返信
1,623件の閲覧回数
BryGuyH
Contributor IV

Like a lot of parts of MQX the drivers often don't allow configuration of low level chip features. In this case the DSPI module driver for the kinetis chip set:

 

dspi_ptr->MCR |= DSPI_MCR_PCSIS(0xFF);

 

in the _dspi_polled_init function of the BSP. So you can either modify that for your application or else come back through after you do the fopen for the spi channel you are using and manually modify the SPIx_MCR register.

0 件の賞賛
返信
1,622件の閲覧回数
Garil
Contributor III

many thx, sorry for the delay

br

0 件の賞賛
返信