Page 1 of 1

Timer Interrupt spits out a decimal point

Posted: Sun Mar 03, 2013 3:58 pm
by Mr_Simplicity
Why am I getting a decimal point printed for every interrupt?
I don't even have a print statement.
Is there some debug code doing this?

Code: Select all

#include "LPC17xx.bas"

Dim Every_x_ms	as integer

SUB ON_TIMER ( msec, dothis )								' 
	TIMER1_ISR	= dothis + 1						' set function of VIC
	VICIntEnable = VICIntEnable or (1<<2)					' Enable interrupt
	T1_MR0	= msec-1 										' set up match number of ms
	T1_MCR	= 3												' Interrupt and Reset on MR0
	T1_IR	= 1												' clear interrupt
	T1_TC	= 0												' clear timer counter
	T1_TCR	= 1												' TIMER1 Enable
ENDSUB														' 

INTERRUPT SUB DO_TimerInterrupt										' 
	T1_IR = 1												' Clear interrupt
ENDSUB														' 

main:
	Every_x_ms		=	100
	ON_TIMER(Every_x_ms, ADDRESSOF DO_TimerInterrupt)		' 

	WHILE (1)
			WAIT(100)
	LOOP
END

Re: Timer Interrupt spits out a decimal point

Posted: Mon Mar 04, 2013 1:51 pm
by basicchip
I'm not seeing any .

What versions are you using compiler and firmware?

Re: Timer Interrupt spits out a decimal point

Posted: Tue Mar 05, 2013 1:53 am
by Mr_Simplicity
ARMbasic 8.17a
BASICtools 5.16
ARMbasic Kernel[8.12] with Floating Point

Re: Timer Interrupt spits out a decimal point

Posted: Tue Mar 05, 2013 2:37 am
by basicchip
Firmware 8.12 was one of the beta version of the floating point, and potentially had some interrupt bugs

8.15 is what most SuperPROs shipped with in production, and 8.20 is now shipping which adds transmit buffering and interrupts. (seems like lots of versions in between, but most were for support of new devices like the LPC1114 and LPC814)

I'll send you a link to update the firmware.

Re: Timer Interrupt spits out a decimal point

Posted: Thu Mar 07, 2013 2:00 am
by Mr_Simplicity
That's what it was. no more ........s on interrupt.

Thanks for the help.