Keil Logo Arm Logo

Programming P89V51RD2

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
danish p.
Posted
22-Nov-2007 05:34 GMT
Toolset
C51
New! 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;
                     }
                }
Read-Only
Author
Andy Neil
Posted
22-Nov-2007 07:40 GMT
Toolset
C51
New! Back to basics

"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?

Read-Only
Author
erik malund
Posted
26-Nov-2007 14:23 GMT
Toolset
C51
New! are you aware of RD2 and RD2H differences.

are you aware of RD2 and RD2H differences.

your problem may be due to a mix of the two.

Erik

Read-Only
Author
erik malund
Posted
26-Nov-2007 14:25 GMT
Toolset
C51
New! OOPS

did not see the 'V'
in that case it will be the difference between the 'V' and the "VC"

Erik

Read-Only
Author
rusan persh
Posted
26-Nov-2007 14:50 GMT
Toolset
C51
New! RE: OOPS

ft and she fel

It is storage folder for microprocessors forum (well known resource, but it is in reading language) for us to view.

Read-Only
Author
Andy Neil
Posted
26-Nov-2007 15:09 GMT
Toolset
None
New! Troll, or (another) forum bug?

"It is storage folder for microprocessors forum (well known resource, but it is in reading language) for us to view."

Is this just another Troll making meaningless posts, or is it another symptom of the ongoing server problems:

http://www.keil.com/forum/docs/thread11200.asp

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.