Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

AVR and ATmega both in the Atmel

Status
Not open for further replies.
You can find the USBasp schematic and PCB https://www.fischl.de/usbasp/ but it will be cheaper to buy it from ebay, that is why I have suggested that solution.

This is just a serial programmer, for debugging you need a jtag device like the clone shown https://www.edaboard.com/threads/165593/
Note that ATmega8 doesn't have jtag, you have to use mega16/32/64/128 etc

Alex

---------- Post added at 17:52 ---------- Previous post was at 17:48 ----------

Serial programmer for AVR :

73811d1336401842-avr_programmer_schematic.jpg

This is the schematic from the link I have posted in post #13 so he might as well read the link article.
A bare schematic isn't very useful since the programmer requires an application provided in the article website.

Alex
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
About the USBASP, what software supports more microcontrollers?

I use the eXtreme burnner 1.2, and I think that supports few microcontrollers.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
I need burn AT90 series. I try the AVRDUDE, but isn't compatible with windows 7 (the comunication with USBasp works well, but all HEX files generated are 0 bytes, I runed in administrator mode).
 

Dear All

I sow that AVR 16MIPS (16MHz) but PIC 5MIPS (20MHz), as per this what is the solution done by microchips to overcome this drove back and as a world number one market leader in 8bit MCU sales

Please advice
 

Its something like Intel and AMD, in this case is Microchip and Atmel. Often I say earlier people like kids talking about lots of things, what is the best car, what is maximum speed, my byke is faster then yours, and such things. I think you should check parametric product tables of both manufacturers and see what you can expect from some product, also what is price, availability, ....

Also you should know that like in other things and here is marketing included lots. They say one thing and when you buy it, you try and then you see some problems, and such things.

Both are ok and Atmel and Microchip. I rather use Atmel because price, Microchip I use only if I must (I say just because price).
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
poorchava said:
AVRs are very easily brickable when messing with oscillator options
Could you please share such an experience because I never really had one... I always use some cycles plus some ms start up time from fusebits settings and never faced any problems.


Projetos_afg said:
The AVR ISP can be disable, and you will need an HVPP programmer to "unlock" the microcontroller.
Why would you want to disable ISP? The real problem is when you use ATtiny13, where reset gets involved with GPIO pin. There you have a tough situation in deed.
ISP will not be available anymore, once the reset pin will be used as GPIO.


PA3040 said:
what is the solution done by microchips to overcome this drove back and as a world number one market leader in 8bit MCU sales
Market leader or not, there will be advantages and disadvantages escorting their MCUs, as with all manufacturers. Search the web and find what is suitable for you. I use AVR and I am satisfied. On PIC I don't have experience. However I know a lot of people switched from PIC to AVR. I do not know even one example of the other way around! ;-)


Alexandros
 

Could you please share such an experience because I never really had one... I always use some cycles plus some ms start up time from fusebits settings and never faced any problems.

Me neither but I think he means if you program the wrong fuses for a clock source that you don't have (like external clock or low freq. crystal)

Why would you want to disable ISP? The real problem is when you use ATtiny13, where reset gets involved with GPIO pin. There you have a tough situation in deed.
ISP will not be available anymore, once the reset pin will be used as GPIO.

Again I think he mean an unexperienced user that disables ISP by mistake.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear All
Thanks for reply
As I know the all family of PIC's instruction operation time is (Fosc/4)( not sure ) but AVR instruction operation time = Fosc.( Approximately ) I need to know, does pic have MCU's, that instruction operation time = Fosc
thanks in Advance
 

I need burn AT90 series. I try the AVRDUDE, but isn't compatible with windows 7 (the comunication with USBasp works well, but all HEX files generated are 0 bytes, I runed in administrator mode).
U must be doing something wrong. I've got Win7 32-bit version and avrdude+burn-o-mat+usbasp works perfectly.
As I know the all family of PIC's instruction operation time is (Fosc/4)( not sure ) but AVR instruction operation time = Fosc.( Approximately ) I need to know, does pic have MCU's, that instruction operation time = Fosc
thanks in Advance
Not true. This is the case for PIC16, PIC18, PIC24F and dsPIC30F.
PIC24H, PIC24E, dsPIC33F and dsPIC33E operate at Fosc/2 and PIC32MX can theoretically operate at 1.5MIPS@MHz (since they are generally MIPS4k core + PIC24H peripherals).

This is the reason why I'm using Atmel for applications where I need to use 8-bit MCU for whatever reason and dsPIC33/PIC24H or E whenever i need processing power or good connectivity (rich peripherals, multiple uarts, spi's and so on). On the top of that some dspic33's and pic24h's have peripheral pin select (PPS) which IMO is the best feature ever (simplifies pcb layout A LOT!)

Quote Originally Posted by poorchava
AVRs are very easily brickable when messing with oscillator options
Could you please share such an experience because I never really had one... I always use some cycles plus some ms start up time from fusebits settings and never faced any problems.
If you sent wrong combination of CKSEL fusebits then the micro is bricked until you provide correct crystal (the one for which you have actually programmed the fusebits), or use HVPP programmer, or perform paralell erase procedure by hand (this is doable, but many attempts are needed)
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear All
I designed a serial programmer to start AVR programming
Please advice any problems before develop the PCB
Thanks in advance
avr.JPG
 

Dear Alex

This is base on the schematic that you provided to me in this post

Thanks
 

If your schematic is correct then the PCB is fine too.
It it time consuming to check the pcb against the schematic but your software reports if there is a connection that hasn't been done or something wrong.
If there is no error report then it should be ok.
Will you be able to develop the PCB track in the RS232 side (the one that goes through the pads)?
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear Alex

This PCB designed base on The schematic on post21, do you think that is something wrong or incorrect
Thanks
 

The schematic is very simple so you can even make it is a small stripboard.
Maybe you should try it first to se if it works for you before making a PCB for it.

If your schematic is correct then your PCB is too, I can't check your connections from the PCB.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear Alex
Thanks for reply
I designed this PCB using sprint layout 5 software

Can you please tell me what is the software that we can check correctness of the design without developing PCB

Your reply is highly appreciated
 

So your application doesn't use a schematic?
You just draw the PCB?

The majority of applications I know have a schematic editor and design the PCB based on that.
Applications like proteus, multisim, orcad, EAGLE and many others
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
U must be doing something wrong. I've got Win7 32-bit version and avrdude+burn-o-mat+usbasp works perfectly.

I found the avrdude works when you are burning, but doesn't works when saving the HEX file read from microcontroller (generates an empty file, 0KB). I don't know if there is a software based on the AVRDUDE wich provides a graphical interface. Anyone know some?
 

Dear All

what is the most recommended demo boar for beginners that i need to purchase. I hope to start with Atmega 32 MCU

Thanks in advance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top