Red Squirrel
No Lifer
What's a good resource on learning how to code Atmel AVR microcontrollers? Like code syntax, functions, classes etc? I've found some small sniplets here and there online but a full blown reference would be nice. Like how to use i2c, SPI, the ADCs, etc...
I have a general understanding of how you write bits and such and from what I read most of it involves this, but what bit do I write where to do what, is not really explained all that well. You can set the pin mode, but what do I set a pin to to get a certain mode and so on.
Just looking for a good resource to get started. I ordered this programmer, think it will work well?
http://www.amazon.ca/gp/product/B00V35SVHA?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00
I plan to code under Linux using avr-gcc and avrdude, and just a text editor.
Also is there some libraries/frameworks that I should be looking into and are they fairly chip independant? Or is it easier to just make my own functions based on the chip I'm writing for?
I've used Arduino before but I want to actually learn to program the chips directly. I ordered 10 Atmega 328's to play with along with various i2c sensors. Chose those knowing that I can still use them for arduino too if I want to.
I have a general understanding of how you write bits and such and from what I read most of it involves this, but what bit do I write where to do what, is not really explained all that well. You can set the pin mode, but what do I set a pin to to get a certain mode and so on.
Just looking for a good resource to get started. I ordered this programmer, think it will work well?
http://www.amazon.ca/gp/product/B00V35SVHA?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00
I plan to code under Linux using avr-gcc and avrdude, and just a text editor.
Also is there some libraries/frameworks that I should be looking into and are they fairly chip independant? Or is it easier to just make my own functions based on the chip I'm writing for?
I've used Arduino before but I want to actually learn to program the chips directly. I ordered 10 Atmega 328's to play with along with various i2c sensors. Chose those knowing that I can still use them for arduino too if I want to.