ARM Technical Support Knowledge Articles

HOW TO GIVE DESCRIPTIVE NAMES TO PORT PINS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

How do I get descriptive names to pins on each of the ports?

ANSWER

You can use the sbit data type. For example:

sbit foo = P1 ^ 2;

gives the name 'foo' to P1 bit 2.

MORE INFORMATION

Article last edited on: 2006-10-16 11:56:59

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