stefa168 / tlc5940arduino

Automatically exported from code.google.com/p/tlc5940arduino
0 stars 0 forks source link

Doesn't work with ATmega8 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Wired one TLC5940 to ATmega8 according to this
http://arduino.cc/en/uploads/Hacking/Arduino-To-Atmega8-Pins.png

2. So it looked like this:
13 -> PB5
11 -> PB3
10 -> PB2
9  -> PB1
3  -> PD3
mega8 was getting its power from the programming cable and the TLC + leds
were connected to external 5V PSU and they were drawing 0.31A with all the
leds off

3. Burned the Arduino Bootloader and the tlc5940 Basic Use example to the
chip with Arduino 0017 

What is the expected output? What do you see instead?
expected Knight Rider. Got nothing, most of the times all the leds stayed
off. When I switched the power on and off random leds would light up and
stay on forever.

What version of the product are you using? On what operating system?
ATmega8 running at 16 MHz
USBTinyISP
Arduino 0017 (Arduino NG w/ ATmega8 selected)
avrdude 5.8

Please provide any additional information below.

Original issue reported on code.google.com by xf...@live.com on 6 Sep 2009 at 12:50

GoogleCodeExporter commented 9 years ago
Hey, I have the same problem
I dont have an arduino, so i compiled using the arduino software and burned on 
my
atmega8 with a different programmer.

as soon as the TLC.init() is called, the atmega8 stops running.
I checked this using the serial port.

What am I doing wrong? Is it even possible to run this on an Atmega8?

Thanx Mike

Original comment by Michael....@gmail.com on 30 Mar 2010 at 8:15

GoogleCodeExporter commented 9 years ago
can agree with above speakers that it dosnt work with the atmega 8. 

Original comment by sjunnes...@gmail.com on 16 Jun 2010 at 11:41

GoogleCodeExporter commented 9 years ago
WOULD WORK OR NOT!! PLAESE ANSWER, THANKS!

Original comment by sector...@gmail.com on 15 Sep 2010 at 10:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am totally newbie who wants to use TLC5940 with Atmega8 so I might not be 
right but I see that OC2 is on PB3 pin, not PD3 so use pin PB3 instead of PD3 
while wiring.

In Tlc5940\pinouts\ATmega_8.h:

Change:
/** OC2B (Arduino digital pin 3) -> GSCLK (TLC pin 18) */
#define GSCLK_PIN    PD3
#define GSCLK_PORT   PORTD
#define GSCLK_DDR    DDRD

to:

#define GSCLK_PIN    PB3
#define GSCLK_PORT   PORTB
#define GSCLK_DDR    DDRB

I am not using Arduino but it should not change anything.

Original comment by norb...@sitko.org on 19 Nov 2011 at 10:58