Hi Guys, Im new to this forum...
I'm currently using a timer and a external interrupt to detect heartrate.
The board that I'm using is Silabs C8051F226 and a 8*2 LCD.
The program can vector to the timer interrupt after 5 secs (I set it to 5 secs) but it cannot vector to the external interrupt. I have set the external interrupt pin to detect falling edge of the signal. This is my Interrupts routines and configurations...
Does the input signal to the external interrupt pin need to be digital?
I'm currently using a timer and a external interrupt to detect heartrate.
The board that I'm using is Silabs C8051F226 and a 8*2 LCD.
The program can vector to the timer interrupt after 5 secs (I set it to 5 secs) but it cannot vector to the external interrupt. I have set the external interrupt pin to detect falling edge of the signal. This is my Interrupts routines and configurations...
Code:
;*****************************************
;-----------INTERRUPTS CONFIGURATIONS----------
;****************************************
MOV IE,#8CH
MOV SWCINT,#000H
MOV EIE1,#000H
MOV EIE2,#000H
MOV EIP1,#000H
MOV EIP2,#000H
MOV IP,#08H
;**************************************
;-------------TIMER 1 CONFIGURATIONS----------
;**************************************
SETB TCON.2
MOV TMOD,#10H
MOV CKCON,#000H
;**********
;-Start Timer-
;**********
START: MOV 40H,#000H
MOV TH1,#0D0H
MOV TL1,#0A0H ; Program timer to run for 5 seconds
SETB TR1 ; Start timer
WAIT: JNB TF1,WAIT
;****************************
;-Timer 1 Overflow Interrupt-
;****************************
T1_INT: RETI
;**********************
;-External Interrupt 1-
;**********************
EX_INT: INC 40H ; Increment 40H
RETI
Does the input signal to the external interrupt pin need to be digital?
Last edited: