Good day,
when debugging communication with SPI EEPROM, there is no data on Pin51/PTC6 in the ALT2 setting (SPI0_SOUT). The pin is permanently low. After porting to Pin63/PTD6 in the ALT7 setting, the data is output correctly. Is there another way to activate the data output on Pin51/PTC6 or does this pin not actually have this functionality?
Thank you
--
Jaromir Kubiznak
Dobrý den,
při ladění komunikace s SPI EEPROM nejsou na Pinu51/PTC6 v nastavení ALT2 (SPI0_SOUT) data. Pin je trvale v nízké úrovni. Po přeportování na Pin63/PTD6 v nastaveni ALT7 data vystupují správně. Je cesta jak jinak aktivovat výstup dat na Pinu51/PTC6 nebo tento pin ve skutečnosti tuto funkcionalitu nemá?
Děkuji
-- Jaromir Kubiznak
Hi Jaromir Kubiznak,
PTC6 and PTC7 have true open-drain outputs thus when enabled as outputs, an external pull-resistor is required if output is logic 1.(You can find the information in KV4XP100M168RM Kinetis KV4x: 168 MHz Arm® Cortex®-M4 up to 256KB Flash (100pin))
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Robin,
thank you very much for your help. After installing the Pull Up resistors the SPI finally started working properly.
Jaromir
You are welcome!
I am glad to hear that it works now.
Hi Robin,
thanks for the link to Keil. We use IAR and the source files are the same. Unfortunately, I overlooked that PTC6 and PTC7 are open collector in ALT2, which I didn't expect for fast SPI communication. We looked for a bug in the driver and suspected a chip bug. Pull Up resistors explain everything. Thanks again.
Best regards,
Jaromir