k4 processor or any hc11

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

k4 processor or any hc11

1,620 次查看
bat
Contributor II

In the K4 processor, how do I find the Xbit. I find all kinds of info that mentions the Xbit but never where it is located.Like the register or what bit is in the register.I have looked in all the registers and have never found a bit called the Xbit.  Its never called the Xbit in the registers. I have been able to use the Xirq pin, but only by using the TAP instruction.The TAP instruction clears the Xbit.

If no one knows about the K4 processor,  Where can I find it in any other HC11 processor.

Thanks for any help

BAT

标签 (1)
0 项奖励
回复
2 回复数

792 次查看
bat
Contributor II

I really appreciate your info. I will take a look.

Thanks

BAT

0 项奖励
回复

792 次查看
kef
Specialist I

It's in CPU CCR register, bit6 of CCR, which is called X interrupt mask. TAP (transfer A-register to CCR register) instruction will clear X only in case bit6 of A register was '0'. Have a look at HC11 reference manual, Section 6 CPU, 6.3 Programmer's Model and so on:

 

http://www.freescale.com/files/microcontrollers/doc/ref_manual/M68HC11RM.pdf

0 项奖励
回复