Install gcc-arm-embedded and your prefered editor or IDE. My personal favorite is PlatformIO. PlatformIO automatically imports the right compiler when you select the target CPU, so it's kind of a no brainer.
That looks ok too... (you can try swapping MOSI/MISO just in case if you want). You can try slowing down the bitclock even more just in case too (-B 100).
Here's a bunch of examples of connections that may help.
https://www.amazon.com/dp/B00KM6ZA9I/
The most reliable programmer I've used, an AVRISP MKII clone. USBasps are junk because they're so cheap, it's a lottery whether the one you get works correctly.
I teach a ucontroller class at the community college level. We chose Avr Microcontroller and Embedded Systems: Using Assembly and C by Muhammad Ali Mazidi. It starts off in assembly and transitions to C. It is much lower level then the make book. A free version can be found with some Google foo.
>avr book mazidi filetype:pdf
If you wanna learn C get K&R plus an algorithms and data structures book. Learn them separately so you're not fighting breadboard problems when you're just trying to learn pointers and arrays.
There's also an app (for Android) with several filters (cpu family, pins, ram, flash, adc channels etc pp.): ATmicro Database
So far I have found two links about the subject:
http://hackaday.com/2010/12/16/external-ram-for-an-atmega128/ http://www.scienceprog.com/adding-external-memory-to-atmega128/
If I did read the articles correctly I can extend the RAM up to 64k and libraries could use it for data storage without swapping just like the internal SRAM. Am I right?
Since you are not using the arduino libraries I highly recommend this book. I use it for reference all these time
AVR Programming: Learning to Write Software for Hardware (Make: Technology on Your Time) https://www.amazon.com/dp/1449355781/ref=cm_sw_r_apan_glt_fabc_2V54V80BPRGZ8J37F2PS
Id just like to plug abebooks as anothet source for locating the book you end up choosing.
If you dont mind 2nd hand books its a great way to get cheap as reference books
http://www.abebooks.com/servlet/SearchResults?sts=t&tn=Avr+programming
Edit i couldnt find the book you queried, so let me know if you find a good deal on it.
That's a permissions problem for the USB device. You can set up a configuration file that tells the USB subsystem to allow access to the USB device from a non-elevated context. How to do so depends on the distro; on Debian and Debian-like systems (e.g. Ubuntu, mint), you need to create a file in /etc/udev.d/; for example, here it is for a specific Android device; for other devices like your programmer it will depend.
It's probably safer to get this set up and run Eclipse non-elevated. Generally avoiding running software in a root context unless absolutely necessary to do system maintenance is preferable from a security standpoint.
Iv'e got an ICE after I wanted to try debugging. Had a USBtiny aswell. The only thing apart from debugging is that you can program the chip from within AVR studio.
I used to use Bit Burner which is just a GUI for AVRdude, but makes life a lot easier.
Edit: added link
> OCR0A = 0x50 (80dec)
Nope, OCRA0
I havent tested it. I have no atmega48. Your job.
If you need 16 bit resolution use timer1, if you need another pin use timer2.
I use the $2 atmega328 crystal controlled arduino boards. https://www.banggood.com/5Pcs-Pro-Mini-ATMEGA328P-5V16M-Improved-Version-Module-For-Arduino-p-1009204.html
Just jump straight in!
I actually much prefer Debian to Ubuntu, I only suggested Ubuntu because their install CD has a LiveCD built-in.
If you want to get comfortable with the command line, I would suggest giving Gentoo Linux a try. The Gentoo Handbook will walk you through the entire install process, and since much of the install is manual, you will understand how everything works.
If that's not low-level enough for you, you can always read the Linux From Scratch book. It walks you through building EVERYTHING from source code, as in not using any distribution at all. I did this once long ago, and I feel that it taught me the most about Linux, but it was a huge pain to keep everything updated, so I ended up switching to a real distribution.
Any of these can be installed in a VM, so you have nothing to lose except time!
You could try Visual Micro.
Official link: http://www.visualmicro.com/
Microsoft Visual Studio 2013 Community Edition (it's free and great!)
Supports all Arduino versions 1.0 to 1.6 and the Intel Edison/Galileo
Super fast compiler with double click drill down into source code
Supports multiple .pde/.ino files in a single project
Easy set-up
Usb/wifi debugger with break and update of variables on the mcu
Educational mode
it's not avr but pic, but quite similar to avr application-wise: ikea's dioder led bar uses a pic and can be reprogrammed
I'm using the same book and bought this one also I've spent couple of days setting everything up so it would actually work. If you want you can share your makefile. Also it would help to know what errors do you have bc it's not necessary the fault of your programmer
Thanks very much. Do you know about this book? I have found it really useful. https://www.amazon.com/AVR-Programming-Learning-Software-Hardware/dp/1449355781/ref=sr_1_1?ie=UTF8&qid=1500993136&sr=8-1&keywords=AVR+programming
It's a pretty well made/official guide, I would not have bought anything unless I would have been sure the guide I'm following is made by a trustworth person
http://www.amazon.it/Make-Programming-Learning-Software-Hardware/dp/1449355781
Let me tell you this, there is no comparison between arduino and avr, as fellow redditor has said,arduino boards use avr microcontrollers,,
the thing is:Arduino is a whole eco system "a board,an IDE, libraries" which allows you to easily prototype your ideas,, but if you want to produce a real product you have to use a microcontroller, whether it be avr/arm/etc.. but using those microcontrollers introduce more complexity, and at the same tim more power and efficiency,, as you have said on aruino u can easily read pulses, but when usaw examples for avr u saw interrupts and timers, YES they are more complex but YES they give you much more control and power and flexibility over what you are creating, and when you begin searching into more advanced stuff you'll discover very great features in microcontrollers, for example watchdog timers,,,
So to sum it up, microcontrollers cant be compared with a board that uses a microcontroller,, arduino is simple but doesnt allow you to utilize all the features and power of microcontrollers,, prototype with arduino and produce finak product with avr,,, do some projects in avr in irder to master it, then you will be able to choose when to use each tool based on what features you need,,
I advise you to follow the book The avr microcontroller and embedded systems
AND LAST ! Never be demoralized ! Master AVR and create your own Arduino Libraries ! ;)