good evenig,
i use a c3 in spi master mode.
which register must be write to handle the cs pin by my self?
i have try to disable the mapping for FSPICS0 but i become a cs from about 40ns (see picture)
thx
How i can disable automatic CS from SPI
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: How i can disable automatic CS from SPI
.spics_io_num = -1, // GPIO pin for CS signal, or -1 if not used.
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: How i can disable automatic CS from SPI
I dont use the framework.
I want to now how I can do this with Register…
I want to now how I can do this with Register…
Re: How i can disable automatic CS from SPI
watch TRM
disable in spi registers
or do not connect in gpio iomux/matrix or set gpio level to 1
disable in spi registers
or do not connect in gpio iomux/matrix or set gpio level to 1
Code: Select all
gpio_reset_pin(CS);
gpio_set_direction(CS,GPIO_MODE_OUTPUT);
gpio_set_level(CS,1);
-
BugSimpson
- Posts: 22
- Joined: Fri Oct 11, 2024 2:14 pm
Re: How i can disable automatic CS from SPI
i allready have try this, have you seen my picture in #1?
there you can see short spikes.. i dont no why^^
there you can see short spikes.. i dont no why^^
Re: How i can disable automatic CS from SPI
if you get this picture after this
look for external sources of interference
this code completely disables all interfaces and sets logic 0 on the CS output (GPIO1).
Code: Select all
#define CS 1
gpio_reset_pin(CS);
gpio_set_direction(CS,GPIO_MODE_OUTPUT);
gpio_set_level(CS,0);
this code completely disables all interfaces and sets logic 0 on the CS output (GPIO1).
Who is online
Users browsing this forum: No registered users and 2 guests