818 / 819 config startup

Status
Not open for further replies.

TKS

New Member
Hi huys,

wha tis wrong in the following part??
What do i forget??

Device 16f819 ''chipused

Xtal =8''freq

OSCCON=%01110000 ''stel register in op 8Mhz..!!!

config WDT_Off,PWRTE_Off,MCLRE_On ,boden_Off,lvp_off,CPD_OFF,debug_off,INTRC_IO

ADCON0 =%00000000
ADCON1 =%00000110
TRISA =%00000000
TRISB =%00001111

i want all ports digital, Reset pin enabled, 8Mhz or 4Mhz...
i have a led on PortA.2 but it doens't blink....

some one ideas??

TKS
 
Comparators?

I think RA2 pin may be configured as a comparator input by default. Try writing 0x07 to the CMCON register to disable them and set up for I/O.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…