Author Topic: Using the LKM1638 with ATTiny45 help  (Read 2354 times)

0 Members and 1 Guest are viewing this topic.

Offline zastilTopic starter

  • Newbie
  • Posts: 9
Using the LKM1638 with ATTiny45 help
« 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.

 

Offline zastilTopic starter

  • Newbie
  • Posts: 9
Re: Using the LKM1638 with ATTiny45 help
« Reply #1 on: November 23, 2012, 03:29:15 pm »
I should add the only 1 unit of LKM is used so only need STB0 connected and not the other STB's.
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: Using the LKM1638 with ATTiny45 help
« Reply #2 on: November 23, 2012, 04:02:46 pm »
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...
Keyboard error: Press F1 to continue.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf