EB006 V9 ADC confusion. [SOLVED]

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
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:

EB006 V9 ADC confusion. [SOLVED]

Post by medelec35 »

Attached is a simple Flowchart that works on EB006 V7
Turning pot connected to PortA1 (An1) from min to max causes LCD to change from 0 to 255 as expected.
Connect hardware to EB006 V9 then send same flowchart then:
Turning pot connected to PortA1 from min to max causes LCD to change from 0 to 1 Not as expected!
When display is showing 1, the voltage measured on pin 3 of 16F1937 is 4.87V
Anyone else seeing this or is it just me?

What makes this even more odd is if I used a 16F1937 on Eb006 V7 ADC works fine.
If I use 16F877A in EB006 V9 ADC works fine.

So that's why I'm confused.

Martin
Attachments
ADC 16F1937 Test2.fcfx
(5.59 KiB) Downloaded 231 times
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: EB006 V9 ADC confusion.

Post by LeighM »

Hi Martin,

That is odd, works OK on the EB006 V9 and 16F1937 I have.

Regards,
Leigh

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: EB006 V9 ADC confusion. [SOLVED]

Post by medelec35 »

Thanks Leigh,
The issues was caused by a faulty ADC on the 16F1937 itself.

Reason why It appeared to work on a V7 programmer is I must have inadvertently placed my other target device in my old programmer as the chips were placed near each other.
Benj & I came to that conclusion this evening while Ben was testing all the possible scenarios.
Thanks for your help Ben it is appreciated. :)

Martin
Martin

Post Reply