Dear Picster,
I'm battling to get the PORTB as digital only. I'm using a 16F2585 chip. but I'm not getting the weak pull up effectively. I have configured as follow:
Device = 18F2585
Xtal = 20 ' Set Xtal Frequency
Config_Start
OSC = HS
PBADEN = off ' PORTB<4> and PORTB<1:0> Configured as Digital I/O Pins on Reset
WDT = OFF ' HW Disabled - SW Controlled
Config_End
Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?
Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE
Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS
All_Digital = TRUE
PortB_Pullups = On 'Enable to have port B set with a weak pull up
Am I missing something?
Regards,
Yves


Reply With Quote

