sumotoy
Well-known member
I'm working from time to time to discover the RA8875 chip but get stuck when I tried to connect other SPI devices, for example the SD library get stuck, etc. etc. No matter witch library I plan to use, after plug the oscilloscope I discover that apart the infamous MISO pin, even MOSI,CS and SCLK are pullup and in particular SCLK it's pulldown until the RA8875 chip has concluded his turn on cycle then pullups.
I have tried to isolate all the RA8875 SPI pins with several chips, 4050 non inverting buffer, 74hc125 but as soon I connect any spi device, it get stuck.
Before all, I've applied the MISO trick of Paul since it works even if the datasheet of the 74hc125 shows a 150nS for the enable pin, I'm lucky that RA can work at max 6.6Mhz with SPI, so I'm wondering if I have to delay all 3 lines to prevent missed data for waveform mis-aligned.
Apparently the SCLK it's the most critical, I got RA8875 and SD working by using a port of a 74hc125 on SCLK drived by RA8875 CS (as the MISO suggested by Paul) it works but of course I got garbage at high speed because it's clearly just a workaround.
The second working solution was use several ports of a 74hc125 to isolate MOSI and SCLK drived by a separate processor pin that isolate display SPI lines, it works but it's a waste of pin to me, must be an easiest solution.
Question is, since the RA8875 spi lines are internally pullup, should I use an open drain non inverting buffer like 74LVC07A?
I cannot understand why the 74hc4050 or 74hc125 it's not able to isolate RA8875 from other devices, someone can illuminate me?
Second question, someone tried if the Adafruit RA8875 board has the same problem? I know that it has a 4050 as frontend but my experiment shows that it's not sufficent, I'm wondering if pullups coming from RA8875 chip or bad chinese design (prolly)
I have tried to isolate all the RA8875 SPI pins with several chips, 4050 non inverting buffer, 74hc125 but as soon I connect any spi device, it get stuck.
Before all, I've applied the MISO trick of Paul since it works even if the datasheet of the 74hc125 shows a 150nS for the enable pin, I'm lucky that RA can work at max 6.6Mhz with SPI, so I'm wondering if I have to delay all 3 lines to prevent missed data for waveform mis-aligned.
Apparently the SCLK it's the most critical, I got RA8875 and SD working by using a port of a 74hc125 on SCLK drived by RA8875 CS (as the MISO suggested by Paul) it works but of course I got garbage at high speed because it's clearly just a workaround.
The second working solution was use several ports of a 74hc125 to isolate MOSI and SCLK drived by a separate processor pin that isolate display SPI lines, it works but it's a waste of pin to me, must be an easiest solution.
Question is, since the RA8875 spi lines are internally pullup, should I use an open drain non inverting buffer like 74LVC07A?
I cannot understand why the 74hc4050 or 74hc125 it's not able to isolate RA8875 from other devices, someone can illuminate me?
Second question, someone tried if the Adafruit RA8875 board has the same problem? I know that it has a 4050 as frontend but my experiment shows that it's not sufficent, I'm wondering if pullups coming from RA8875 chip or bad chinese design (prolly)
Last edited: