This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
Dear all,
I want to count number of pulse risen up by timer C (on RCM4300). When
i use asm code, all is working well; when i use C code and try to
debug it; i run in debugger timeout !
Why ?
---- ASM code
#asm
TimerC_isr2::
push af ; save used registers
push bcde
push jkhl
ioi ld a, (TCCSR) ; clear the interrupt request and get status
; handle all interrupts flagged in TCCSR here
ld bcde, (counter)
ld jkhl, 1
add jkhl, bcde
ld (counter), jkhl
pop jkhl
pop bcde
pop af ; restore used registers
ipres
ret
#endasm
--------------
----- C Code
nodebug root interrupt void TimerC_isr() {
counter++;
}
--------------
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )