One reason I've seen for F87X's not working right away is the Low Voltage Programming (LVP) enable bit in the configuration word. It defaults to enabled, which takes away RB3 as an I/O pin. I only looked at enough of your code to see that LVP wasn't disabled. You don't say exactly what the problem is, but if RB3 is mysteriously not reacting properly, this would explain it. Set configuration word bit 7 = 0. --- anbarsystem@ZAZ.COM.BR wrote: > Hi All, > My first project with the PIC16F87X doesn't work. I > am simply trying to do a > conversion A/D in the PORTA0 and show it in PORTB > with leds.Also a led > blinking in the PORTC6 using TMRO overflow. I'm > using a 4MHZ cristal. > > See my Codes below. > > #DEFINE LED PORTC6 > > list p=16f873 > > include "p16f873.inc" > > > __CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & > _PWRTE_OFF & _XT_OSC & > _WRT_ENABLE_OFF > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com