Dear all, i am using P89V51RD2 (philips) 8051 micro-controller. i am doing some samples with NSK developemnt kit. In this i want to set the Port1 pint 0 to 7 as high/low continiously. I tried this by using the following lines,
P1 = 0x00 ; delay(10000) ; P1 = 0xFF ;
but still i am always getting around 5V on these pins. i searched lot of forums, but in that also they mentioned like this only. Kindly give your suggessions.......
Thanks and Regards Radhakrishnan M
to figure out your 'code' P1 = 0x00 ; delay(10000) ; P1 = 0xFF ; we need to know what is stored at IRAM location 0 and what is stored at whatever SFR in your particular chip that has the address of 0xff
Erik
we need to know what is stored at IRAM location 0 and what is stored at whatever SFR in your particular chip that has the address of 0xff
Erik,
Are you sure about that? It's a real long time now since I did '51 code, but surely it's just simple C syntax putting the value 0x00 or 0xFF into the item P1.
Mind you, there's nothing in the comments to give a definitive statement of what language is being used :( He might even be using macros in assembler for all we know.
it looked so much like assembler
View all questions in Keil forum