You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
4
4
## Sensor Board Battery Measurement Using the PIC16F18446 Microcontroller
5
5
6
-
The PIC16F184xx family has a new Analog-to-Digital Converter with Computation (ADCC) with a 12-bit resolution. This project shows how the PIC can internally measure its Vdd using the ADCC and FVR.
6
+
The PIC16F184xx family has a new Analog-to-Digital Converter with Computation (ADCC) with a 12-bit resolution. This project shows how the PIC can internally measure its V<sub>DD</sub> using the ADCC and Fixed Voltage Reference.
7
7
8
-
This example showcases the PIC16F18446 Sensor Board. Battery (Vdd) level measurement is performed while the display is turned on. The percentage level of the remaining charge in the batteries is shown as a battery icon with proportional filing in the top-right corner of the display. Additionally, the battery voltage in Volts and percentage graph are displayed.
8
+
This example showcases the PIC16F18446 Sensor Board. Battery (V<sub>DD</sub>) level is measured while the display is turned on. The batteries charge percentage is shown as a battery icon with proportional filing in the top-right corner of the display. Additionally, the battery voltage in Volts and percentage graph are displayed.
9
9
10
10
## Related Documentation
11
11
-[PIC16F18446 Product Family Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic16f18446)
12
-
-[PIC16F18446 datasheet](http://ww1.microchip.com/downloads/en/DeviceDoc/40001985B.pdf) for more information or specifications.
12
+
-[PIC16F18446 Data sheet](http://ww1.microchip.com/downloads/en/DeviceDoc/40001985B.pdf) for more information or specifications.
13
13
14
14
15
15
## Software Used
@@ -23,7 +23,7 @@ This example showcases the PIC16F18446 Sensor Board. Battery (Vdd) level measure
23
23
24
24
## Operation
25
25
26
-
To program the microcontroller with this MPLAB® X project, follow the steps provided in the [How to Program the Microcontroller](#how-to-program-the-microcontroller) chapter.<br><br>
26
+
To program the microcontroller (MCU) with this MPLAB® X project, follow the steps provided in the [How to Program the Microcontroller](#how-to-program-the-microcontroller) chapter.<br><br>
27
27
28
28
## Setup
29
29
@@ -68,7 +68,7 @@ The following configurations must be made for this project:
68
68
- FVR buffer gain to ADC: 1x
69
69
- FVR buffer gain to other peripherals: 1x
70
70
71
-
<br><imgsrc="images/FVR.png"width="600">
71
+
<br><imgsrc="images/FVR.PNG"width="600">
72
72
73
73
- ADCC:
74
74
- Enable ADC: Yes
@@ -103,7 +103,7 @@ The following configurations must be made for this project:
103
103
104
104
## Demo
105
105
106
-
To get the Vdd voltage, ADCC is used to measure the FVR, which is configured to 1.024V, with Vdd as positive reference. Then the Vdd is calculated using this formula: Vdd = 1.024V * 4096 / ADC_Reading.
106
+
To get the V<sub>DD</sub> voltage, ADCC is used to measure the FVR, which is configured to 1.024V, with V<sub>DD</sub> as positive reference. Then the V<sub>DD</sub> is calculated using this formula: V<sub>DD</sub> = 1.024V * 4096 / ADC_Reading.
107
107
108
108
<br><imgsrc="images/display.png"width="600">
109
109
@@ -113,7 +113,7 @@ This code example shows how to use the Battery level measurement feature on the
113
113
114
114
## How to Program the Microcontroller
115
115
116
-
This chapter demonstrates how to use the MPLAB X IDE to program a PIC® device with an `Example_Project.X`. This applies to other projects.
116
+
This chapter demonstrates how to use the MPLAB® X IDE to program a PIC® device with an `Example_Project.X`. This applies to other projects.
0 commit comments