Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
coskunkazma
coskunkazma

posted on 2011/10/20 06:05:06 AM CEST

Other Codes

UART interrupt

Dear Sir,

EUSART interrupt, I have written below lines

INTCON.GIE = 1;
INTCON.PEIE = 1;
PIR1.RC1IF = 1;
PIE1.RC1IE = 1 ;

But still EUSART interrupt does not work. U have any idea. Also may my mistake be in project setup

USER Comments

Ronald Arthur
esarearthur

posted on 2011/11/01 05:05:29 AM CET

you have set
PIR1.RC1IF = 1;
instead of
PIR1.RC1IF = 0;

the flag should be low so that interrupt can be triggered when flag is enabled

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 138 in "UART interrupt" request.