Hi there! CC5X is a great compiler, I=B4ve been using for years and I= =B4m quite satisfied. PORTD has a slave port mode associated to it, it can be tricky sometimes to figure out all the control bits you need to program to make it work properly (not impossible only tricky) I have never used this mode, it=B4s just an idea . I would suggest you to try another port (ie PORTB), after getting confident you can try the other ones. Regards Horta ----- Original Message ----- From: "Paul Lee" To: Sent: Thursday, February 01, 2007 9:17 AM Subject: Problems with CC5x compiler or 16f877a > 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