![Maxim Integrated MAX32660 Скачать руководство пользователя страница 63](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484063.webp)
MAX32660 User Guide
Maxim Integrated
Page 63 of 195
Enable low power mode wakeup (
SLEEP
,
DEEPSLEEP
and
BACKUP
) from an external GPIO event by completing the following
steps:
1.
Set the polarity (rising or falling edge) by writing to the
[pin]
field. The wakeup functionality uses
rising and falling edge detection circuitry that operates asynchronously and does not require an active clock. Dual-
edge mode is also an option to accomplish edge detection wakeup.
2.
Clear pending interrupt flags by writing 0xFF to the
register.
3.
Activate the GPIO wakeup function by writing 1 to
[pin]
.
4.
Configure the power manager to use the GPIO as a wakeup source by writing to the appropriate Global Control
register (GCR).
6.5
GPIO Registers
The GPIO0 base peripheral address is 0x4000 8000. Refer to
Table 3-1: APB Peripheral Base Address Map
for the addresses
of all APB mapped peripherals.
Table 6-8: GPIO Port 0 Registers
Offset
Register Name
Access
Description
[0x0000]
R/W
I/O and Alternate Function 1 Select Register
[0x000C]
R/W
Output Enable Register
[0x0018]
R/W
Output Register
[0x0024]
RO
Input Register
[0x0028]
R/W
Interrupt Mode Register
[0x002C]
R/W
Interrupt Polarity Select Register
[0x0034]
R/W
Interrupt Enable Register
[0x0040]
R/W1C
Interrupt Flag Register
[0x004C]
R/W
Wakeup Enable Register
[0x005C]
R/W
Dual Edge Select Interrupt Register
[0x0060]
R/W
Input Pullup/Pulldown Select Register
[0x0068]
R/W
Alternate Function 2/3 Select Register
[0x00A8]
R/W
Input Hysteresis Enable Register
[0x00AC]
R/W
Slew Rate Select Register
[0x00B0]
R/W
Drive Strength Select 0 Register
[0x00B4]
R/W
Drive Strength Select 1 Register
[0x00B8]
R/W
Pullup/Pulldown Enable Register
6.5.1
GPIO Register Details
Table 6-9: GPIO Alternate Function 0 Select Register
GPIO Alternate Function 0 Select Register
GPIO0_AF0_SEL
[0x0000]
Bits
Name
Access
Reset Description
31:14
-
R/W
1
Reserved for Future Use
Do not modify this field.
Содержание MAX32660
Страница 4: ...MAX32660 User Guide Maxim Integrated Page 4 of 195 8 UART 84 9 Real Time Clock RTC 96 10 Timers 105...
Страница 7: ...MAX32660 User Guide Maxim Integrated Page 7 of 195 15 Trademarks 195 16 Revision History 195...
Страница 14: ...MAX32660 User Guide Maxim Integrated Page 14 of 195 Figure 2 1 MAX32660 High Level Block Diagram...