I am a newbie to microcontroller. I bought AVR development terminal, db9 cable and Attinty2313. Installed AVR studio but I couldnt do anything yet.
Someone told me I got wrong cable, I need ICSP serial cable. So wats the function of DB9 cable? And what is the bootloader? If i want to use the microcontroller for other circuit, how do I program it?
Can someone advise me how to start and what to buy?
I think we may be battling the two definitions of “program”.
Leon is answering the “how to get code into the micro’s flash” definition. I’d agree, use either an AVR Dragon or an AVRISP2 programmer.
As for the “how do I write/generate the code” definition, I’d use WINAVR. You haven’t mentioned the target hardware yet, and your description of the task is very vague.
I’d use a crystal at the same frequency you want your output clock at, and use the CKOUT pin to feed it to whatever needs it. I’d use the 16-bit timer to generate your 3-hour pulse.