16F18877(AD) chip is faulty!
-
- Posts: 105
- http://meble-kuchenne.info.pl
- Joined: Thu Jan 07, 2021 11:28 am
- Has thanked: 3 times
- Been thanked: 4 times
16F18877(AD) chip is faulty!
16F18877(AD) in practice, or in proteus,They don't work properly.itdoes not work properly after compilation in V8,V9,V10 Version .
- p.erasmus
- Posts: 434
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
Re: 16F18877(AD) chip is faulty!
Hi,
Try to use the help file(wiki) when using components for the AD component you need to enable the ADC on the chip before using it see screen print below
Try it and let us know how you get along
Try to use the help file(wiki) when using components for the AD component you need to enable the ADC on the chip before using it see screen print below
Try it and let us know how you get along
Regards Peter - QME Electronics
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: 16F18877(AD) chip is faulty!
Hello,
This the code for the GetByte function.
And the RawEnable for comparison.
Niedian, you say solved can you say what did you do to solve the issue? Was it as Peter described?
This shouldn't be the case. The Raw enable should already be being called as part of the GetByte routine.you need to enable the ADC on the chip before using it
This the code for the GetByte function.
And the RawEnable for comparison.
Niedian, you say solved can you say what did you do to solve the issue? Was it as Peter described?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
- p.erasmus
- Posts: 434
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
Re: 16F18877(AD) chip is faulty!
Hi Ben,
I had now two simple projects that the ADC did not work without calling the RAW enable Macro might be good Idea to check this
I had now two simple projects that the ADC did not work without calling the RAW enable Macro might be good Idea to check this
Regards Peter - QME Electronics
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: 16F18877(AD) chip is faulty!
Thanks Peter,
Can you check your C code matches the code shown above.
Can you check your C code matches the code shown above.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
- p.erasmus
- Posts: 434
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
Re: 16F18877(AD) chip is faulty!
Hi Ben,
Ok I see with the getbyte the ADC gets enabled however in my code I use RawSampleInt and AverageSamples and in the C code functions the ADC is not enabled and I asumed it was the case for getByte as well Sorry I mislead the person with my comments however I was sure I had to use RawEnable
my appoligise
would be interesting if he tell us how hesolved the issue.
Ok I see with the getbyte the ADC gets enabled however in my code I use RawSampleInt and AverageSamples and in the C code functions the ADC is not enabled and I asumed it was the case for getByte as well Sorry I mislead the person with my comments however I was sure I had to use RawEnable
my appoligise
would be interesting if he tell us how hesolved the issue.
Regards Peter - QME Electronics
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: 16F18877(AD) chip is faulty!
Hello Peter,
Aha yes for the RawSample you need to enable first
ok that explains things and glad to know it's not a problem.
Interested as to how Niedian solved their issue.
Aha yes for the RawSample you need to enable first

Interested as to how Niedian solved their issue.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel