Marcello, Chances are your problem is that you have NOT specified _LVP_OFF in your __CONFIG statement or you have LVP enabled it in your programmer. If you leave this out this value in the __CONFIG statement, the LVP will be enabled by default. For the PIC16F87x, I typically use the statement (which is all one line): __CONFIG _CP_OFF & _DEBUG_OFF & _XT_OSC & _PWRTE_ON & _WDT_OFF & _LVP_OFF & _WRT_ENABLE_ON & _BODEN_ON & _CPD_OFF To ensure that the PICmicro MCU will run correctly. When you're working with a new PICmicro MCU, it's always a good idea to look through the Microchip include file (ie "p16f876.inc") and make sure you specify a setting for each configuration fuse. Good luck, myke ----- Original Message ----- From: Marco Mascarello To: Sent: Thursday, September 14, 2000 9:35 AM Subject: [PIC]: Simple code example for 16f876 > Hi all, I have some problems in programming a 16f876. > A very simple program is not running and i do not understand why. > Can someone send me an hex file with a simple program (flashing led for > example) just to see if my PIC is alive. > > I'm using the EPIC programmer and it seems to program the PIC right. > > Thank you > > Marco > > ================================================================= > IEN G. Ferraris - Time and Frequency Laboratory > Strada delle Cacce, 91 - 10135 Torino (Italy) > > --> TWSTFT Two Ways Satellite Time and Frequency Transfer <-- > > Tel: +39 011 39 19 236 > Fax Lab: +39 011 39 19 259 > Fax IEN: +39 011-34 63 84 > e-mail: masca@tf.ien.it Ing. Marco Mascarello > http//www.ien.it/tf/time/index.html > ================================================================= > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's