Input And Output; Pwm - Ebyte E104-BT5032A/B User Manual

Nrf52832 ble5.0 low power ble to serial module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
below.
Pin(P0.xx)
2
3
4
5
6
7
25
26
Note:
1. When IO and PWM are not used, it is recommended to turn off the corresponding function, otherwise it will affect
the low power performance of the module.
2. If GPIO is currently set. Before changing the function, the current function need to be closed.
3. PWM reset frequency is required. Close the current PWM before resetting it.
4. When setting GPIO, all are ordinary IO. No pull-up, no pull-down
6.9.1

Input and output

Input
1.
Command AT+PINCONF=2,1, set pin 2 as input;
2.
Command AT+ PINGET=2, set pin 2 as communication level;
Module returns +OK=0, means pin 2 is low communication level.
Output
1.
Command AT+PINCONF=3,2, Set pin 3 as output;
2.
Command AT+PINSET=3,1, set pin 3 as high communication level.
Restore to default state( turn off IO function)
1.
Command AT+PINCONF=3,0.
6.9.2

PWM

1.
Command AT+PWMCONF=2,100000,50. Set pin 2 as PWM,and frequency is 100KHZ,duty cycle is 50%.
2.
Command AT+ PWMDUTYSET=2,10, set pin 2 as PWM and duty cycle is 10%.
3.
Command AT+PWMUNINIT=2, turn off PWM.
Copyright ©2012–2024,Chengdu Ebyte Electronic Technology Co., Ltd
IO
Available
Available
Available
Available
Available
Available
Available
Available
GPIO function pin
E104-BT5032A User Manual
PWM
Available
Available
Available
Available
Available
Available
Available
Available
20

Advertisement

Table of Contents
loading

Table of Contents