Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I use bcm20732s module, I want to use its low power mode, the scenario is like this:

  • If 20732s is out of connection, it should go into sleep mode, not deep sleep mode. I want to register a GPIO interrupt: if rising edge, put module into sleep mode, if falling edge, wake up the module. So the question:

               Can pin 39 of bcm20732s, GPIO: P13, wake up module from sleep mode by interrupt?

               If module is waken, is there any callback function to tell firmware workflow that the process of wakeup is successfully?

               How can I enable GPIO: P13’s interrupt function?

               How can I register a GPIO interrupt routine?

               Which function can make module goto sleep?

  • If 20732s is connected, how can I make it sleep? Does it lose connection if sleep? Or, it can maintain the connection automatically by stack?

Is there any sample code for low power application?


0 Likes
1 Solution

# Master control for sleep enable/disable

ENTRY "Sleep Mode Configuration"

{

    # Internal name for the sleep mode. This is the only valid sleep mode for 2073x.

    "Sleep mode" = "HIDD"

    # Master sleep control. 1 = enable sleep; 0 = never allow sleep.

    "Sleep enable" = 1

}

# Timed wake from deep sleep

ENTRY "Device LPM Configuration"

{

   "Disconnect Low Power Mode" = "HID_OFF"

    # Time in milliseconds to automatically wake from hid-off. 0 = don't wake.

    # Will be rounded to 64mS multiples when clock source is 128KHz and 256mS

    # when clock source is 32KHz external crystal.

   "wakeFromHidoffInMs" = 0

   # Reference clock source to use; TIMED_WAKE_CLK_SRC_128KHZ = internal 128KHz LPO

   # TIMED_WAKE_CLK_SRC_32KHZ = external 32KHz LPO if available.

   "wakeFromHidoffRefClk" = "TIMED_WAKE_CLK_SRC_128KHZ"      

}

# Master control for deep sleep

ENTRY "BLE App Hid-off config"

{

     # Only valid configuration.

    "Hid-off allowed" = 0x17

}

View solution in original post

9 Replies