Hi guys..I'm still in progress learning about PIC16F877A and I'm just realize that I don't know how to configure analog input..I'm working on project that using analog distance sensor and output LED..when sensor detect something below 40 cm led will turn on..formula that I'm refer in datasheet is Vin * (1023/vref) and when sensor detect something in 40cm 0.7V current will flow to input pin..I'm using MPLAB C compiler..thank you
-
Categories
-
Platforms
-
Content