2478 views|6 replies

768

Posts

0

Resources
The OP
 

Is there anything wrong with this STC procedure? [Copy link]

IapErase(0x2000);
	for(i=0;i<64;i++)
	{
		IapProgram(0x2000+i,i);
	}
	b=IapRead(0x2001);

This is the EEPROM program of STC. Logically, the value of b should be 1, right? Why is it 63?

This post is from 51mcu

Latest reply

What data is read out in full?   Details Published on 2020-7-15 15:45
 

14

Posts

0

Resources
2
 

When you read after the loop is finished, isn't it from adding to 63? Your grammar is really lacking.

This post is from 51mcu

Comments

No, it should be a bug in STC. I have studied it for a long time and confirmed that it is not a program problem.  Details Published on 2020-6-12 10:25
 
 
 

768

Posts

0

Resources
3
 
Comrade Xiao Wang posted on 2020-6-12 08:56 After the loop is executed, isn't it from adding to 63? Your grammar is really lacking

No, it should be a bug in STC. I have studied it for a long time and confirmed that it is not a program problem.

This post is from 51mcu
 
 
 

14

Posts

0

Resources
4
 
sky999 posted on 2020-6-12 10:25 No, it should be a bug in STC. I have studied it for a long time and I am sure it is not a program problem

It's your program's problem.

This post is from 51mcu

Comments

This section is fine. Although it is added to 63 at the end, only the first address is read.  Details Published on 2020-7-15 08:21
 
 
 

16

Posts

0

Resources
5
 

This section is fine. Although it is added to 63 at the end, only the first address is read.

This post is from 51mcu
 
 
 

16

Posts

0

Resources
6
 

It is recommended to post the whole thing so that it is easier to analyze.

This post is from 51mcu
 
 
 

7422

Posts

2

Resources
7
 

What data is read out in full?

This post is from 51mcu
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list