PDA

View Full Version : 18F252 ports and osc



mpardinho
- 20th September 2007, 13:08
i cant work with digital in ports RB7, RB6 and RB5
my config is

ADCON0 = 0 ' Enable A/D
ADCON1 = 15 ' All ports digital


how to work with all port b digital and intern oscilator with 8mhz ?

many thanks for help.

Bruce
- 20th September 2007, 13:56
Are you using an 18F252 or 18F2525?

The 18F252 doesn't have any A/D on PORTB or an internal oscillator!

mpardinho
- 20th September 2007, 20:22
i'll re-write my code....thanks