gauravkothari23
Advanced Member level 2
Hi all..
I am working on a small project using attiny 10 microcontroller where i need to test the blink program initially.
Schamatic Attached.
i am using anduino nano to program attiny chip.
REF: https://junkplusarduino.blogspot.com/p/attiny10-resources.html
what my problem is...
my controller does not start. The LED is not blinking. i have even tried programming 4 to 5 boards, but non of them work.
can anybody please let me know what the problem is
I am working on a small project using attiny 10 microcontroller where i need to test the blink program initially.
Code:
#define F_CPU 8000000UL // define it now as 1 MHz unsigned long
#include <avr/io.h>
#include <stdint.h>
#include <util/delay.h>
int main (void)
{
unsigned int i;
CCP = 0xD8;
// CLKPS[3:0] sets the clock division factor
CLKPSR = 0;
for(i=0; i<=100; i++)
{
PORTB = 0b0000; // TURN ON LED
_delay_ms(50);
PORTB = 0b1111; // TURN OFF LED
_delay_ms(50);
}
}
Schamatic Attached.
i am using anduino nano to program attiny chip.
REF: https://junkplusarduino.blogspot.com/p/attiny10-resources.html
what my problem is...
my controller does not start. The LED is not blinking. i have even tried programming 4 to 5 boards, but non of them work.
can anybody please let me know what the problem is