早教吧作业答案频道 -->英语-->
C6000CSLfunctionsPERFMK如何理解?PERFMK(REG,FIELD,fieldval)CreatesashiftedversionoffieldvalthatyoucouldORwiththeresultofotherFMKmacrostoinitializeregisterREG.ThisallowstheusertoinitializefewfieldsinREGasanalter
题目详情
C6000 CSL functions PER_FMK如何理解?
PER_FMK (REG,FIELD,fieldval)Creates a shifted version of fieldval that you could OR with the result of other_FMK macros to initialize register REG.This allows the user to initialize few fieldsin REG as an alternative to the _RMK macro,which requires that ALL registerfields be initialized.PER_FMKS (REG,FIELD,sym)Creates a shifted version of the symbol value that you can OR with the result ofother _FMK/_FMKS macros to initialize register REG.(See also PER_FMK()macro.)
PER_FMK (REG,FIELD,fieldval)Creates a shifted version of fieldval that you could OR with the result of other_FMK macros to initialize register REG.This allows the user to initialize few fieldsin REG as an alternative to the _RMK macro,which requires that ALL registerfields be initialized.PER_FMKS (REG,FIELD,sym)Creates a shifted version of the symbol value that you can OR with the result ofother _FMK/_FMKS macros to initialize register REG.(See also PER_FMK()macro.)
▼优质解答
答案和解析
对外设寄存器进行位运算的一个函数.主要是规范位运算操作.因为涉及外设寄存器,如果碰到诸如大小端,16位值赋值给32位值等问题,错误会很隐蔽,查起来也很麻烦.所以让你规范的使用这个函数,就大大降低这种误操作的风险.具体你可以看看ti给的利用CSL对寄存器赋值的例程.一看就应该懂怎么用了.我看的是对timer寄存器赋值的例子. 查看原帖>>
看了 C6000CSLfuncti...的网友还看了以下:
1.一元二次方程x^2-4x+k=0有两个不相等的实数根.(1)求k的取值范围.(2)如果k是符合 2020-05-16 …
在一次函数中,(0,b)(-k/b,0),如果k是分数怎么办? 2020-05-17 …
若函数f(x)={xsin(1/x)+2,当x≠0并且k,当x=0}在x=0处连续,刚k=多少?f 2020-06-12 …
如图,已知双曲线y1=1/x(x>0),y2=k/x(x>0),点p为双曲线y2=k/x上的一动点 2020-06-15 …
已知一元二次方程x²-4x+k=0有两个实数根.(1)求k的取值范围.(2)如果k是符合条件的最大 2020-06-27 …
y=sinxx属于2k丌,2(k+1)丌k属于z,且k不等于0.那个K为什么不能等于0呢?当k=0 2020-07-20 …
一次函数如果K>0B>0或K>0B<0时或K<0B<0时或K<0B>0时函数过几象限 2020-07-25 …
关于牛顿第二定律的疑问.为什么牛顿第二定律的表达式是F=kma?我知道k是比例系数,可是如果k不取 2020-08-02 …
已知实数k∈R,且k≠0,e为自然对数的底数,函数f(x)=k•exex+1,g(x)=f(x)- 2020-08-02 …
等阶无穷小量题?若x→0时,1-cosx与4*(sinx)^k是等阶无穷小量,则k是?x→0时1-c 2020-12-23 …