Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4931

PIC code not working in proteus

$
0
0
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:

Code (Text):
  1. /* Main.c file generated by New Project wizard
  2. *
  3. * Created:   Fri Aug 16 2019
  4. * Processor: PIC16F877A
  5. * Compiler:  MPLAB XC8
  6. */
  7.  
  8. #define _XTAL_FREQ 20000000
  9.  
  10. #define Trigger RD0
  11. #define Echo RD1
  12. #define RS RD2
  13. #define EN RD3
  14. #define D4 RD4
  15. #define D5...
PIC code not working in proteus

Viewing all articles
Browse latest Browse all 4931

Latest Images

Trending Articles



Latest Images