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  [ 4 posts ] 
Author Message
 Post subject: PIO at startup
PostPosted: Tue Jul 12, 2011 9:15 am 
Offline

Joined: Wed Jan 05, 2011 10:10 am
Posts: 11
Hi,
I use ATSAM7L128.
I use a PIOC output to drive a hardware item. I need this output to be low until software is initialized.
So I configure my output with :
#define PIN_CMDE_CHARGEcfg {1 << 15, AT91C_BASE_PIOC, AT91C_ID_PIOC, PIO_OUTPUT_0, PIO_DEFAULT}
I connect a 500kohm resistor to ground with PIO output, then I use a scope to look at signals and at startup, I see :
when power is up, output is low for 100ms, then high for 25ms, then low again, then my software begins to work.
I can't avoid (even with a main program which do nothing) the output to go high !!!!!
Have you an idea to help me ?
Thanks


Top
 Profile  
 
 Post subject: Re: PIO at startup
PostPosted: Tue Jul 12, 2011 11:36 am 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
hello,
there is no chance to change this behaviour.
after reset the internal pull-up is always active!

regards
gerhard


Top
 Profile  
 
 Post subject: Re: PIO at startup
PostPosted: Tue Jul 12, 2011 12:06 pm 
Offline

Joined: Wed Jan 05, 2011 10:10 am
Posts: 11
I have replaced the 400k resistor with a 10k resistor.
I notice now a small potential elevation of IO output (only 0.2V) which is ok for me.
So it works
Thanks


Top
 Profile  
 
 Post subject: Re: PIO at startup
PostPosted: Tue Jul 12, 2011 2:39 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
hello geroge,
your method works as long as the internal pull-up resistor isn't changing, but keep in mind the minimum and maximum values (see data sheet, dc characteristics, Pull-up Resistor).

regards
gerhard


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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: