Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


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;
                     }
                }