Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

SPI Framework using SPI HAL drivers and MISO idles low?

$
0
0

I have been using Simple SPI on the r_sci drivers and MISO has been idling high as I have designed the hardware.  

After moving to the SPI Framework with the intent of operating two SPI devices from the same bus, I have noticed that my MISO line (port 05 pin 02) is idling low.  The pin pulls low immediately after completing SystemInit() in the internally generated startup S7G2.c file. 

The current problem is apparent as the MISO line idles low and the output data from the slave device ( MAX11161 ADC) only transitions to approximately 1.27V amplitude during data transfer.

My configuration in synergy_cfg.txt:  

P502 78 SCI5_RXD_MISO RXD_MISO Low None "Peripheral mode" CMOS "input pull-up" "ADC0: AN17; CMP0: IVCMP0; GPT12: GTIOCA; IRQ0: IRQ12; OPS0: GTIW; QSPI0: QIO0; SCI5: RXD_MISO; SCI5: SCL; SDHI1: DAT0; USBFS0: OVRCURB" -

And all of the instances of p502 in R7FS7G27G3A01CFP.pincfg

<v1:configSetting configurationId="p502" altId="p502.sci5.rxd">
<v1:connectionSetting altId="sci5.rxd.p502"/>

<v1:configSetting configurationId="p502.gpio_mode" altId="p502.gpio_mode.gpio_mode_peripheral"/>

<v1:configSetting configurationId="sci5.rxd" altId="sci5.rxd.p502">
<v1:connectionSetting altId="p502.sci5.rxd"/>

<v1:configSetting configurationId="p502.gpio_pupd" altId="p502.gpio_pupd.gpio_pupd_ip_up"/>
<v1:propertySetting propertyId="p502.symbolic_name" value="RXD_MISO"/>

<v1:configSetting configurationId="p502.gpio_drivecapacity" altId="p502.gpio_speed.gpio_speed_low"/>
<v1:configSetting configurationId="p502.gpio_otype" altId="p502.gpio_otype.gpio_otype_none"/>

 

 

 

Is there some place I'm missing having this pin asserted low in the BSP or am I potentially using the framework incorrectly?


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>