Dim error

Thread Starter

camerart

Joined Feb 25, 2013
3,830
Hi C.
The problem is located here, using the Run command until the break command, then Single Step shows the error.
E

On High Interrupt 'go via location 0x0008
Save System
If PIR2.CCP2IF Then
serialCount = serialCount + 1
wordTemp.LB = CCPR2L 'ensure next interrupt is
wordTemp.HB = CCPR2H 'in 208*4=832 instruction cycles
wordTemp = wordTemp + 208 '208 is 2,000,000/9600 = 104uS or the time for 1 bit at 9600 baud
CCPR2H = wordTemp.HB 'it's really important that the high byte gets written first
CCPR2L = wordTemp.LB 'write it back

Break '''''''''''''''''''''''''''''''''''' break point

PORTC.1 = 1 '''''' error msg
LATC.1 = PORTC.1 'ensure latch is same as current CCP output

If ccpDone Then
Hi E,
I get the same result, well done.
Now I've got to figure out what the problem is, or I can try describing it to the composer.
Thanks. C.
 
Top