Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/20/10 16:55
Read: times


 
#179211 - Please focus on the problem i have
Responding to: ???'s previous message
So sorry,

It seems you don't understand my question. Off-course i know the difference in the port initialization. But remember my question, that the code written in C KEIL is not executing. I have also tried the same port initialization mechanism and pin high low code in c but it doesn't work. For you let me post the changed code once again so that you can focus more on the question and not think about the apples and oranges or even their jucies again.



#include <REG936.H>	 // Register definition

sbit RL1 = P2^3;	 //LED1
sbit RL2 = P2^4;	 //LED2


void Delay(unsigned long cnt);


void main()
{
	bit FRL1 = 0;
	
	P2M2 = 0xFF;

	for(;;)
	{
		RL1 = FRL1;
		RL2 = ~FRL1;
		FRL1 = ~FRL1;
		Delay(5000);
	}
}



void delay (unsigned long cnt) 
{ 
	while (--cnt); 
} 

 


And the new hex which is also not working on the hardware is



:04FFF00023001E00CC
:08FFF800000000000000000001
:03000000020054A7
:0C00540078FFE4F6D8FD7581200200233F
:10002300C20075A5FFA20092A3A200B392A49200FE
:0C0033007F887E137D007C00113F80E977
:10003F008F0B8E0A8D098C08780874FF1105EC4D13
:05004F004E4F70F42289
:100003007401FF3395E0FEFDFC080808E62FFFF6B8
:1000130018E63EFEF618E63DFDF618E63CFCF62231
:00000001FF


 



List of 49 messages in thread
TopicAuthorDate
p89lpc936 keil programming help required.            01/01/70 00:00      
   magic code?            01/01/70 00:00      
      mov 0A5H,#0FFH            01/01/70 00:00      
   a glaring difference            01/01/70 00:00      
      a glaring difference            01/01/70 00:00      
         what happens if            01/01/70 00:00      
            what happens if            01/01/70 00:00      
               BiDir or PushPull            01/01/70 00:00      
               I leave it to you            01/01/70 00:00      
                  magic code?            01/01/70 00:00      
                  I leave it to you            01/01/70 00:00      
                     1) formatted, 2)commented, 3) correct            01/01/70 00:00      
                        1) formatted, 2)commented, 3) correct            01/01/70 00:00      
                           it is STILL two different things            01/01/70 00:00      
                              Apples and Orange Juice            01/01/70 00:00      
                                 Please focus on the problem i have            01/01/70 00:00      
                                    Software delay loop in C is a no-no            01/01/70 00:00      
                                       Software delay loop in C is a no-no            01/01/70 00:00      
                                          Reduce problem into smaller problems            01/01/70 00:00      
                                             Reduce problem into smaller problems            01/01/70 00:00      
                                             Simulator vs real hardware            01/01/70 00:00      
                                             Current limits            01/01/70 00:00      
                                             Per Westermark's previous message            01/01/70 00:00      
                                                Delay speed            01/01/70 00:00      
                                                   Elaborate            01/01/70 00:00      
                                                      tried 5 for the '51 and Keil won            01/01/70 00:00      
                                    the problem you have is ...            01/01/70 00:00      
                                       the problem you have is ...            01/01/70 00:00      
                                          do you have LEDs connected to the simulator?            01/01/70 00:00      
                                          not executing on actual hardware while simulator is fine            01/01/70 00:00      
                                    Oh So Focused            01/01/70 00:00      
   Double-post            01/01/70 00:00      
   Are you using the limited version of KEIL? the for loop....            01/01/70 00:00      
      valid C            01/01/70 00:00      
         Thats the point            01/01/70 00:00      
            nope            01/01/70 00:00      
               I wouldnt trust it            01/01/70 00:00      
                  if you do not trust it ....            01/01/70 00:00      
               And if you trust it so much why doesnt it work?            01/01/70 00:00      
                  And if you trust it so much why doesnt it work?            01/01/70 00:00      
                     trust, yes, but knowledge also required            01/01/70 00:00      
                  wait call + assumptions about two-complement, ...            01/01/70 00:00      
                     The C Standard            01/01/70 00:00      
                        who is "you"?            01/01/70 00:00      
            Yes, you can!            01/01/70 00:00      
      Quite common loop design for bit operations            01/01/70 00:00      
      for( expression-1; expression-2; expression-3 ) [ed]            01/01/70 00:00      
         erratum            01/01/70 00:00      
            Corrigendum            01/01/70 00:00      

Back to Subject List