Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using AN5-6-7 in 18F4550 & 18F45K50 ??? (solved)
24-12-2013, 11:23 AM, (This post was last modified: 13-01-2014, 02:13 PM by psteve.)
#1
Using AN5-6-7 in 18F4550 & 18F45K50 ??? (solved)
In 18f4550 & 18f45k50 using readanalog (18) i receive always the value of input 17.

In Analog.c seems ok only for 18f4550, but also in this case i can't read value for inputs 18-19-20...
Reply
24-12-2013, 03:01 PM,
#2
RE: Using AN5-6-7 in 18F4550 & 18F45K50 ???
Best idea is to cut it down to a small sample and then post it.

I think there are existing one(s) - what happens with it/them?

John
Reply
24-12-2013, 05:47 PM, (This post was last modified: 13-01-2014, 02:16 PM by psteve.)
#3
RE: Using AN5-6-7 in 18F4550 & 18F45K50 ???
Solved !!!

There are some "Bugs" in Analog.c.

1) Line 80
add;
TRISE=TRISE | 0x07;
2) Line 154
original : if(channel>=13 && channel<=17)
Modified : if(channel>=13 && channel<=20)

Now my apllication works very well with 18f45k50 intosc and 8 Analog input...

Steve
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)