Skip to content

Commit a3f6f40

Browse files
committed
MPAE-6022: Adding MPLAB X project, Readme and meta data
1 parent d7ab4b5 commit a3f6f40

File tree

6 files changed

+693
-45
lines changed

6 files changed

+693
-45
lines changed

.main-meta/main.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,22 @@
55
"metaDataVersion": "1.1.0",
66
"name": "com.microchip.mcu8.mplabx.project.avr128db48-opamp-gain-and-offset-calibration-mplab",
77
"version": "1.0.0",
8-
"displayName": "AVR128DB48 opamp gain and offset calibration mplab",
8+
"displayName": "Gain and Offset Calibration of the Analog Signal Conditioning (OPAMP) Peripheral",
99
"projectName": "avr128db48-opamp-gain-and-offset-calibration-mplab",
10-
"shortDescription": "",
10+
"shortDescription": "Gain and Offset calibration of the Analog Signal Conditioning (OPAMP) Peripheral configured as a Programmable Gain Amplifier (PGA)",
1111
"ide": {
1212
"name": "MPLABX",
13-
"semverRange": ""
13+
"semverRange": ">=5.40"
1414
},
1515
"compiler": [
1616
{
1717
"name": "XC8",
18-
"semverRange": ""
18+
"semverRange": "^2.20"
1919
}
2020
],
2121
"dfp": {
22-
"name": "",
23-
"semverRange": ""
24-
},
25-
"configurator": {
26-
"name": "",
27-
"semverRange": ""
22+
"name": "AVR-Dx_DFP",
23+
"semverRange": ">=1.4.75"
2824
},
2925
"device": {
3026
"metaDataVersion": "1.0.0",
@@ -36,25 +32,29 @@
3632
"versionRange": "*"
3733
}
3834
},
39-
"author": "",
35+
"author": "Microchip",
4036
"subcategories": [
4137
"",
4238
[
43-
"Peripherals",
44-
""
39+
"Device Family", "AVR DB"
4540
],
4641
[
47-
"Peripherals",
48-
""
42+
"Development Board", "AVR128DB48 Curiosity Nano"
4943
]
5044
],
5145
"peripherals": [
52-
"",
53-
""
46+
"OPAMP", "DAC", "VREF", "ADC"
5447
],
5548
"keywords": [
56-
"",
57-
""
49+
"Analog Signal Conditioning",
50+
"Operational Amplifier",
51+
"Op Amp",
52+
"Resistor Ladder",
53+
"Amplifier",
54+
"PGA",
55+
"Gain",
56+
"Offset",
57+
"Calibration"
5858
],
5959
"additionalData": {
6060
"longDescription": {

README.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
1-
<!-- Please do not change this logo with link -->
2-
[![MCHP](images/microchip.png)](https://www.microchip.com)
1+
<!-- Please do not change this html logo with link -->
2+
<a href="https://www.microchip.com" rel="nofollow"><img src="images/microchip.png" alt="MCHP" width="300"/></a>
33

4-
# Update the title for avr128db48-opamp-gain-and-offset-calibration-mplab here
4+
# AVR128DB48 Gain and Offset Calibration of the Analog Signal Conditioning (OPAMP) Peripheral
55

6-
<!-- This is where the introduction to the example goes, including mentioning the peripherals used -->
6+
A new feature introduced in the AVR® DB MCU is the Analog Signal Conditioning (OPAMP) peripheral. The OPAMP peripheral can be configured as a PGA, in this example the internal DAC and ADC are used to calibrate gain and offset for the PGA. For more information on the calibration procedure, see the application note.
77

88
## Related Documentation
99

10-
<!-- Any information about an application note or tech brief can be linked here. Use unbreakable links!
11-
In addition a link to the device family landing page and relevant peripheral pages as well:
12-
- [AN3381 - Brushless DC Fan Speed Control Using Temperature Input and Tachometer Feedback](https://microchip.com/00003381/)
13-
- [PIC18F-Q10 Family Product Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic18f-q10-product-family) -->
10+
* ANxxxx - Gain and Offset Calibration of the Analog Signal Conditioning (OPAMP) Peripheral
11+
* [AVR128DB48 device page](https://www.microchip.com/wwwproducts/en/AVR128DB48)
1412

1513
## Software Used
16-
17-
<!-- All software used in this example must be listed here. Use unbreakable links!
18-
- MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide)
19-
- MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers)
20-
- MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
21-
- MPLAB® Code Configurator (MCC) Device Libraries PIC10 / PIC12 / PIC16 / PIC18 MCUs [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
22-
- Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) -->
14+
* [MPLAB® X](https://www.microchip.com/mplab/mplab-x-ide) v5.40 or later
15+
* [MPLAB® XC8 Compiler](https://www.microchip.com/mplab/compilers) v2.20 or later
16+
* MPLABX AVR-Dx_DFP version 1.4.75 or later
17+
* For the Studio version of this project, please go to [this repository](https://github.com/microchip-pic-avr-examples/avr128db48-opamp-gain-and-offset-calibration)
2318

2419
## Hardware Used
2520

26-
<!-- All hardware used in this example must be listed here. Use unbreakable links!
27-
- PIC18F47Q10 Curiosity Nano [(DM182029)](https://www.microchip.com/Developmenttools/ProductDetails/DM182029)
28-
- Curiosity Nano Base for Click boards™ [(AC164162)](https://www.microchip.com/Developmenttools/ProductDetails/AC164162)
29-
- POT Click board™ [(MIKROE-3402)](https://www.mikroe.com/pot-click) -->
21+
* [AVR128DB48 Curiosity Nano](https://www.microchip.com/wwwproducts/en/AVR128DB48)
3022

3123
## Setup
3224

33-
<!-- Explain how to connect hardware and set up software. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
25+
* No external hardware setup needed
3426

3527
## Operation
36-
37-
<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
38-
39-
## Summary
40-
41-
<!-- Summarize what the example has shown -->
28+
* Connect the AVR128DB48 Curiosity Nano to a computer using a USB cable
29+
* Download the zip file or clone the example to get the source code
30+
* Open `avr128db48-opamp-gain-and-offset-calibration.X` in MPLAB
31+
* Press the make and program button to program the device
32+
* If no tool has been chosen, a window will open, select the AVR128DB48 Curiosity Nano. Tool can also be choosen in the project settings.
33+
34+
## Conclusion
35+
After going through this example you should be able to calibrate the gain and offset of the OPAMP configured as a PGA.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#
2+
# There exist several targets which are by default empty and which can be
3+
# used for execution of your targets. These targets are usually executed
4+
# before and after some main targets. They are:
5+
#
6+
# .build-pre: called before 'build' target
7+
# .build-post: called after 'build' target
8+
# .clean-pre: called before 'clean' target
9+
# .clean-post: called after 'clean' target
10+
# .clobber-pre: called before 'clobber' target
11+
# .clobber-post: called after 'clobber' target
12+
# .all-pre: called before 'all' target
13+
# .all-post: called after 'all' target
14+
# .help-pre: called before 'help' target
15+
# .help-post: called after 'help' target
16+
#
17+
# Targets beginning with '.' are not intended to be called on their own.
18+
#
19+
# Main targets can be executed directly, and they are:
20+
#
21+
# build build a specific configuration
22+
# clean remove built files from a configuration
23+
# clobber remove all built files
24+
# all build all configurations
25+
# help print help mesage
26+
#
27+
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
28+
# .help-impl are implemented in nbproject/makefile-impl.mk.
29+
#
30+
# Available make variables:
31+
#
32+
# CND_BASEDIR base directory for relative paths
33+
# CND_DISTDIR default top distribution directory (build artifacts)
34+
# CND_BUILDDIR default top build directory (object files, ...)
35+
# CONF name of current configuration
36+
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
37+
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
38+
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
39+
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
40+
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
41+
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
42+
#
43+
# NOCDDL
44+
45+
46+
# Environment
47+
MKDIR=mkdir
48+
CP=cp
49+
CCADMIN=CCadmin
50+
RANLIB=ranlib
51+
52+
53+
# build
54+
build: .build-post
55+
56+
.build-pre:
57+
# Add your pre 'build' code here...
58+
59+
.build-post: .build-impl
60+
# Add your post 'build' code here...
61+
62+
63+
# clean
64+
clean: .clean-post
65+
66+
.clean-pre:
67+
# Add your pre 'clean' code here...
68+
# WARNING: the IDE does not call this target since it takes a long time to
69+
# simply run make. Instead, the IDE removes the configuration directories
70+
# under build and dist directly without calling make.
71+
# This target is left here so people can do a clean when running a clean
72+
# outside the IDE.
73+
74+
.clean-post: .clean-impl
75+
# Add your post 'clean' code here...
76+
77+
78+
# clobber
79+
clobber: .clobber-post
80+
81+
.clobber-pre:
82+
# Add your pre 'clobber' code here...
83+
84+
.clobber-post: .clobber-impl
85+
# Add your post 'clobber' code here...
86+
87+
88+
# all
89+
all: .all-post
90+
91+
.all-pre:
92+
# Add your pre 'all' code here...
93+
94+
.all-post: .all-impl
95+
# Add your post 'all' code here...
96+
97+
98+
# help
99+
help: .help-post
100+
101+
.help-pre:
102+
# Add your pre 'help' code here...
103+
104+
.help-post: .help-impl
105+
# Add your post 'help' code here...
106+
107+
108+
109+
# include project implementation makefile
110+
include nbproject/Makefile-impl.mk
111+
112+
# include project make variables
113+
include nbproject/Makefile-variables.mk

0 commit comments

Comments
 (0)