Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent synchronization of SS pulses in duplication mode #1

Open
pavelvitvar opened this issue Feb 20, 2020 · 1 comment
Open

Comments

@pavelvitvar
Copy link

Hello,

I have found an issue in duplication mode of SPI expander. It occurs in situation when master wants to duplicate output data to multiple slaves. If slaves use adjacent channels like SS3 and SS4 and master decides to activate them simultaneously the first slave (SS3) is activated by SS signal one period of SCK signal prior the another slave (SS4). It means that the first slave gets first byte shifted by one pulse of SCK prior the second slave.

Here is the correct function of expander. One master transmits to one slave.
SPI expander correct

Here is incorrect function of expander. One master transmits to two adjacent slaves. The slave select signal for the slaves is not aligned ant the first slave catches a misaligned data on MOSI signal.
SPI expander NOT correct

The solution is not to place same slaves side by side to each other.

@kaklik
Copy link
Contributor

kaklik commented Feb 20, 2020

Thanks for the bug reporting! :)

It would be nice if you can link (URL) to the simulation model which you have used for the debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants