Hi everybody
I have a strange problem with a cypress FX2. I want to work with timers and external events on INT0 and INT1 Pin. (I want to measure the time beween an event on INT0 and INT1). Everything works fine except I get the interrupts IE0, TF0, IE1 and TF1 alltogether on interrupt vector 0x1b (normally only TF1).
If I use 'interrupt 3' everthing works fine. I can enable/disable Timer0 and/or Timer1 and I get the expected result but only on interrupt 3. The same with INT0 and INT1. I get the events but on interrupt 3.
What's wrong?
When I check main.lst everything seems to be ok: 0000 630 __interrupt_vect: 0000 02s00r00 631 ljmp __sdcc_gsinit_startup 0003 32 632 reti 0004 633 .ds 7 000B 32 634 reti 000C 635 .ds 7 0013 32 636 reti 0014 637 .ds 7 001B 02s01r53 638 ljmp _isr01 001E 639 .ds 5 0023 32 640 reti 0024 641 .ds 7 002B 32 642 reti 002C 643 .ds 7 0033 32 644 reti 0034 645 .ds 7 003B 32 646 reti 003C 647 .ds 7 0043 02s00r00 648 ljmp _autovector_jump_table_usb 0046 649 .ds 5 004B 32 650 reti 004C 651 .ds 7 0053 02s00r00 652 ljmp _autovector_jump_table_gpif
How can I get Interrupts on other vectors than 0x1B. Or is it a hardware problem? The autovector interrupts work fine.
BTW I use sdcc 2.4.
I hope someone can give me some hints.
Michael Bahrs