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

about T89c51rc2

i am now using the "Ateml T89c51rc2" to develope my project.
In the Keil uVersion2, i can select this chip as my target chip.
However, in the chip's function description window, it does not this chip have SPI function.
However,according to the chip's datasheet, this chip have the SPI function.

Then, can i programming the spi port by Keil compiler?

Parents
  • Andrew, do you really use the Keil device header files? In the past 8 years or so I haven't. I just sfr or sbit the few SFR's I need in the .c files I use them in. I guess this stems from not being able to get past assigning a value to something in all upper case, e.g.

    SCON = 0x00;
    vs.
    r_scon = 0x00;
    where I use the r_ prefix to indicate a CPU register (of sorts).

    Sometimes I even rename a port pin to its functional use! So instead of
    P3 |= RED_LED_ON;
    I'd sbit the port pin and use it like
    r_redLedOn = 1;
    Just wondering,

    - Mark

Reply
  • Andrew, do you really use the Keil device header files? In the past 8 years or so I haven't. I just sfr or sbit the few SFR's I need in the .c files I use them in. I guess this stems from not being able to get past assigning a value to something in all upper case, e.g.

    SCON = 0x00;
    vs.
    r_scon = 0x00;
    where I use the r_ prefix to indicate a CPU register (of sorts).

    Sometimes I even rename a port pin to its functional use! So instead of
    P3 |= RED_LED_ON;
    I'd sbit the port pin and use it like
    r_redLedOn = 1;
    Just wondering,

    - Mark

Children
No data