One reason why 51 MCU programs run away (Mark)

Publisher:VS821001Latest update time:2020-06-21 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Write the picture description here

If EA = 1; is added before the statement TI = 1;, the following warning will appear:

* error 65: access violation at C:0x0023: no 'execute/read' permission


This warning means that the program has run away.


Just put the statement EA = 1; before TI = 1; or put it somewhere else. The error will disappear and the sp value will be normal. See the picture for details.

Write the picture description here

Write the picture description here

Write the picture description here

Other possible reasons for the program running away:

https://blog.csdn.net/wacflp/article/details/67637506

Reference address:One reason why 51 MCU programs run away (Mark)

Previous article:MCS-51 MCU external pins and bus interface
Next article:51 MCU learning knowledge points

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号