fbraun
- 11th October 2007, 02:58
Hello All
Need to speed up some PBP instructions. Can anyone help with the ASM equivalents for the following:
if CTPeriod = 1 then PulseCount1 = PulseCount1 + 1 ;increment pulse counter
if CTPeriod = 2 then PulseCount2 = PulseCount2 + 1 ;increment pulse counter
if CTPeriod = 3 then PulseCount3 = PulseCount3 + 1 ;increment pulse counter
where:
CTPeriod = byte
PulseCount1,PulseCount2 and PulseCount3 = words
The PIC I'm using is a 18F2525
Thanks
Need to speed up some PBP instructions. Can anyone help with the ASM equivalents for the following:
if CTPeriod = 1 then PulseCount1 = PulseCount1 + 1 ;increment pulse counter
if CTPeriod = 2 then PulseCount2 = PulseCount2 + 1 ;increment pulse counter
if CTPeriod = 3 then PulseCount3 = PulseCount3 + 1 ;increment pulse counter
where:
CTPeriod = byte
PulseCount1,PulseCount2 and PulseCount3 = words
The PIC I'm using is a 18F2525
Thanks