Seeeundino MISO Signal an Pin A9

Hallo,

Ich habe mir für meinen Holzvergaser von Windhager LWP 505 ein Programm geschrieben, wo ich die Heizungspumpe ( für meine Heizkörper) und die Speicherpumpe (für Warmwasser) entsprechend der Uhrzeit schalten kann. Folgende Hardware verwende ich dafür:
Seeeundino XIAO
RTC DS 1338 C mit VRAM (gesteuert über IC²)
Anzeige ILI 9488 (3,5 Zoll TFT Display, gesteuert über SPI)
Relaismodul (zum schalten der Heizungspumpe und Speicherpumpe)
Drehimpulsgeber zum einstellen meiner Ein- und Ausschaltzeiten der Pumpen zu verwenden.

Da mein SPI Display das Signal MISO nicht benötigt, hatte ich mir gedacht dieses Pin
als digitales Output A9 zum Schalten meines Relaismoduls zu verwenden.
Wenn ich nun das SPI für das Display starte dann sind auf diesen Signal Impulse von SPI Interface vorhanden und überlagern sich mit meinem digitalen Output.
Kann ich das Pin A9 (MISO) nicht verwenden für digitales Output, wenn ich SPI verwende?
Mein Problem ist , dass bereits alle verfügbaren GPIO des SEEEundino XIAO verwendet habe
und ich benötige unbedingt noch ein freies GPIO.
Zum Test habe ich ein kleines Programm geschrieben wo das Pin A9 (MISO) als digitales Output verwendet wird und innerhalb 1 ms von LOW auf High geschaltet wird (natürlich ohne SPI zu starten vom Display) und die Signale sind dann in Ordnung.

Kann mir hier jemand bestätigen, dass dies so ist?

This is an English forum ....................

Hello,

I wrote a program for my Windhager LWP 505 wood gasifier where I can switch the heating pump (for my radiators) and the storage pump (for hot water) according to the time. I use the following hardware for this:
Seeeundino XIAO
RTC DS 1338 C with VRAM (controlled via IC²)
Display ILI 9488 (3.5 inch TFT display, controlled via SPI)
Relay module (to switch the heating pump and storage pump)
Using encoders to set my pump on and off times.

Since my SPI display does not need the MISO signal, I thought of this pin
to use as digital output A9 for switching my relay module.
If I now start the SPI for the display, then there are impulses from the SPI interface on this signal and they are superimposed on my digital output.
Can't I use pin A9 (MISO) for digital output when using SPI?
My problem is that I've already used all available GPIO of the SEEEundino XIAO
and I absolutely need a free GPIO.
For the test, I wrote a small program where pin A9 (MISO) is used as a digital output and is switched from LOW to high within 1 ms (of course without starting SPI from the display) and the signals are then ok.

Can anyone here confirm that this is the case?

The pin definition says probably not. MISO is Master In Serial Out. When writing to the device as a master data will be presented to it. When reading as a slave data will be coming out. If it was the master and not wanting data you could probably do it but you will have to tweek the libraries. Consider using an I2C port expander such as PCF8574 connected to D4 and D5. This will give you six additional I/O. Displays are available for use with I2C as well. If you are looking at buttons you can use a resistor chain and mux several buttons on one line. Post a schematic that may give others an idea of how to solve your problem.

The Seeeduino XIAO use a Cortex M0 processor so you may be able to re-direct the pins on the SPI port to other possibly unused pins via Sercom.

But that would probably depend on how Seeeduino have setup the hardware for their board and the custom core they provide for the Arduino IDE.

Might be an idea to ask Seeeduino about the details, they do have a support forum.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.