I've gotten the interrupts to work and figured out how the config works.
Ty guys very much.
Looking back I'm really greatful for all the help you guys have given.
volatile unsigned int ls;
volatile unsigned int rs;
volatile unsigned int tt;
interrupt void low_priority lisr (void)
I'm using a pickit 2 knockoff programmer and board from a friend.
I was testing the inputs and found something strange.
I was viewing them throught the "watch" inside view drop down menu.
From my data I pretty much concluded that my PIC wasn't operating at 48mhz. So after doing a little research I was still puzzled. Can the PIC run at 48mhz during debug mode?
I messed around with config bits and some registers with no luck.
i have __CONFIG(1,USBPLL&PLLDIV2&INTCLKO);
pll prescaler divide by 2,
Internal oscillator, CLKO function on RA6, EC used by USB (INTCKO)
my system clock select bit is 00(primary oscillator)
Any reason why my pic is running slower than it should be?