TeoYX WROTE:I need the confirm to this pin connection. From the sample source code, it is as output. Does it correct?
altron11 WROTE:Now i would like to use PORT E as output to a LED.
DO i need any special codings? As i already set TRISE=0b00000000;
But the PORT E0 does not have any output.
altron11 WROTE:Hi Guys,
I have a circuit simliar to the PR11. The sensor(LM35) connection is the same with a capacitor series to gnd. On my project board, it is working. But after i soldered up every component, the readings from the sensor shoot as high as 60deg upon power up. Is there anything wrong?
TeoYX WROTE:void main(void)
{
ADRESH=0; //clear A/D result
ADRESL=0; //clear A/D result
//setting ADCON1 Register
ADCON1=0b11000101; // A/D result right justified,
// configure RA2 and RA5 as digital I/O
TRISA=0b11011011; //configure PORTA I/O direction
TRISB=0b00000000; //configure PORTB as output
TRISC=0b00000000; //configure PORTC as output
PORTA=0;
PORTB=0;
altron11 WROTE:I guess not as it is very similar to the PR11. Difference is my PIC is on the SK40-C and i soldered the LCD onto the SK40-C. I connect RA0 to the Vout pin of the LM35. V+ to the VCC (5V) and a 0.1uF Cap in series from Vout to GND. now the temperature fix at 31deg. it will not increase or decrease. I do have a question, do i still need to connect a variable resistor of 4.7k ohm to the Vref+? thats the only thing i missed out.
robosang WROTE:altron11 WROTE:I guess not as it is very similar to the PR11. Difference is my PIC is on the SK40-C and i soldered the LCD onto the SK40-C. I connect RA0 to the Vout pin of the LM35. V+ to the VCC (5V) and a 0.1uF Cap in series from Vout to GND. now the temperature fix at 31deg. it will not increase or decrease. I do have a question, do i still need to connect a variable resistor of 4.7k ohm to the Vref+? thats the only thing i missed out.
I think I answered this some thread before. If the code is using Vref+ and hardware is not connected with proper Vref+, you will have problem. I din go to check the PR11 code nor the schematic, yet seeing your explain, you will need to provide Vref+. Again, curious to know why don just put that circuit in?
Users browsing this forum: No registered users and 4 guests