ARM Technical Support Knowledge Articles

MISSING UART SFR DEFINITIONS FOR PHILIPS 8XC51MX

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOM

There is no way to reference the bits in the S1CON SFR for Philips 8xC51Mx devices.

CAUSE

The REG51M.H header file is missing the following bit definitions for the second UART (S1CON).

/*  S1CON  */
sbit SM0_1  = S1CON^7; // alternatively "FE"
sbit FE_1   = S1CON^7;
sbit SM1_1  = S1CON^6;
sbit SM2_1  = S1CON^5;
sbit REN_1  = S1CON^4;
sbit TB8_1  = S1CON^3;
sbit RB8_1  = S1CON^2;
sbit TI_1   = S1CON^1;
sbit RI_1   = S1CON^0;

RESOLUTION

You may add the above definitions to your REG51M.H header file. The updated header file will be included in the next release.

Article last edited on: 2004-02-20 19:32:39

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential