INT interrupt not working with 16F19175

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

INT interrupt not working with 16F19175

Postby aru » Fri Dec 14, 2018 4:36 pm

MPLABX, V5.10
Java 1.8.0_181
PIC16F19175
XC8, V2.0, Free
Testing done with IDE Simulator

Was testing INT operation with PIC16F1915.
Interrupt was mapped to RB0 pin. INTPPS = 0x08
All settings were done for INT interrupt operation, INTE = 1, INTF = 0, INTEDG = 0, GIE = 1
Upon RB0 falling edge stimulus, INTF becomes 1 as expected.
However, the control does not jump to the interrupt vector despite INTE=1, INTF=1, GIE=1

Similar code executed with PIC18F4550 works without any issues.

Appreciate any help with this issue.

Since .c file attachment is not allowed. I have .JPG showing the full code.
Attachments
Code.JPG
Code.JPG (40.29 KiB) Viewed 4740 times
aru
Novice
 
Posts: 21
Joined: Fri Jan 05, 2018 2:53 pm

Re: INT interrupt not working with 16F19175

Postby aru » Fri Dec 14, 2018 11:40 pm

Found that the code works fine with the Hardware. No issues.
There seems to be a bug in the simulator.
Will consider this closed.
Thanks
aru
Novice
 
Posts: 21
Joined: Fri Jan 05, 2018 2:53 pm

Re: INT interrupt not working with 16F19175

Postby ober » Sat Dec 15, 2018 3:30 am

Great to know that!
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 10 guests