I thought I could do this without help, but I need to find a good tutorial, or a push to get going. Here is my program.
$crystal = 1000000
Dim X As Byte
Config Portb.3 = Output
Do
Toggle Portb.3
Waitms 200
Toggle Portb.3
Waitms 1300
Loop
It compiles OK, but when I send it to the chip, nothing happens. I had to replace the LM317T regulator on the board, but when I apply 12 volts to the board, the LED does not light up. I set the chip voltage to 5 volts and have the 3.3v shunt unplugged. I am using an older Keyspan USB to serial converter, and I am assuming my baud rates are suspect. I have everything set to 9600.
Please help me where to look. I am trying to keep this simple as I have been unable to program the chip using a Arduino Nano.
Thanks for your help.
Are you certain the replaced regulator is in the correct orientation? I’m worried about it since the LED isn’t lighting @ power
Trying to use Arduino as ISP was my other idea, as the Olimex board uses ISP/SPI protocol, not serial/UART. You can’t program it through a simple USB-to-serial converter with baud rates.
Do you happen to have another programmer?
- USBasp
- USBtinyISP
- Arduino as ISP (which you tried)
- Atmel ICE
- AVR Dragon?
Also, the code looks good to me except the ATtiny13 ships with internal 9.6MHz oscillator divided by 8 = 1.2MHz default, not 1MHz. You might want to set $crystal = 1200000 or reconfigure the fuses
Clockspeed would not keep it from loading. What do you mean “not serial/UART?” It won’t program through the serial port? This is a very old board and it does have a parallel port to ISP adapter.
I am using bascom avr demo to load the program to the chip. What is my easiest solution?
1 Like
I have been doing some digging and i found a HANRUN HR911105A. I think it is an SPI module. Would that work?
The serial port isn’t connected to the microcontroller but the ICSP socket is. You have to use the ICSP socket for programming. You will need a programmer connected to the board to program the microcontroller.
The LED is controlled by the code running on your microcontroller. The LED jumper should be removed during programming.
Make sure your power supply is sending 5 volts to the attiny socket, it needs power to program.
1 Like
I have confirmed that I have 5v on pin 8 (to gnd) and I have ordered [URL=Amazon.com]this[\URL] and hopefully I can get it programmed. Will know in a couple of days.