Skip to content

Commit 3a9031c

Browse files
Usha Gsaikprasad
authored andcommitted
MPAE-18337 Deleted the old firmware and updated firmware is added
1 parent 7e4200e commit 3a9031c

Some content is hidden

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

46 files changed

+1665
-3051
lines changed

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* File: application.c
3+
* Author: I51005
4+
*
5+
* Created on July 28, 2024, 8:02 PM
6+
*/
7+
8+
19
#include <xc.h>
210
#include "stdio.h"
311
#include "string.h"
@@ -12,7 +20,7 @@
1220
* Macros definitions
1321
* **********************************************************
1422
**/
15-
#define _XTAL_FREQ (4000000)
23+
//#define _XTAL_FREQ (4000000)
1624
#define DATA_LENGTH (2)
1725
#define WRITE_DATA_LENGTH (2)
1826
#define READ_ONE_BYTE (1)
@@ -108,6 +116,7 @@ void Application(void)
108116
switch(applicationState)
109117
{
110118
case DISPLAY_INFORMATION:
119+
__delay_ms(100);
111120
SensorInformation();
112121
applicationState = DISPLAY_I2C_CLIENT_INFO;
113122
break;
@@ -231,6 +240,11 @@ void EUSART1_SendString(char *str)
231240
{
232241
for(uint8_t index = 0; index < strlen(str); index++)
233242
{
243+
while(0 == PIR1bits.TX1IF)
244+
{
245+
246+
}
247+
234248
EUSART1_Write(str[index]);
235249
}
236250
}
@@ -404,7 +418,7 @@ uint8_t I2C_CLient2SensorCommand(char *command)
404418
}
405419
else if(strcmp(command,SENSOR_2AND3)== 0)
406420
{
407-
EUSART1_SendString("Soil Moisture in \045 and Temperature in \260C : ");
421+
EUSART1_SendString("Temperature in \260C and Soil Moisture in \045: ");
408422
clientAddress = CLIENT2_ADDRESS;
409423
readDataLength = READ_TWO_BYTE;
410424
dataRegisterAddress = (uint8_t)sensor2And3DataRegister;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
void TimerInterruptHandler(void);
3737
void Application(void);
38-
38+
3939
#ifdef __cplusplus
4040
extern "C" {
4141
#endif /* __cplusplus */

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

Whitespace-only changes.
Binary file not shown.

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

Lines changed: 5 additions & 3 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-
© [2022] 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:
@@ -63,4 +64,5 @@ int main(void)
6364
{
6465
Application(); // Add your application code
6566
}
67+
6668
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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-host-mplab-mcc
5+
creation_date: 2024-08-22T11:08:50.841+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-host-driver', type: MELODY, version: 1.0.5}
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-eusart-v1', type: MELODY, version: 7.1.6}
27+
- {name: '@mchp-mcc/scf-pic8-interrupt-v2', type: MELODY, version: 5.2.11}
28+
- {name: '@mchp-mcc/scf-pic8-mssp-v1', type: MELODY, version: 7.0.1}
29+
- {name: '@mchp-mcc/scf-pic8-osc-v2', type: MELODY, version: 4.2.2}
30+
- {name: '@mchp-mcc/scf-pic8-tmr0-v1', type: MELODY, version: 4.0.13}
31+
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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-host-mplab-mcc
5+
creation_date: 2024-08-22T11:08:50.812+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-host-driver', type: MELODY, version: 1.0.5}
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-eusart-v1', type: MELODY, version: 7.1.6}
27+
- {name: '@mchp-mcc/scf-pic8-interrupt-v2', type: MELODY, version: 5.2.11}
28+
- {name: '@mchp-mcc/scf-pic8-mssp-v1', type: MELODY, version: 7.0.1}
29+
- {name: '@mchp-mcc/scf-pic8-osc-v2', type: MELODY, version: 4.2.2}
30+
- {name: '@mchp-mcc/scf-pic8-tmr0-v1', type: MELODY, version: 4.0.13}
31+
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*
66
* @defgroup i2c_host_events I2C_HOST_EVENTS
77
*
8-
* @brief This file contains other data types for I2C module.
8+
* @brief This file contains additional data types for the I2C module.
99
*
1010
* @version I2C Driver Version 2.1.0
1111
*/
1212

1313
/*
14-
© [2022] Microchip Technology Inc. and its subsidiaries.
14+
© [2024] Microchip Technology Inc. and its subsidiaries.
1515
1616
Subject to your compliance with these terms, you may use Microchip
1717
software and any derivatives exclusively with Microchip products.
@@ -44,11 +44,11 @@
4444
typedef enum
4545
{
4646
I2C_STATE_IDLE = 0, /**< Idle state*/
47-
I2C_STATE_SEND_RD_ADDR, /**< Send read address state*/
48-
I2C_STATE_SEND_WR_ADDR, /**< Send write address state */
49-
I2C_STATE_TX, /**< Transmit data state*/
50-
I2C_STATE_RX, /**< Receive data state*/
51-
I2C_STATE_NACK, /**< Nack state*/
47+
I2C_STATE_SEND_RD_ADDR, /**< Send Read Address state*/
48+
I2C_STATE_SEND_WR_ADDR, /**< Send Write Address state*/
49+
I2C_STATE_TX, /**< Transmit Data state*/
50+
I2C_STATE_RX, /**< Receive Data state*/
51+
I2C_STATE_NACK, /**< NACK state*/
5252
I2C_STATE_ERROR, /**< Error state*/
5353
I2C_STATE_STOP, /**< Stop state*/
5454
I2C_STATE_RESET /**< Reset state*/
@@ -57,7 +57,7 @@ typedef enum
5757
/**
5858
* @ingroup i2c_host_events
5959
* @struct i2c_host_event_status_t
60-
* @brief I2C Event Status Structure
60+
* @brief I2C event status structure.
6161
*/
6262
typedef struct
6363
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*
66
* @defgroup i2c_host_interface I2C_HOST_INTERFACE
77
*
8-
* @brief This file contains other data types for I2C module.
8+
* @brief This file contains additional data types for the I2C module.
99
*
1010
* @version I2C Driver Version 2.1.0
1111
*/
1212

1313
/*
14-
© [2022] Microchip Technology Inc. and its subsidiaries.
14+
© [2024] Microchip Technology Inc. and its subsidiaries.
1515
1616
Subject to your compliance with these terms, you may use Microchip
1717
software and any derivatives exclusively with Microchip products.
@@ -45,7 +45,7 @@
4545
/**
4646
* @ingroup i2c_host_interface
4747
* @strcut i2c_host_interface_t
48-
* @brief Structure containing the function pointers of I2C drivers.
48+
* @brief Structure containing the function pointers of the I2C drivers.
4949
*/
5050
typedef struct
5151
{

0 commit comments

Comments
 (0)