EEVblog Electronics Community Forum
Electronics => Beginners => Topic started by: zastil on November 23, 2012, 03:27:31 pm
-
I am trying to get the LKM1638 to a attiny45 chip I know how to program it with the arduino and it works on the arduino but it's not working with a attiny45 now I am kinda new to connection pins i.e. clock, pwm and strobe. And I wonder if I cam using the right pins I have put below the pins and if you can help me match them up even if they can be, I would appreciate the help.
-
I should add the only 1 unit of LKM is used so only need STB0 connected and not the other STB's.
-
I'm not familiar with either the LKM or the ATTiny but here is how I see it:
VCC and GND are clear enough I hope.
If you want to talk to the module (pseudo code):
set data to output
make STB low
For bits is 1 to 8
make CLK low
set data to bit you want to send
make CLK high
next bit
make STB high
if you want to read from the module (pseudo code):
set data to to input
make STB low
For bits is 1 to 8
make CLK low
read bit from data
make CLK high
next bit
make STB high
So what you need is 2 output pins on the ATTiny for STB and CLK, and one pin you can switch from input to output for data.
Hope this makes sense...