Void ds1307_write(unsigned char addr ,unsigned char data) Uint8_t sourceData = //Put your address here Static unsigned char readbuffer // Buffer for I2C reading. Static unsigned char writeBuffer //Buffer for I2C writing. static unsigned char readI2C, writeI2C #define RTC_addres 0圆8 // RTC slave device address #define Ds1307_ADDRESS 0xD0 // slave device address #define DS1307_RETRY_MAX 100 // define the retry count MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. TO THEįULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS INĪNY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HASīEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION. PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A NO WARRANTIES, WHETHERĮXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". Software and any derivatives exclusively with Microchip products. The generated drivers are tested against the following: Product Revision : MPLAB(c) Code Configurator - 4.15 This header file provides implementations for driver APIs for all modules selected in the GUI. This is the main file generated using MPLAB(c) Code Configurator I could not able to update time once written. Can someone suggest what wrong done i have done in below code SInce PIC18F24K40 uses MPLAB X ide and creates MCC code configuration based I2c c file and. I have tested my code on PIC16F886 but not worked on PIC18F24K40. NOw here I am trying to communicate PIC18F24K40 with DS1307 and Display it on 4 Segment Display. I am trying to migrate from PIC16F886 to PIC18F24K40.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |