PDA

View Full Version : Naming Conventions



bearpawz
- 25th April 2005, 22:13
Ok, this might seem a little A-retentive, but is there an official naming convention for inverted pin names... For an example: I am working with an ISD 2560P chip. Alot of the pin names have lines over them (To indicate that they are active low and not high). Is there a special way to note this if your naming a pin? Like if I want to say:

OVR Var PortB.0 ' Over flow pin


That works, but does not clearly show that OVR is actually supposed to be negated (active low).

what I really want to do is:

___
OVR Var PortB.0 ' Over flow pin.


However I see no way to include the overline in the variable name.

mister_e
- 25th April 2005, 22:22
That's for sure, you can't use some kind of, let's call it, RICH TEXT FORMAT. Must be in plain ascii mode. The only thing you can do is to add comment on the right edge...

Since everyone works different, i can't figure there's any standard notification. Just make it clear for you will do the job.

Archilochus
- 26th April 2005, 15:55
How about just using a name like OVR_NOT

It's not a 'convention', so if others will be reading / modifying the code, just put a note at the beginng of the code:

"Names follwed by '_NOT' denote active low functions"

Arch