Go Down

Topic: mega2560 problem (Read 819 times) previous topic - next topic

t0r30rs

Greeatings .

I make my own board with mega2560 16u mcu .
I use 16mhz crstal.
My power suplly is 3.3v .

I have now problem.
I can upload program to my mega 2560 but this program dont work.
I upload blink example on pin 51 but that dont work.
Have anyone to know what is problem is problem power supply or crystaL?


westfw

If you can upload but not blink, it probably means that your pin mapping is not what you think it is.
Ie "pin 51" in arduino is not the same as "pin 51" on the chip.
http://www.pighixxx.com/test/wp-content/uploads/2014/11/mega.png

t0r30rs

#2
Nov 08, 2017, 09:42 am Last Edit: Nov 08, 2017, 11:32 am by t0r30rs
If you can upload but not blink, it probably means that your pin mapping is not what you think it is.
Ie "pin 51" in arduino is not the same as "pin 51" on the chip.
http://www.pighixxx.com/test/wp-content/uploads/2014/11/mega.png
on this link is my diagram for my circuit i use isp for programing my board and i use mosi pin for blink

https://ufile.io/g2tit

When i meassuring voltage on pin i have 0.5 V

westfw

Well, if you're using ISP for programming, I guess not as much has to be working, compared to a successful serial upload through a bootloader.

What are you using for fuses?


sterretje

To my knowledge, you can't run 16MHz at 3.3V.

Check chapter 31.2 of the datasheet.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

t0r30rs

To my knowledge, you can't run 16MHz at 3.3V.

Check chapter 31.2 of the datasheet.
I try wtih 5V but same problem ,
My MCU work one time and stop .
Have you idea why ???

Go Up