I'm trying to set the pins functions of 16F723. As I'm total green to PICs I'm finding it hard to understand the datasheet, I've been trying to find info on how to read and understand the datasheet but with no luck, can anyone point me to such info.
I would like to set all the Ports to digital, pull-ups on Port B and internal oscillator running at 4MHz.
The settings I'm using are the following:
OSCCON = %01100000 ' Sets the internal oscillator register to 4 MHz
ADCON1=%00000111 ' All Ports Digital
OPTION_REG.7 = 0 ' Enable Port B pull-ups
TRISB = %11111111 ' Port B input
TRISA = %00000000 ' Port A output
TRISC = %11111100 ' Port C inputs C.2 to C.7 inputs Port C.0 and C.1 outputs
Can you let me know if the settings any right or explane what is wrong.
Bookmarks