Skip to content

Commit d4a014d

Browse files
Usha Gsaikprasad
authored andcommitted
MPAE-18367 Updated firmware and readme
1 parent 66543db commit d4a014d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2136
-3895
lines changed

.main-meta/main.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"metaDataVersion": "1.0.1",
2+
"metaDataVersion": "1.0.0",
33
"category": "com.microchip.ide.project",
44
"content": {
55
"metaDataVersion": "1.3.0",
66
"name": "com.microchip.mcu8.mplabx.project.pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc",
7-
"version": "1.0.0",
7+
"version": "1.0.1",
88
"displayName": "UART-I2C Bridge Implementation: I2C Client(Client-1) Implementation using PIC16F15244 Microcontroller",
99
"projectName": "pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc",
1010
"shortDescription": "This example demonstrates UART-I2C bridge implementation using PIC MCU. The PIC16F15244 MCU processes periodically acquired sensor data and also acts as a I2C client. Compatible PIC16F152xx family of MCUs are PIC16F15214, PIC16F15223, PIC16F15254, PIC16F15276.",
1111
"ide": {
1212
"name": "MPLAB X",
13-
"semverRange": ">=6.15.0"
13+
"semverRange": ">=6.20.0"
1414
},
1515
"compiler": [
1616
{
1717
"name": "XC8",
18-
"semverRange": "^2.45.0"
18+
"semverRange": "^2.50.0"
1919
}
2020
],
2121
"dfp": {
2222
"name": "PIC16F1xxxx_DFP",
23-
"semverRange": "^1.23.382"
23+
"semverRange": "^1.25.389"
2424
},
2525
"configurator": {
2626
"name": "MCC",
27-
"semverRange": ">=5.3.7"
27+
"semverRange": ">=5.7.1"
2828
},
2929
"device": {
3030
"metaDataVersion": "1.0.0",

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ The input commands and clients I2C address information has been displayed on the
3535

3636
## Software Used
3737

38-
- MPLAB® X IDE [6.15 or newer](http://www.microchip.com/mplab/mplab-x-ide)
39-
- MPLAB® XC8 [2.45 or newer](http://www.microchip.com/mplab/compilers)
40-
- MPLAB® Code Configurator (MCC) [5.3.7 or newer](https://www.microchip.com/mplab/mplab-code-configurator)
41-
- Microchip PIC16F1xxxx Series Device Support [1.23.382 or newer](https://packs.download.microchip.com/)
42-
- MCC Melody Core 2.6.3
38+
- MPLAB® X IDE [6.20 or newer](http://www.microchip.com/mplab/mplab-x-ide)
39+
- MPLAB® XC8 [2.50 or newer](http://www.microchip.com/mplab/compilers)
40+
- MPLAB® Code Configurator (MCC) [5.7.1 or newer](https://www.microchip.com/mplab/mplab-code-configurator)
41+
- Microchip PIC16F1xxxx Series Device Support [1.25.389 or newer](https://packs.download.microchip.com/)
4342
- MSSP MCC Melody Core 7.0.1
4443
- ADC MCC Melody Core 3.0.10
45-
- TMR0 MCC Melody Core 4.0.12
44+
- TMR0 MCC Melody Core 4.0.13
4645
- UART MCC Melody Core 1.10.0
4746

4847
## Hardware Used

pic16f15244-usart-i2c-bridge-client1-mplab-mcc.X/application.c renamed to pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc.X/application.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* File: application.c
3+
* Author: I51005
4+
*
5+
* Created on August 3, 2024, 2:38 PM
6+
*/
7+
18
#include "mcc_generated_files/system/system.h"
29
#include "mcc_generated_files/adc/adc.h"
310
#include "string.h"
@@ -44,7 +51,7 @@ void Application(void)
4451
}
4552
else
4653
{
47-
SLEEP();
54+
// SLEEP();
4855
}
4956
}
5057

@@ -109,7 +116,7 @@ void Sensor1_DataProcessing(void)
109116
* host device
110117
* @return void
111118
******************************************************************************/
112-
void SensorDataRegisterRead(uint8_t *sensorRevdData, uint8_t dataLength)
119+
void SensorDataRegisterRead(const uint8_t *sensorRevdData, uint8_t dataLength)
113120
{
114121
uint8_t index = 0;
115122

@@ -163,7 +170,8 @@ bool I2C_ClientInterruptHandler(i2c_client_transfer_event_t event)
163170
}
164171
else
165172
{
166-
I2C1_WriteByte(i2cWrData[i2cWrDataIndex++]);
173+
I2C1_WriteByte(i2cWrData[i2cWrDataIndex++]);
174+
printf("%d", i2cWrData[i2cWrDataIndex]);
167175
}
168176

169177
break;
@@ -194,3 +202,4 @@ void TimerInterruptHandler(void)
194202
/**
195203
End of File
196204
*/
205+

pic16f15244-usart-i2c-bridge-client1-mplab-mcc.X/application.h renamed to pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc.X/application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void I2C_ReadInterruptHandler(void);
8989
void TimerInterruptHandler(void);
9090
void Sensor1_DataProcessing(void);
9191
void EUSART1_SendString(const char *str);
92-
void SensorDataRegisterRead(uint8_t *sensorRevdData, uint8_t dataLength);
92+
void SensorDataRegisterRead(const uint8_t *sensorRevdData, uint8_t dataLength);
9393
bool I2C_ClientInterruptHandler(i2c_client_transfer_event_t event);
9494
#ifdef __cplusplus
9595
extern "C" {

pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc.X/defmplabxtrace.log

Whitespace-only changes.
Binary file not shown.

pic16f15244-usart-i2c-bridge-client1-mplab-mcc.X/main.c renamed to pic16f15244-uart-i2c-bridge-i2c-client1-mplab-mcc.X/main.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
*
88
* @brief This is the generated driver implementation file for the MAIN driver.
99
*
10-
* @version MAIN Driver Version 1.0.0
10+
* @version MAIN Driver Version 1.0.2
11+
*
12+
* @version Package Version: 3.1.2
1113
*/
1214

1315
/*
14-
© [2021] Microchip Technology Inc. and its subsidiaries.
16+
© [2024] Microchip Technology Inc. and its subsidiaries.
1517
1618
Subject to your compliance with these terms, you may use Microchip
1719
software and any derivatives exclusively with Microchip products.
@@ -40,7 +42,6 @@
4042
int main(void)
4143
{
4244
SYSTEM_Initialize();
43-
4445
// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts
4546
// If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts
4647
// Use the following macros to:
@@ -64,5 +65,5 @@ int main(void)
6465
while(1)
6566
{
6667
Application();
67-
}
68+
}
6869
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file has been autogenerated by MPLAB Code Configurator. Please do not edit this file.
2+
3+
manifest_file_version: 1.0.0
4+
project: pic16f15244-usart-i2c-bridge-client1-mplab-mcc
5+
creation_date: 2024-08-22T12:05:49.431+05:30[Asia/Calcutta]
6+
operating_system: Windows 10
7+
mcc_mode: IDE
8+
mcc_mode_version: v6.20
9+
device_name: PIC16F15244
10+
compiler: XC8 2.50
11+
mcc_version: 5.5.1
12+
mcc_core_version: 5.7.1
13+
content_manager_version: 5.0.1
14+
is_mcc_offline: false
15+
is_using_prerelease_versions: true
16+
mcc_content_registries: https://registry.npmjs.org/,https://artifacts.microchip.com/artifactory/api/npm/npm/
17+
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.7.1}
18+
packs: {name: PIC16F1xxxx_DFP, version: 1.26.395}
19+
modules:
20+
- {name: '@mchp-mcc/i2c-client-driver', type: MELODY, version: 2.0.4}
21+
- {name: '@mchp-mcc/main-manager', type: MELODY, version: 3.1.2}
22+
- {name: '@mchp-mcc/pic-8bit', type: MELODY, version: 5.28.3-test.1}
23+
- {name: '@mchp-mcc/pic16-configuration-bits-v2', type: MELODY, version: 4.1.3}
24+
- {name: '@mchp-mcc/pic16-pin-manager', type: MELODY, version: 3.6.1}
25+
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.8.0}
26+
- {name: '@mchp-mcc/scf-pic8-adc-v1', type: MELODY, version: 3.0.10}
27+
- {name: '@mchp-mcc/scf-pic8-eusart-v1', type: MELODY, version: 7.1.6}
28+
- {name: '@mchp-mcc/scf-pic8-interrupt-v2', type: MELODY, version: 5.2.11}
29+
- {name: '@mchp-mcc/scf-pic8-mssp-v1', type: MELODY, version: 7.0.1}
30+
- {name: '@mchp-mcc/scf-pic8-osc-v2', type: MELODY, version: 4.2.2}
31+
- {name: '@mchp-mcc/scf-pic8-tmr0-v1', type: MELODY, version: 4.0.13}
32+
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file has been autogenerated by MPLAB Code Configurator. Please do not edit this file.
2+
3+
manifest_file_version: 1.0.0
4+
project: pic16f15244-usart-i2c-bridge-client1-mplab-mcc
5+
creation_date: 2024-08-22T11:36:12.161+05:30[Asia/Calcutta]
6+
operating_system: Windows 10
7+
mcc_mode: IDE
8+
mcc_mode_version: v6.20
9+
device_name: PIC16F15244
10+
compiler: XC8 2.50
11+
mcc_version: 5.5.1
12+
mcc_core_version: 5.7.1
13+
content_manager_version: 5.0.1
14+
is_mcc_offline: false
15+
is_using_prerelease_versions: true
16+
mcc_content_registries: https://registry.npmjs.org/,https://artifacts.microchip.com/artifactory/api/npm/npm/
17+
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.7.1}
18+
packs: {name: PIC16F1xxxx_DFP, version: 1.26.395}
19+
modules:
20+
- {name: '@mchp-mcc/i2c-client-driver', type: MELODY, version: 2.0.4}
21+
- {name: '@mchp-mcc/main-manager', type: MELODY, version: 3.1.2}
22+
- {name: '@mchp-mcc/pic-8bit', type: MELODY, version: 5.28.3-test.1}
23+
- {name: '@mchp-mcc/pic16-configuration-bits-v2', type: MELODY, version: 4.1.3}
24+
- {name: '@mchp-mcc/pic16-pin-manager', type: MELODY, version: 3.6.1}
25+
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.8.0}
26+
- {name: '@mchp-mcc/scf-pic8-adc-v1', type: MELODY, version: 3.0.10}
27+
- {name: '@mchp-mcc/scf-pic8-eusart-v1', type: MELODY, version: 7.1.6}
28+
- {name: '@mchp-mcc/scf-pic8-interrupt-v2', type: MELODY, version: 5.2.11}
29+
- {name: '@mchp-mcc/scf-pic8-mssp-v1', type: MELODY, version: 7.0.1}
30+
- {name: '@mchp-mcc/scf-pic8-osc-v2', type: MELODY, version: 4.2.2}
31+
- {name: '@mchp-mcc/scf-pic8-tmr0-v1', type: MELODY, version: 4.0.13}
32+
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}

0 commit comments

Comments
 (0)