I'm new to microcontroller programming. I'm trying to build a simple program that will blink a LED on pin 12 (PB0).
Here is the rough sketch of my circuit.
Can anyone please give me the full C code for this simple program an then I will build on that and add more components to this circuit.
Also can someone please help me with:
1> how to set pins for output and input?
2> how to retrieve a value from an input pin?
3> how to send data to to output pin?
I built that circuit and burned that program on the chip it does not seem to work....
Does this chip has an internal oscillator or I will have to use an external crystal oscillator on the XTAL1 and XTAL2 lines?
It should be works without external oscilator, just check the CKOPT and CKSEL and make sure your configuration is right. To look the configuration i use ponyprog, try search in Google for the program.
Best regards