16F18446 ADC problems

Moderator: Benj

Post Reply
Rob_Johnson
Posts: 14
Joined: Wed Feb 26, 2020 9:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

16F18446 ADC problems

Post by Rob_Johnson »

Hi there,
I would like to report a problem.
Using the 16F18446 and "flow-code 8.2.0.12", I can't seem to get the ADC to work actually work, I have tried all channels and Vref,FVR or Vdd
I have attached the simplest code I could think of. It simulates perfectly within flow-code but does not actually work inside the chip.
Other micro's have worked fine, however I needed one that had more memory as I needed to use a small display, hence I used the above chip.
I have run Update today just in case but did not help.
Thank you in advance for your help

Rob
Attachments
16F18446.T3.fcfx
(7.33 KiB) Downloaded 122 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: 16F18446 ADC problems

Post by medelec35 »

Hi Rob,
Have you tried a 1 sec flasher?
It looks like your watchdog timer is enabled (within configuration settings), so try disabling it.
If one-second flasher is working just fine, then looks like a fix will be required.
Martin

Rob_Johnson
Posts: 14
Joined: Wed Feb 26, 2020 9:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: 16F18446 ADC problems

Post by Rob_Johnson »

Hi there,

I have attached the actual program I discovered the problem with, I think I have the basic config ok.
I forgot the change the watch dog as I made the two instruction program just to prove a point :)
However for completeness, I have just changed the watchdog to disabled and tried the program,the ADC is still not working.
Please could you look into the ADC problem?
Thank you :)
Rob

oh another small point, on the 2D panel, when I use the textbox, the font size does not seem to have any effect? am I missing something?
thanks again
Attachments
16F18446.06fast screen.English.GermanI2C.fcfx
(32.81 KiB) Downloaded 136 times

Rob_Johnson
Posts: 14
Joined: Wed Feb 26, 2020 9:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: 16F18446 ADC problems

Post by Rob_Johnson »

Hello again,
Just an update, I received some PIC16F1718 this morning, have adapted the program, tested it and now the ADC seems to work OK.
The chip is a different family to the PIC16F18446.
I would appreciate a solution but it is no longer urgent and I know how busy you all are.
thank you again for your time.
regards
Rob

Post Reply