- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm looking at using the following GPIOs in my design:
SPI_0_CLK/GPIO_25 (function 3)
SPI_0_MOSI/GPIO_26 (function 3)
SPI_0_MISO/GPIO_24 (function 3)
SPI_0_CS/GPIO_27 (function 3)
PWM_3/GPIO_21 (function 3)
PWM_2/GPIO_20 (function 3)
PWM_4/GPIO_22 (function 3)
GPIO_10
GPIO_16
PWM_5/GPIO_23 (function 3)
GPIO_14
PWM_1/GPIO_19 (function 3)
PWM_0/GPIO_18 (function 3)
GPIO_12
Are there any special problems with any of these? Can they
all be used as an interrupt trigger?
Also, is there anything in the Power Management Unit that monitors
the voltage of VBAT?
Thanks for your help.
Nyles
Solved! Go to Solution.
- Labels:
-
GPIO
-
Interrupts
-
Wireless MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are planning to use all of the pins as GPIOs, you have to initialize them based on the pinmux table provided in the schematic. If configured as gpio, the irqs are listed in the following location
43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/gpio_irq.h
An example usage of the API is,
wiced_gpio_input_irq_enable(WICED_BUTTON1, IRQ_TRIGGER_FALLING_EDGE, button1_isr, NULL );
You can check out the supported interrupts for 4390x based platform in the following directory.
43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/platform_isr_interface.h
VBAT is an input to the PMU core which is being used to drive the supply of the CBUCK stage. You can refer to the section 2.2 of CYW43907 Data Sheet (2.4/5GHz, 802.11b/g/n with Embedded ARM Cortex-R4 Application Processor) for typical VBAT levels.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are planning to use all of the pins as GPIOs, you have to initialize them based on the pinmux table provided in the schematic. If configured as gpio, the irqs are listed in the following location
43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/gpio_irq.h
An example usage of the API is,
wiced_gpio_input_irq_enable(WICED_BUTTON1, IRQ_TRIGGER_FALLING_EDGE, button1_isr, NULL );
You can check out the supported interrupts for 4390x based platform in the following directory.
43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/platform_isr_interface.h
VBAT is an input to the PMU core which is being used to drive the supply of the CBUCK stage. You can refer to the section 2.2 of CYW43907 Data Sheet (2.4/5GHz, 802.11b/g/n with Embedded ARM Cortex-R4 Application Processor) for typical VBAT levels.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! I'll try the GPIO stuff out - I was already aware of the function
of the VBAT pin, I'm wondering if there's anything in the power management
module that measures the battery voltage.
Cheers,
Nyles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, there is nothing in the power management module which measures the VBAT voltage; hence you can't raise an interrupt from that based on battery level.