This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ez-usb FX & timer0 interrupt (keil newbie)

Hi,

I'm new with Keil software , but however
I have experience in writing software for
the 8051/8052 in assembly.

My problem:

I'm making changes in firmware for the FX1
of Cypress. I want to add a timer0 interrupt
and searched through the forum and application notes. Appnote 105 and 126 were usefull, and
I created this:

Global:

BYTE xdata I2CPOS=0;


main() :

// timer 0 interrupt

TMOD &= ~0x0F;
TMOD |= 0x01;

TH0=0xFF;
TL0=0x00;

PT0 = 0;
ET0 = 0;

TR0 = 1;

// enable interrupts

EA = 1;



routine:

void timer0_isr(void) interrupt TMR0_VECT
{
TH0=0xFF;
TL0=0x00;

I2CPOS=0;
}


The timer0_isr is never called, what do I forget. Is the timer0_isr(void) automaticly
added to the vector table or has this to be
done manually?
The FX1 uses autovectoring for the usb
interrupts does this affect the standard
interrupts?

0