我正在关注此tutorial,它向您展示如何将数据写入内部EEPROM。唯一不同的是,他们正在使用p18f4520,而我正在使用PIC18F87J11。当我尝试构建代码时,我得到以下错误,我可以知道为什么吗?
113:Error [1105] symbol 'EEADR' has not been defined
113:Error [1101] lvalue required
114:Error [1105] symbol 'EEDATA' has not been defined
114:Error [1101] lvalue required
116:Error [1205] unknown member 'EEPGD' in '__tag_222'
116:Error [1131] type mismatch in assignment
117:Error [1205] unknown member 'CFGS' in '__tag_222'
117:Error [1131] type mismatch in assignment
131:Error [1205] unknown member 'EEIF' in '__tag_215'
131:Error [1128] compatible scalar operands required for comparison
133:Error [1118] scalar type expected in 'while' statement
137:Error [1205] unknown member 'EEIF' in '__tag_215'
137:Error [1131] type mismatch in assignment
144:Error [1105] symbol 'EEADR' has not been defined
144:Error [1101] lvalue required
145:Error [1205] unknown member 'EEPGD' in '__tag_222'
145:Error [1131] type mismatch in assignment
146:Error [1205] unknown member 'CFGS' in '__tag_222'
146:Error [1131] type mismatch in assignment
147:Error [1205] unknown member 'RD' in '__tag_222'
147:Error [1131] type mismatch in assignment
148:Error [1105] symbol 'EEDATA' has not been defined
答案 0 :(得分:2)
抱歉,PIC18F87J11 MCPU中没有内部EEPROM!您的示例适用于具有内部EEPROM的MCPU。