hey!
Im using 16f877 for displaying LM35 on 7-segment.
Im doing as follow:
i) I amplified the signal using LM358, gain of ~5
ii) Put software Vref+ (VDD)
Vdd=5V so i used a gain of 5 using LM358, is that right ???
iii) Displayed my ADRESH on PORTC & ADRESL on PORTB (using left justified)
PORTC reads
PORTC# 7 6 5 4 3 2 1 0
0 1 0 1 1 0 1 0
PORTB reads
PORTB# 7 6 5 4 3 2 1 0
1 1 1 1 1 1 1 1
Why im getting PORTB all highs ????
If i use PORTB 2 LSB then my result is fine as follow
LSB
---
0 1 0 1 1 0 1 0 1 1
=~ is 363 so 36.3C but why im getting PORTB all highs ??
Im new to this PIC programming n learning, and for my conversion how do i combine ADRESH & ADRESL in single address.
Please help
Im using 16f877 for displaying LM35 on 7-segment.
Im doing as follow:
i) I amplified the signal using LM358, gain of ~5
ii) Put software Vref+ (VDD)
Vdd=5V so i used a gain of 5 using LM358, is that right ???
iii) Displayed my ADRESH on PORTC & ADRESL on PORTB (using left justified)
PORTC reads
PORTC# 7 6 5 4 3 2 1 0
0 1 0 1 1 0 1 0
PORTB reads
PORTB# 7 6 5 4 3 2 1 0
1 1 1 1 1 1 1 1
Why im getting PORTB all highs ????
If i use PORTB 2 LSB then my result is fine as follow
LSB
---
0 1 0 1 1 0 1 0 1 1
=~ is 363 so 36.3C but why im getting PORTB all highs ??
Im new to this PIC programming n learning, and for my conversion how do i combine ADRESH & ADRESL in single address.
Please help
Last edited: