Sajjadkhan
Full Member level 5
- Joined
- Sep 25, 2010
- Messages
- 307
- Helped
- 17
- Reputation
- 34
- Reaction score
- 16
- Trophy points
- 1,298
- Location
- Rawalpindi,Pakistan
- Activity points
- 4,199
Are you compiling your code in a Release or Debug release?
Both RB6 and RB7 are used exclusively in a Debug release for clock and data, possibly regardless of the programs initialization of these pins.
BigDog
I am compiling my code in MikroC and debug mode is off. its working on the bread board but not in ISIS.
I just find it strange you are only having problems with RB6 and RB7 and they happen to be the pins required for Debug.
Can you upload your Proteus design and a current version of your source code? I'd like to take a look at it and see what I can find.
BigDog
BigDog, never trust simulators :smile:, as Sajjadkhan wrote: I am compiling my code in MikroC and debug mode is off. its working on the bread board but not in ISIS.
1. I have to use more than 1 adc channel so should i change entire value of ADCON0 register while channel selection or can i assess its individual bits i.e. CHS2:CHS1? any example?
ADCON1 = 0x00;
ADCON1 |= 0x0E;
ADCON1 &= 0xF0;
2.I don't understand the difference between GO/DONE and ADON bits in ADCON0 register as it seems both have the same function?
3. didn't get the meaning of ADFM bit in ADCON1 register?
4.About vref of ADC, should it be in analog mode if vref is to be set internally? of course it is to be set analog if vref(-) and vref(+) is to be provided externally. when we say vref is to be set internally, it means vref(-)=0 and vref(+)=5, no other voltages can be set internally,right?
Hey Tahmid: Need to ask some questions about AD conversion.
I have seen ADCON0 and ADCON1 registers in the data sheet.
1. I have to use more than 1 adc channel so should i change entire value of ADCON0 register while channel selection or can i assess its individual bits i.e. CHS2:CHS1? any example?
2.I don't understand the difference between GO/DONE and ADON bits in ADCON0 register as it seems both have the same function?
3. didn't get the meaning of ADFM bit in ADCON1 register?
4.About vref of ADC, should it be in analog mode if vref is to be set internally? of course it is to be set analog if vref(-) and vref(+) is to be provided externally. when we say vref is to be set internally, it means vref(-)=0 and vref(+)=5, no other voltages can be set internally,right?
---------- Post added at 07:01 ---------- Previous post was at 06:58 ----------
hey bigdog
I am compiling my code in MikroC and debug mode is off. its working on the bread board but not in ISIS.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?