Hello, I'm a beginner so I think the answer is simple.
I have an HC-SR04 connected to 4 AA batteries at 5.4V. The echo from the ultrasonic sensor goes through a voltage divider with 20k and 10k ohm resistors before going into P1.1.
My f2013 is being powered by the usb programming tool and is using P1.2 as the out/trigger pin for the hc-sr04.
I beleive the sr04 can take a 3.3V trigger.
This is my code below, I just can't figure out why my interrupt isn't triggering.
I borrowed some code from the internet. I can't remember his username, but the guy with the wall racer with two