Naming Conventions


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    81

    Question Naming Conventions

    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.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    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

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts