I want to write program with " MPLAB IDE v8.50>>Pic18f452 " by 1) low level pulse & 2)Rising edge . but, how?(without interupt & micro C,maybe!) I wrote this program with falling edge. Thanks a lot.
This is my circuit in proteus 7.7 .
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI want to write program with " MPLAB IDE v8.50>>Pic18f452 " by 1) low level pulse & 2)Rising edge . but, how?(without interupt & micro C,maybe!) I wrote this program with falling edge. Thanks a lot.
This is my circuit in proteus 7.7 .
Here's a sample code writing in mikroC for PIC:
void interrupt(void)
{
if (INTCON.INTF)
{
// your code
INTCON.INTF = 0;
}
}
void main()
{
TRISB = 0b00000001;
INTCON = 0b10010000;
while (1) ;
}