PDA

View Full Version : DT_INTs with 16F690



Dick Ivers
- 29th January 2010, 20:39
Hello,

PIC 16F690 has Port Change Interrupts on both ports A and B. Will DT_INTs work for both? Will the source titles be:
RBC_INT
RAC_INT ?

ScaleRobotics
- 29th January 2010, 21:07
Hello,

PIC 16F690 has Port Change Interrupts on both ports A and B. Will DT_INTs work for both? Will the source titles be:
RBC_INT
RAC_INT ?

Yes, it is ....

RAC_INT -- RA Port Change
RABC_INT -- RAB Port Change

This is using his latest version 1.00. It is located at the bottom of this page:

http://darreltaylor.com/DT_INTS-14/intro2.html


Edit:

I have not looked at your data sheet much, but I did notice this:


Note 1: IOCA or IOCB register must also be enabled.


So it looks like you have to select IOCB on this one if you want RABC_INT to only interrupt on port B change.

Dick Ivers
- 29th January 2010, 21:51
Thanks for the upgrade info.... version 1.00 now in place.
I need the Change on Port A function, so RAC_INT is it. Will check the data sheet on how to enable IOAC.

ScaleRobotics
- 29th January 2010, 22:20
I need the Change on Port A function, so RAC_INT is it. Will check the data sheet on how to enable IOAC.

I think with RAC_INT, you do not need to select IOAC, or IOAB bit. You only need to when using RABC_INT (which you might think of as an AorB_INT).