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

Documentation for the SPI-lines #2

Open
arildlangseid opened this issue Nov 19, 2021 · 4 comments
Open

Documentation for the SPI-lines #2

arildlangseid opened this issue Nov 19, 2021 · 4 comments

Comments

@arildlangseid
Copy link

Please update documentation for where to put the two signals for SPI:
find chip 74hc164:
SPI Data-signal is on pin1 and pin2. SPI Clock is on pin8.

Trouble is..... on my ch926 the signal on SPI is 9-bit.... which gives me problems using hardware SPI on Arduino :(

@Cat-Ion
Copy link
Contributor

Cat-Ion commented Nov 20, 2021

I'm not at the fablab anymore and haven't seen the hardware in years, so I won't be able to help much. It sounds rather unlikely that your CH-926 is that different - the 74HC164 can't do 9 bits, so you'd need either more of those or a different IC, but if that is indeed what's going on with yours then you might be able to use one of the ATTinys with an USI.

@arildlangseid
Copy link
Author

You are correct - the 74HC164 is 8bit - so why the chineeze send 9 clock pulses is a mystery to me. I had problems using hardware SPI so I connected the Logic Analyzer which easely pinpointed why I had problems using hardware SPI... One short clock pulse before the real and useful 8 clock pulses came good in..... I have managed with an arduino I had laying around. But thanks for the tip about the ATTinys with USI. Will check it up.

@foreverchris
Copy link

how can i compile the code that i can download it ?
i only know arduino

@arildlangseid
Copy link
Author

how can i compile the code that i can download it ? i only know arduino

You might need Atmel studio for this project.

Not very well documented either - but you can have a look at my project.
https://github.com/arildlangseid/coinAcceptorInterface

Best regards, Arild

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

No branches or pull requests

3 participants