Thanks for your answer, but that's not exactly my problem.
My Code looks like this:
Main:
ON INTERRUPT GOTO MyInt
GOTO Start
DISABLE
MyInt:
PIR1=0
'PINS
IF ReedPin=0 Then I2CTransfer
IF LadePin=0 THEN IsLoading
RESUME
ENABLE
Start:
T1CON=%00000101
INTCON=$C0
PIE1=%1
GOSUB SPKUp
PAUSE 100
GOTO ShutDown
SPKUp:
For SPKVAR1=10 to 60
FREQ=SPKVAR1*SPKVAR1
FREQOUT SpkPin, 10, FREQ
PAUSE 100
NEXT SPKVAR1
RETURN
My Problem is:
If I call SPKUp, the Interrupt Handler won't work. So it doesn't check the ReedPin oder LadePin.
And now my question:
What can I make, that this works?
I used the PBP's Interrupt handler, because I can no Assembler
FrankM
Bookmarks