Reset ATMEGA 328

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
stari
Posts: 75
Joined: 01 Feb 2012 08:59

Reset ATMEGA 328

#1 Post by stari » 18 Aug 2016 18:50

I can't find how to reset ATMEGA 328. Any suggestions ?
THKS

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Reset ATMEGA 328

#2 Post by lana.arsic » 19 Aug 2016 17:30

Hi,

You may find this thread useful:

http://forum.mikroe.com/viewtopic.php?f ... 28#p177747

Best regards,
Lana

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Reset ATMEGA 328

#3 Post by stari » 20 Aug 2016 09:19

I trying with this codes, but - don't work.
THKS however.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Reset ATMEGA 328

#4 Post by lana.arsic » 22 Aug 2016 18:12

Hi,

Can you tell me which hardware do you use?

If you wish to use the hardware reset, you can use standard reset circuit as in Ready for AVR :
http://download.mikroe.com/documents/st ... c-v100.pdf

The software reset, using an asm instruction, does not exist for the AVR architecture, but you may find useful the following link :
http://www.atmel.com/webdoc/AVRLibcRefe ... reset.html

Best regards,
Lana

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Reset ATMEGA 328

#5 Post by stari » 27 Aug 2016 14:25

lana.arsic wrote:Hi,

Can you tell me which hardware do you use?

If you wish to use the hardware reset, you can use standard reset circuit as in Ready for AVR :
http://download.mikroe.com/documents/st ... c-v100.pdf

The software reset, using an asm instruction, does not exist for the AVR architecture, but you may find useful the following link :
http://www.atmel.com/webdoc/AVRLibcRefe ... reset.html

Best regards,
Lana

I use ARDUINO NANO with MEGA 328P. Hardware reset is not problem, soft Reset i need. But, i have some pins not used, so i can make "hardware" reset and no problem. THKs lana.arsic.

Post Reply

Return to “mikroBasic PRO for AVR General”