User's Guide
3.4 USING HALL SWITCH AS EXTERNAL FUNCTION CONTROL
The Module adopts TI Hall switch drv5032, which can switch MCU I/O pin high/low status and
power ON/OFF function with magnet.
Table 3-7 Hall switches control functions
3.5 PIN MAPPING BETWEEN MCU AND DEBUG PIN
ATMEL-ICE is used to edit, debug and burn firmware. Please refer to Figure 3-1 to link the
Debug pins and ATMEL-ICE with cable when developing firmware.
13
Hall switch Type Function
Hall Switch-1 IN
After feed in 3.3~5V DC battery power to the pin V_IN and (1) place a
magnet on Hall Switch-1 or (2) pull up pin 3V3_EN_1 to VIH, pin
VCC_P3V3 will output 3.3V DC power.
Hall Switch-2 IN
The user can place a magnet on the switch to modify the high/low
status of MCU pin PB07 for peripherals control.
Hall Switch-3 IN
The user can place a magnet on the switch to modify the high/low
status of MCU pin PA02 for peripherals control.
Hall Switch-4 IN
The user can place a magnet on the switch to modify the high/low
status of MCU pin PA03 for peripherals control.
Hall Switch-5 IN
The user can place a magnet on the switch to modify the high/low
status of MCU pin PB04 for peripherals control.
Figure 3-1 Debug pin mapping