Wiring of switches on BBB

83 views
Skip to first unread message

Satz Klauer

unread,
Dec 7, 2013, 7:18:21 AM12/7/13
to beagl...@googlegroups.com
Hi,

when I'm not wrong the boot-switch of the BBB is connected to GPIO0[22] so that it could be checked out of software using this input. Reset is connected to the reset line...and the power switch? I could not find it, so my question: can it be checked via software too?

Thanks!

Gerald Coley

unread,
Dec 7, 2013, 2:48:33 PM12/7/13
to beagl...@googlegroups.com
Power switch is connected to the PMIC. It generates and interrupt to the processor. So it can be detected by SW.

Gerald


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

tiziano de togni

unread,
Dec 8, 2013, 6:26:22 AM12/8/13
to beagl...@googlegroups.com
Il 07/12/2013 20:48, Gerald Coley ha scritto:
> Power switch is connected to the PMIC. It generates and interrupt to
> the processor. So it can be detected by SW.

thanks Gerald, but could you please also tell me how it can be done?
Is it possible to make it using simple bash commands?

regards
--
tiziano de togni
______________________________________
http://tizziano.altervista.org/

Gerald Coley

unread,
Dec 8, 2013, 2:38:45 PM12/8/13
to beagl...@googlegroups.com
I am the HW guy. I will let a SW person come with some idea on how to do it.

Gerald



--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

Satz Klauer

unread,
Dec 9, 2013, 6:45:55 AM12/9/13
to beagl...@googlegroups.com
@Gerald: my first assumption that the boot-switch is connected to
GPIO0[22] does not seem to be correct, I can't read this input from my
software. So...is it connected to some other GPIO or do I need to
search for a bug in my software?
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/SlMJX-plhUY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Gerald Coley

unread,
Dec 9, 2013, 8:49:57 AM12/9/13
to beagl...@googlegroups.com
That pin is one of the LCD pins. GPIO pin is not available because the LCD pin is connected to the physical pin instead. You will need to disable HDMi in order to access that pin as a GPIO pin.

The schematic is correct.

Gerald

Satz Klauer

unread,
Dec 9, 2013, 2:16:53 PM12/9/13
to beagl...@googlegroups.com
I'm running a bare-metal application and do not use HDMI/LCD pin.
But...is my interpretation correct that GPIO0[22] is the pin for that
button? I'm really not sure at the moment...

tiziano de togni

unread,
Dec 9, 2013, 3:27:17 PM12/9/13
to beagl...@googlegroups.com
Il 09/12/2013 20:16, Satz Klauer ha scritto:
> I'm running a bare-metal application and do not use HDMI/LCD pin.
> But...is my interpretation correct that GPIO0[22] is the pin for that
> button? I'm really not sure at the moment...
>

You are right, your assumpion was not correct, carefully and slowly
reading the BBB_System_Reference_Manual_rev_A52_1701090.pdf, my guess
falls on:

Port8 pin 43 -> GPIO2_8

but, as Gerald suggests, this doesn't solve the problem, this switch, as
the other two (power&reset) are used by the system and there should be
certainly a way to free them for another purpose, but we don't know it.

By now, it's safer getting a switch and find a free pin to connect it to.

Gerald Coley

unread,
Dec 9, 2013, 3:27:44 PM12/9/13
to beagl...@googlegroups.com
It is GPIO2_8. Not sure how Linux handles this these days, but this would be the 72nd GPIO pin

Gerald

Satz Klauer

unread,
Dec 10, 2013, 1:20:58 AM12/10/13
to beagl...@googlegroups.com
Great, thanks! Since I'm doing bare-metal programmign without any
operating system it is not a big deal to reconfigure the pin MUX and
use it as GPIO. LCD is not needed in my case so it is not a problem
when this functionality got lost.
Reply all
Reply to author
Forward
0 new messages