PIC16F18345 EEPROM 存取問題
|
||||
---|---|---|---|---|
資深會員
|
Dear All:
初始化 OK 讀出 皆為 0xFF 寫入 失敗 This file provides implementations of driver APIs for MEMORY. Generation Information : Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.7 Device : PIC16F18345 Rev.0 Driver Version : 2.0.2 The generated drivers are tested against the following: Compiler : XC8 2.31 and above MPLAB : MPLAB X 5.45 InitEeprom.c
eeprom struct PowerSwCountTag SwitchCount = {DEFAULT_SWITCH_COUNT_A,DEFAULT_SWITCH_COUNT_B};
Memory.c
/**
ReadEeprom.c
uiChannelA = DATAEE_ReadByte(1) * 0x100 + DATAEE_ReadByte(0);
WriteEeprom.c
DATAEE_WriteByte(0,uiChannelA & 0xFF);
發表於: 2022/3/31 18:05
|
|||
|