hi,
i have the following code but i get nothing when i try to put TRIGGER signal to D0 and ECHO signal to D1. But when i put TRIGGER and ECHO signal to PORT B pins then it works, can anybody tell me what i am doing wrong?
Below is code:
PIC code not working in proteus
i have the following code but i get nothing when i try to put TRIGGER signal to D0 and ECHO signal to D1. But when i put TRIGGER and ECHO signal to PORT B pins then it works, can anybody tell me what i am doing wrong?
Below is code:
Code (Text):
- /* Main.c file generated by New Project wizard
- *
- * Created: Fri Aug 16 2019
- * Processor: PIC16F877A
- * Compiler: MPLAB XC8
- */
- #define _XTAL_FREQ 20000000
- #define Trigger RD0
- #define Echo RD1
- #define RS RD2
- #define EN RD3
- #define D4 RD4
- #define D5...