Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Periph Reset
PostPosted: Thu Jun 25, 2009 1:35 pm 
Offline

Joined: Mon Oct 27, 2008 2:25 pm
Posts: 13
hi everybody,

I've got few questions about the Reset controller in the AT91SAM7X controller.

1. What does the periph reset exactly do? (which periphrals it reset and so on).
2. Do we need to wait after this reset in order to things work well?
3. What do we need to configure after this kind of reset?
4. Does anybody used it and experienced problems?

I'm working on a bootloader of my own, and before I jump to the Image section I want to reset all the perpherals to their default values (and disable working peripherals etc...). That's makes another question - what else can i do instead of the periph reset (in case in will continue to do problems).

Thanks for any help!
Dan.


Top
 Profile  
 
 Post subject: Re: Periph Reset
PostPosted: Thu Jun 25, 2009 7:08 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
hello,
atmel recommend to use the perpheral reset only in conjunction with a processor reset ( to
prevent from any synchronisation issue).
So it's the normale way to jump from main() to bootloader, but not really usable for your application.

I would recommend to use as few peripherals as possible.

regards
gerhard


Top
 Profile  
 
 Post subject: Re: Periph Reset
PostPosted: Fri Jun 26, 2009 4:41 pm 
Offline

Joined: Mon Oct 27, 2008 2:25 pm
Posts: 13
Thanks!

The problem is that it's not a classic design of a bootloader. so i must choose one of the above before jump to other section (IMAGE):
1. periph reset. (easy but dangerous).
2. clean all the used peripherals. (we may not close all peripherals)

anyway, i chose the first one, and i wanted to share the results and ask one more question:
Because the reset changes the master clock to slow clock, we must be aware to that, so i changed it by myself before. also i added some nops after the reset (i tried to run a for loop after the reset, but the index init was totaly wrong because of the reset).
so my question is what else do you think i need to do before/after the reset? also what do you think i need to do before jumping to the IMAGE (in addition to the peiph reset), maybe disable interrupts? i think the periph reset does it... do u have any additional information about this reset?

Thanks a lot,
Dan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron