Anyway, I'd like to know what I need to have on my board beside the atmega and its peripheral components if I want to program it via USBasp.
Do I need any kind of secondary chip + peripherals or can the atmega be the only one?
To provide a little more info, the project I want to start is a nice binary clock where I want the circuit board to be visible but clean-looking, meaning I want to use as few parts on it as possible (The ISP pins will be on the backside of the PCB, hidden under the atmega). I even want to design and etch the PCB all by myself to make sure I can get the best possible look.
You don't say what Atmega chip you want to program.
I am not familiar with USBasp.
I have a breadboard with an Atmega328 set up as an Arduino-as-ISP and I can program an Atmega 328 or an Attiny 1634 without any extra hardware apart from what is needed when those chips are running.
123Splat:
have you looked at the Atmel manuals? or, maybe the ICSP pins on the arduinos?
Sorry, but answering questions with questions doesn't help me at all!
But let me go deeper into the details:
My binary clock as I would build it right now would basically be an arduino board with some additional LEDs, resistors and switches, but minus the extra chip and peripherals thereof, if possible. That's why I'm asking if an atmel microcontroller can be ISP-programmed via USBasp when there's no second chip on the target board.
And please just answer my questions or ask for more project details if u need any, but don't ask me if I've done this or that already!
Your questions are answered in the manuals. But, since you are too lazy to read for yourself, yes, you can ICSP without extra circuitry. That's what the USBasp is for.
123Splat:
yes, you can ICSP without extra circuitry. That's what the USBasp is for.
And that is all I was asking for!
123Splat:
you are too lazy to read for yourself
No, I'm definitely not but when it comes to tryin' out new things in electronics I prefer the safer way which in this case would even have been the quicker one if it wasn't for u rather ranting about my alleged laziness when I actually just wanted to stay on the safe side!
When I wrote reply #7, I hadn't realised that you already had a programmer.
You obviously need to follow the follow the wiring diagram for that programmer.
DualDesertEagle:
How many ports does each of them have?
I don't understand that question in the context of your Thread title.
I explained that I can upload programs to both of them without needing extra hardware - I thought that was what you wanted to know.
And when you said in your Original Post that you plan to etch your own PCB I assumed you are already very competent with electronics and would have phrased your question expertly.
If you are wondering if an Atmega 328 or an Attiny 1634 would be suitable for your project then you need to tell us what your project requires. When I wrote Reply #1 I had assumed you had already selected a suitable Arduino and were just enquiring about how you could program it.
Even after reading your Reply #4 I don't have a clear understanding of what it is, exactly, that you want help with.
Describe your project starting at the beginning and then maybe your questions will make more sense and we can provide more useful answers.
An ICSP header is needed.
MISO 1 2 VCC
SCK 3 4 MOSI
Reset 5 6 GND
Or at least provide access to the signals that a programming adapter can connect to.
Or connect to the pins directly on the chip with a programming adapter, such as this one that presses on the of Atmega328P:
Was $20 when I bought one a few years ago to bootload some Lilypads that came without.
Just read some reviews at HobbyKing, my own experience is nothing but positive with the adapter. I once bootloaded 20 custom boards in one session with no problems.
Thanks for all actually helpful answers, my questions have been answered (except the number of ports but I guess I'm gonna read the datasheets to avoid that certain ppl here get even more butthurt about me daring to ask a question in a forum that was actually made for just that)!
DualDesertEagle:
except the number of ports but I guess I'm gonna read the datasheets to avoid that certain ppl here get even more butthurt about me daring to ask a question in a forum that was actually made for just that
You believe our purpose here is to be your personal encyclopedia ready at your beck and call?
And, if we fail in that duty you have a right to sling personal insults?
No, but it's a freakin' FORUM! If u are willing to answer a question, do it, if not, don't, but for ducks sake don't whine over someone asking a damn question, that's all I expect!
Do I really have to go through a bunch of ppl complaining about me "being too lazy to read" just cause I find it to be safer to ask a question about certain stuff? Fine, then I'll just keep struggling for every bit of info I need and leave this place forever once I've got it all together (no rhyme intended)!
Just cause SOME ppl apparently learned their stuff the hard way that doesn't mean everyone has to!
DualDesertEagle:
If u are willing to answer a question, do it, if not, don't, but for ducks sake don't whine over someone asking a damn question, that's all I expect!
That is precisely what you are doing. Whining over @123Splat's simple questions. If you don't like his questions STOP YOUR DAMNED WHINING and ignore them.
Well his "simple question" was already screaming like "Go look it up by urself, idiot!" And that's what started the whole discussion! He could just have thought about me whatever he wanted and could've kept it for himself but NO, he had to be like "hurr durr have u looked at the manuals, dummy?"
So quit making ME the bad guy wen all I did was react to the attacks of someone else and at first even did so in a friendly manner!
Oh, and excuse me, "hard work on my behalf???" So if someone happens to know something that I'm asking for and he answers my question by typing one or two sentences he's doing HARD WORK? Oh, great, then I'm gonna go ahead and charge all the people I've helped with some simple answers money, that's gonna make me rich!
Had I taken this much offense from someone asking a question of which he could've found the answer by himself then I sure as hell would've been in mental hospital by now! Yet instead I simply fucking answered their questions if I knew the answer or even did a BIT of research for them! Has that ever hurt me? No!