Take a look at the assembler code generated. Make sure it's actually doing what you want. That's such a simple example the generated code should be about 5 lines. John Dammeyer = > > Hi, > > > > I am trying to program the 16f877a with the KIT182A but = > nothing appears at > > the output pin. I generated the hex file using the free = > version of CC5x. > > > > The circuit consists of a XT oscillator and a 40 pin PDIP PIC. The > > oscillator output directly connects to the PIC OSC1 pin and = > the ICSP pins > of > > the K182A are directly connected to the PIC programming = > pins. I have added > a > > 0.1uF on the VDD and VSS. > > > > The code is shown below. > > > > #include <16F877a.h> > > > > //Config Register > > #pragma config =3D 0x3F31 > > > > bit pwm_int @PORTD.1; > > > > void main(void) > > { > > TRISD =3D 0x00; > > pwm_int =3D 1; > > while(1) > > { > > pwm_int =3D !pwm_int; > > } > > > > } > > > > The software display the firmware is programmed correctly. > > > > The problem is that I don't get anything at Pin 20 when I = > program the PIC. > I > > hoping to see a continuous one and zero transition but = > nothing appears at > > the output. > > > > Cheers > > Paul > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > Esta mensagem foi verificada pelo E-mail Protegido Terra. > > Scan engine: McAfee VirusScan / Atualizado em 31/01/2007 / Vers=E3o: > 5.1.00/4953 > > Proteja o seu e-mail Terra: http://mail.terra.com.br/ > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.410 / Virus Database: 268.17.17/661 - Release Date: > 30/01/2007 > > > > > = > -- = > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > = > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist