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  [ 5 posts ] 
Author Message
 Post subject: Brownout Detection
PostPosted: Fri Jun 09, 2006 4:12 pm 
Offline

Joined: Fri Mar 24, 2006 5:33 pm
Posts: 6
Hello,

I want to use the Brownout Detection. Therefore I have to set the GPNVM Bits 0 and 1.

I tried
Code:
AT91F_MC_EFC_PerformCmd(AT91C_BASE_MC, 0x5A000000 | AT91C_MC_GPNVM0 | AT91C_MC_GPNVM1 | AT91C_MC_FCMD_SET_GP_NVM);

but this seems to be no good idea, because the system hangs up...

What is the correct way to set a GPNVM Bit???
Sorry but I did not find anything about it in this forum.

Thanks Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 4:57 pm 
Offline

Joined: Mon Nov 08, 2004 4:39 pm
Posts: 120
Location: Raleigh, NC
Look here:
http://www.at91.com/www/phpBB2_mirror/v ... hp4?t=1834

The project has as the first function the setup for Enable_Brown_Out_Detection.

Good Luck!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 19, 2007 5:29 pm 
Offline

Joined: Wed Sep 27, 2006 9:47 pm
Posts: 53
Location: Mounds View, MN
Anyone have a current link to the project mentioned above? I am having the same problem where whenever I write to the EFC to set or clear a GPNVM bit the system hangs. The bit is set or cleared successfully, but why does the system hang? I have the function running from SRAM and I disable interrupts before giving the commands. I am basically using the same routine as the Lock/Unlock for the EFC, except I am using the GPNVM commands (rather than Lock or Unlock).

Thanks,
Darrik


Top
 Profile  
 
 Post subject: Re: Brownout Detection
PostPosted: Sun Jul 05, 2009 8:38 pm 
Offline

Joined: Sat Jul 04, 2009 3:50 pm
Posts: 1
Was there ever an answer to this? I am experiencing similar problems. Every time I try to set GPNVM0, the micro resets. The set operation is running in a RAM function, with interrupts disabled and I stay in the function until FRDY flags the operation is over - only it never seems to complete, and the micro simply resets. FMCN is correct and set up - not sure where else to look for this.


Top
 Profile  
 
 Post subject: Re: Brownout Detection
PostPosted: Tue Jul 07, 2009 8:44 am 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
hello
enclosed you can find an old example project where this problem is handled. look at module flash.c

regards
gerhard


Attachments:
AT91SAM7S64-BasicFlash-IAR4_30A-1_21.zip [367.32 KiB]
Downloaded 165 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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: