![Laird BTM510 Скачать руководство пользователя страница 77](http://html.mh-extra.com/html/laird/btm510/btm510_user-manual_670440077.webp)
77
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth
®
Multimedia Module
3. Mic Input Gain
A microphone preamplifier which adds extra 24dB to input gain, is controlled by S-Register 415.
The microphone amplifier is enabled by ATS415=1 and disabled by ATS415=0. Refer to Table 3.43.
The first amplifier in Figure 3.28 represents the microphone preamplifier and the second amplifier
represents the analogue component of the programmable audio input gain (refer to Table 3.40).
Figure 3.28: ADC Analogue Amplifier Block Diagram
4. LED Control
The module provides two dedicated output pins for LEDs (LED0, LED1). The following modes are
supported: LED_OFF, LED_ON, LED_PWM and LED_PULSE.
In LED_PWM mode, the parameters “Duty Cycle” an “PWM Period” can be specified via S-Registers.
This enables either to dim the brightness of an LED (PWM Period=0) or to specify blinking with defined
on-time in a defined period (PWM Period > blinking visible for the eye).
In LED_PULSE mode, the brightness of an LED is modulated. Modulation speed is defined by parameter
“Pulse Rate” and maximum brightness is defined by parameter “Duty Cycle”.
Task
AT-Command / SRegister
Comment
Set LED 0 mode
S335 [0..3], default=0
Mode:
0 = LED_OFF
1 = LED_ON
2 = LED_PWM
3 = LED_PULSE
Set LED 1 mode
S340 [0..3], default=0
Set LED 0 Duty Cycle
S336 [0..4095], default = 2048 referenced if LED mode =
LED_PWM or LED_PULSE
Set LED 1 Duty Cycle
S341 [0..4095], default = 2048
Set LED 0 PWM Period
S337 [0..15], default = 0
referenced if LED mode =
LED_PWM
Set LED 1 PWM Period
S342 [0..15], default = 0
Set LED 0 Pulse Rate
S338 [0..15], default = 0
referenced if LED mode =
LED_PULSE
Set LED 1 Pulse Rate
S343 [0..15], default = 0
Table 3.42: LED S-Registers
5. Hardware Units - S Registers
Table 3.43 below gives an overview on S Registers for hardware units except GPIO. For GPIO Registers
please refer to Table 3.45.
AT COMMAND SET
REFERENCE