2541 views|1 replies

1

Posts

0

Resources
The OP
 

Application of Using in keil [Copy link]

Pay attention when using the Using keyword in Keil. For example: use using void T0_INT (void) using 1 { ;//Calculation statement in the function} in the terminal. If using X is used, then the external function cannot be called in the interrupt function, because after calling the external function again, some temporary variables of the external function will be overwritten, causing program running errors; If you must use using during interruption and call external functions in the interrupt function, you can do this: the function called by the interrupt must also use using, which will avoid compiler errors and program running errors; for example: void T0_INT (void) using 1 { f1();//Function call} void f1(void) using 2 { ;//Statement in the function} In summary: When using Keil, avoid using using to specify register locations when processing interrupt functions. This content is original by EEWORLD forum user huyangliu. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source
This post is from Analog electronics

Latest reply

Nice summary, thanks for sharing!  Details Published on 2018-9-5 08:49
Personal signature做自己喜欢的

1368

Posts

6

Resources
2
 
Nice summary, thanks for sharing!
This post is from Analog electronics
 
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

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