当我们有这样的代码: main: MOV #SFE(CSTACK), SP ; set up stack
;;; some instructions .......
; load the starting address of the array1 into the register R4
MOV.W #arr1, R4
; load the st
我在问这是因为下面的代码是我用来使2个两个LED完全交替闪烁。但它为什么这个工作并没有意义。这个带有2个xor的环路有2个状态,一个是pin1(红色点亮),另一个是引脚6和pin1都处于活动状态(红色和绿色点亮)。但是灯光闪烁,就像它们在彼此之间完美地交替开关一样。 #include <msp430g2553.h>
// counter as a global variable
unsign