This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Programming P89V51RD2

hi to all As i am startd working with P89v51rd2.i am facing some problem some chips are burinning properly and some are not i am uaing ALL-11C2 universal programmer to programming the controller As there is no problem in H/W as some IC's are working properly but some are not i placed the user code on block 0. as i shifted from 12 CLK to 6 CLK at ALE i am getting 4 MHz and 8 MHz Freq respectively. Crystal is 24 MHz .so i think there should not any problem with programmer with this i am attaching the code please guide me where is actual problem.

#include <P89V51Rx2.H>
#include<intrins.h>
#include<define.h>
/*******************************************************************************************************/
volatile unsigned int TimeTick1ms;

void TMR_1(void)interrupt 3
           {
                   TR1 = STOP;
                   TL1 = COUNT_LO_1mS;
                   TH1 = COUNT_HI_1mS;
                   TR1 = RUN;
                   TimeTick1ms++;
                   if(TimeTick1ms & 0x01)
                                  {P1 =~P1;}
                  if(TimeTick1ms >= 100)
                          {
                                   TimeTick1ms = 0;
                                   P3 =~P3;
                                  }
                  }


void main(void)
         {
                 FCF  = 0x01;
                 //FST  = 0x00;
                 P0   = 0x3f;
                 P1   = 0xff;
                 P2   = 0xf8;
                 P3   = 0xff;

                 IEN0 = 0x88;
                 TMOD = 0x11;
                  TH1  = 0x63;
                  TL1  = 0xBF;
                 TR1  = RUN;

                 TimeTick1ms = 0;
                while(1)
                     {
                         P2 =~P2;
                         P0 =~P0;
                     }
                }

Parents
  • "some chips are burinning properly and some are not"

    What do you mean by, "not burning properly"?

    What exactly are the problems you are seeing?

    How have you determined that they are due to "not burning properly"?

    "there is no problem in H/W as some IC's are working properly but some are not"

    That doesn't follow at all!

    One likely cause of such intermittent behaviour is that you do have a hardware problem - something is marginal, so it works some of the time but not all of the time.

    "so i think there should not any problem with programmer"

    On what basis do you think that?

    What is your code actually supposed to do?

Reply
  • "some chips are burinning properly and some are not"

    What do you mean by, "not burning properly"?

    What exactly are the problems you are seeing?

    How have you determined that they are due to "not burning properly"?

    "there is no problem in H/W as some IC's are working properly but some are not"

    That doesn't follow at all!

    One likely cause of such intermittent behaviour is that you do have a hardware problem - something is marginal, so it works some of the time but not all of the time.

    "so i think there should not any problem with programmer"

    On what basis do you think that?

    What is your code actually supposed to do?

Children