Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length



Pages: [1]
  Print  
Author Topic: GPIO state initialization while booting up  (Read 732 times)
69A21
Newbie
*
Posts: 1


View Profile
« on: August 17, 2009, 09:31:59 AM »

Hello,

I would like to know if there is any way to control the state of GPIO pins while waiting for the system to load the Micro Framework OS.
At power up it takes up to 10 seconds for the device to start running my application, and apparently GPIO pins are in an undefined state during this time (actually we measured their logical level on the hardware and it results "almost" high) causing annoying behaviours, such as ringing the buzzer when it should stay quite....

Sorry if it is a silly question but any help is really appreciated.

Thanks!
Logged
SupportAdmin
Administrator
Hero Member
*****
Posts: 5527



View Profile WWW
« Reply #1 on: August 17, 2009, 11:07:35 AM »

The pins are inputs with weak pull up resistor on power up. You can't change the default state of the pins
Logged
Marco
Newbie
*
Posts: 23


View Profile
« Reply #2 on: August 19, 2009, 10:10:11 AM »


I think this is a problem for many applications...
Really no way to tell MF what's the desired default state for all GPIO of the system ?
Could be a user parameter that MF can read and set at system reset...

Marco
Logged
SupportAdmin
Administrator
Hero Member
*****
Posts: 5527



View Profile WWW
« Reply #3 on: August 19, 2009, 10:37:55 AM »

Can you give us an example where this is a problem? Even the processor itself boots with pins in a default state and there is time to set them to the desired state. Will be much faster than few seconds obviously.
Logged
dcreel
Full Member
***
Posts: 110


View Profile
« Reply #4 on: August 22, 2009, 10:47:18 AM »

We managed this with external pull-up/-down resistors.  This is a normal thing for any embedded system, no matter what processor.
Logged
Pages: [1]
  Print  
 
Jump to: