Interrupts in SwordFish

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
sergio
Registered User
Registered User
Posts: 24
Joined: Mon Mar 30, 2009 5:37 pm
Location: Sao Paulo / Brazil

Interrupts in SwordFish

Post by sergio » Mon Mar 30, 2009 6:00 pm

Dear moderator from SwordFish !

Well, I have just bought my SF compiler from HVW (http://www.hvwtech.com), but I will have to wait a bit more until it gets here in Brazil.

For the time being, I´m using the Standard Edition.

What I would like to know is :

Last year, I built an "on board computer" for my Opel Corsa using PicBasic Pro and the Darrel´s Taylor external module for interrupts (very good !).

in my original progrma, I have :

ASM
;T0IF = TMR0IF
;T0IE = TMR0IE
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler CCP1_INT, _Capture, PBP, yes
INT_Handler TMR1_INT, _Timer1, PBP, yes
INT_Handler TMR2_INT, _tick, PBP, yes
INT_Handler INT_INT, _Botao1, PBP, yes
endm
INT_CREATE ; Cria a interrupção
ENDASM

If a capture interrupt occurs, the code goes to the _Capture label and I do the calculations etc

All my system was developed in a 16F877 and a 4x20 display.

Now, with the SwordFish, I´m planing to build something more sophisticated, using a GLCD and a 18F with 4 timers to allow me read the RPM also.

My doubt is :

Do we have something so simple in the SwordFish compiler to work with Interrupts ?

I´m reading the mannual right now, but I´m not sure yet !

If my topic is not that clear, please, let me know and I will try to re-phrase it !

I would really appreciate your Help !

My best regards !

Sérgio

Post Reply