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

7-bit clock cycle Read(Rx) and Write(Tx) #3

Open
MagnusPer opened this issue Aug 29, 2022 · 1 comment
Open

7-bit clock cycle Read(Rx) and Write(Tx) #3

MagnusPer opened this issue Aug 29, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@MagnusPer
Copy link

Hi,
Trying to decode my hot tub communication to make it available wireless. From my initial measurements I see the clock cycle is 7-bits and not 8-bit that is standard SPI. I see in the SoftSPIB library can configure transmission(Tx) but how about reception(Rx).

Link to my initial measurements - https://github.com/MagnusPer/Balboa-GS510SZ

@red-scorp
Copy link
Owner

Hi! I've neve tested the read feature. It was not needed in my application.
Looking to following code fragment present in function uint16_t SoftSPIB::transferBits(uint16_t val, uint8_t bits):

'''
bval = digitalRead(_miso);
if (_order == MSBFIRST) {
out <<= 1;
out |= bval;
} else {
out >>= 1;
out |= bval << (bits - 1);
}
'''

The read feature should work. Try it out

@red-scorp red-scorp self-assigned this Aug 29, 2022
@red-scorp red-scorp added the question Further information is requested label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants