I need to detect an external edge transition input in the PIC 16F877A in the port C4.
Is there any command that detects edge transition in CCS compiler?
You can detect edge transition only if the signal arrive to pin with external interrupt or interrupt on change pin (portB). In this case you can use interrupt function.
If signal comes to pin C4 you can use only pooling.
For reading a input pin you should use if(input(PIN_C4)).......