??? 04/27/04 06:36 Read: times |
#69282 - Just ignore me - Im talking rubbish! Responding to: ???'s previous message |
Andrew Ayre said:
#include <reg51.h>
: : DPL = 0x05; // access 8051 SFR DPH = 0x12; I said:
Shouldn't that be:
sfr DPL = 0x..; sfr DPH = 0x..; Sorry; ignore that - Andrew was completely correct! The SFR definitions are contained in the reg51.h header file - so once you've #included it, you can use the SFRs like any other 'C' variable! Of course, this still does NOT make it a good idea! |
Topic | Author | Date |
how to access DPTR using Ride c | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
DO NOT access DPTR using C ! | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
RTFM! | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
Just ignore me - Im talking rubbish! | 01/01/70 00:00 | |
Hello ALL THANK YOU | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Oops, many people - many suggestions | 01/01/70 00:00 | |
RE: Hack!?Oleg | 01/01/70 00:00 | |
RE: Hack!?Oleg | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: Atmel - Why??!! | 01/01/70 00:00 | |
THANK YOU ALL | 01/01/70 00:00 | |
RE: THANK YOU ALL | 01/01/70 00:00 | |
RE: THANK YOU ALL![]() | 01/01/70 00:00 |