I'm using the PIC16F887,and i'm new to this.
How to make B1 as analog pin.
How to receive information from pressure sensor to B1.
Thanks Sorry for my bad English.
I'm using the PIC16F887,and i'm new to this.
How to make B1 as analog pin.
How to receive information from pressure sensor to B1.
Thanks Sorry for my bad English.
Copyright © 2021 Jogjafile Inc.
One good thing about PIC controller is that, datasheet itself gives the clear steps to use its peripherals. Refer to the section 9.1 and 9.2 Datasheet
There is another wiki page which explains with c code but different PIC - however you could refer for the programming.
ADC Using PIC16F877A
Coming to your question : What you mean by B1? did you mean RB1 (or Port B, Pin 1)? if so, from the datasheet, RB1 is AN10 (Analog channel 10). So you need to set CHS<3:0> bits of ADCON0 register to b'1010'
These details from PIC controller side
You would have to read datasheet of the Pressure sensor too.
Without reading datasheets, you cannot work with the micro-controller
Sudhee