Tumbleweed - You're right - I should have looked it up instead of going by memory.
Tumbleweed - You're right - I should have looked it up instead of going by memory.
Thank you Dave,
I need some frequency accuracy. This is why I don't use the internal oscillator but an external xtal and in that case the CONFIG is a little bit different.
But this issue is fixed now.
I am now faced with reading the port A digital inputs. Quite simple question but for an unknown reason it behaves differently than with the 18F2685.
73
MikeBZH (F8DFN)
Both devices have analog functions on portA but the function is selected differently.I am now faced with reading the port A digital inputs
On the 2685 you use the ADCON1 register, while with the 26K22 it's set with the ANSELA register.
Mike, here is the setup for one of my projects:
ANSELA = %00101111 'PORTS A5,A3,A2,A1,A0 ALALOG, A7,A6,A4 DIGITAL
ANSELB = %00100000 'PORTS B7,B6,B4,B3,B2,B1,B0 DIGITAL BUFFERED, B5 ANALOG
ANSELC = %00000000 'PORTS C7,C6,C5,C4,C3,C2,C1,C0 DIGITAL BUFFERED
Hope this helps...
Dave Purola,
N8NTA
EN82fn
im also having issues to understand the configuration fuses of the PIC18F26K22. I believe that microchip would like to give you more access for each peripheral, but for us it makes it more complicated. It should be straight forward. In the manual it is not cleared what are the right configuration bits needs to be set. Especially the ones covers the OSCCON, OSCCON2 and OSCTUNE.
For internal use of OSC and 4xPLL it is a bit more clear. But i'm really confused for the external OSC. This is what i have set up to now in this thread. Thanks to Ioannis and to Richard helping me out.
http://www.picbasic.co.uk/forum/show...982#post143982
It would be nice if we could have a clear configuration of the internal and external use of osc with 4x PLL.
thanks a lot.
Bookmarks