Has anyone used Avr studio to develop code for attiny's?
Are there any alternatives?
Can I still use atmega 328 as an icsp?
Im currently using Arduino IDE to tinker with Attiny13a and although it works i want more functionality
Thanks
Has anyone used Avr studio to develop code for attiny's?
Are there any alternatives?
Can I still use atmega 328 as an icsp?
Im currently using Arduino IDE to tinker with Attiny13a and although it works i want more functionality
Thanks
P18F4550:
Im currently using Arduino IDE to tinker with Attiny13a and although it works i want more functionality
Such as?
Low level programming
What "low level programming" are you not able to access?
P18F4550:
Has anyone used Avr studio to develop code for attiny's?
Are there any alternatives?
Can I still use atmega 328 as an icsp?Im currently using Arduino IDE to tinker with Attiny13a and although it works i want more functionality
Thanks
Basically anything you can program in c, c++, or assembly with the AVR Studio IDE you can also do with the Arduino IDE. AVR Studio has some non-programming functionality such as a simulator that doesn't exist in the Arduino IDE, and is some opinions is a more polished IDE; however, it only runs under Windows...
In fact you can simply ignore most (everything but the setup() and loop() functions I believe) of the Arduino "language" and simply use C, C++, and assembly within the confines of the Arduino language...
If your primary interest is in the AVR Studio, you may be better served by asking your questions on the AVR Freaks forum, which while an excellent source of information, is not as "beginner friendly" as this one.
is not as "beginner friendly" as this one.
It's getting better though.
I think you can access exactly the same processor features with the Arduino IDE as with AVR Studio, as to the quality of the environment, well that's a different story.
To get a more "normal" control of program flow you can simply put all of you code in the setup() function. I also think you can write your own main().
Rob
Graynomad:
I also think you can write your own main().
int main( void )
{
return( 0 );
}
...works for me (1.0.1-rc2).
Yep I thought you just wrote it, does that override the existing main()? If so you would probably want to add a call to setup() if you wanted to keep the Arduino hardware configuration.
Rob
Graynomad:
Yep I thought you just wrote it, does that override the existing main()? If so you would probably want to add a call to setup() if you wanted to keep the Arduino hardware configuration.
Rob
you mean init()?
Graynomad:
Yep I thought you just wrote it, does that override the existing main()?
Yes. The compiled core is put into a library before linking. Library code has a "weak reference" so it's easy to override.
If so you would probably want to add a call to setup() if you wanted to keep the Arduino hardware configuration.
Almost...
init();
Oops, init(), yep.
Rob
OK well thanks for that i'll continue with arduino ide for now, just from what i read tiny's on have the support yet that a 328 has in the arduino ide, for instance generating random delays