Timer Interrupt spits out a decimal point

Questions about the BASICtools and MakeItC
Post Reply
Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

Timer Interrupt spits out a decimal point

Post 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



basicchip
Posts: 1029
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: Timer Interrupt spits out a decimal point

Post by basicchip »

I'm not seeing any .

What versions are you using compiler and firmware?

Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

Re: Timer Interrupt spits out a decimal point

Post by Mr_Simplicity »

ARMbasic 8.17a
BASICtools 5.16
ARMbasic Kernel[8.12] with Floating Point

basicchip
Posts: 1029
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: Timer Interrupt spits out a decimal point

Post 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.

Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

Re: Timer Interrupt spits out a decimal point

Post by Mr_Simplicity »

That's what it was. no more ........s on interrupt.

Thanks for the help.

Post Reply