EasyManua.ls Logo

Microchip Technology RN4870 - Page 30

Microchip Technology RN4870
65 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RN4870/71 Bluetooth
®
Low Energy Module User’s Guide
DS50002466A-page 30 2016 Microchip Technology Inc.
The second parameter is used to enable/disable PWM and clock source selection.
Refer to Tab le 2- 12 for details.
The third and fourth parameters are 16-bit hex values, defining maximum and compare
values, respectively.
RN4870 follows standard PWM operations. The clock source decides the unit time
used in maximum and compare values. Maximum value multiplying time unit is the
PWM period; compare value multiplying time unit is the PWM width which is output high
within the period. The basic concept of PWM operations is shown in Figure 2-1.
FIGURE 2-1: BASIC CONCEPT OF PWM OPERATION
2.6.9
&,<MAC>
Command & generates and assigns a random address to the local device. It accepts
one input parameter which is a 6-byte random address. This random address can be a
static or a private address. For format of random address, please refer to Bluetooth
Core Specification version 4.1, Vol 3, Part C, Section 10.8. If the device is currently
advertising, the advertising address immediately changes to the assigned random
address.
TABLE 2-12: PWM OPERATION SELECTION
Value Description Time Unit
0 Disable PWM. Third and fourth parameters ignored
1 Enable PWM with 32 kHz clock 31.25 µs
2 Enable PWM with 1024 kHz clock 977 ns
3 Enable PWM with 16 MHz clock 62.5 ns
Example: [,1,3,00A0,0050 // Use PWM on P22, use 16 MHz clock
// max is 10 ms, compare is 5 ms
Response: AOK
ERR
// Success
// Syntax error, invalid parameter, RN4870/71, or
// associated pin has pre-assigned system
// function
Example: &,DF1234567890 // Set random address to be DF1234567890
Response: AOK
ERR
// Success
// Syntax error or invalid parameter

Other manuals for Microchip Technology RN4870

Related product manuals