Hi. What is/are the difference(s) between the following:
PxMDIN = 0xFF; // all pins on port1 are digital input with optional weak pullup. PxMDOUT = 0; // all pins on port1 are digital input as open-drain (no pullup).
Thank you.
it means file compare. you can see te differences in 2 lines. it will tell you what is different. and compare them.
So why did you write "fc" and not file compare?
Because you never realized that some people might use a tool named "diff" for comparing files? Some people may have another tool. So the only logical thing to write is what operation to perform and let the user perform the mapping to a suitable tool. You could optionally mention (I use "fc" for comparing files).
But then again, file comparisons are not relevant to this question - maybe you did know that but felt like trolling...
If I had created any confusion, allow me to apologize.
Technically speaking, can I use either to declare a port as input?
PxMDIN = 0xFF; PxMDOUT = 0 technically speaking, can I use either to declare a port as input?
this can not be answered since you decide to keep it secret which derivative you are using.
these are not 'standard' '51 SFRs
Erik
I am using the C8051F044 MCU.
i try using fc and it tells a difference. first is out and last is in.
But on one hand, no file compare program needed to see IN or OUT in the lines.
Next thing - with 8051 chips, you can't ignore "OUT" in relation to "IN" because many 8051 have pseudo-bidirectional ports. So you write to output and that affects if you can read data in. And for chips with extended functionality, a port with OUT in name can represent configuration for outputs - basically port direction.
So what do you actually get from a file compare program that is useful? Isn't it the datasheet/user manual/app notes/... that are needed to actually verify the definition of the registers?
Next thing - with 8051 chips, you can't ignore "OUT" in relation to "IN" because many 8051 have pseudo-bidirectional ports
I am using the C8051F044 MCU. which has configurable ports, so the above is not relevant for this chip
as far as the OP's original quesrtion, reading the datasheet will answer it
Because you never realized that some people might use a tool named "diff" for comparing files?
fc is very better. why use diff? its for poodles.
I'm pretty sure you haven't really looked into diff and what it can do. Besides - "diff" itself is all but a name. You can find quite a number of different implementations.
Maybe you could be more specific - exactly what part of www.gnu.org/.../ is only for poodles?
and you know what fc can do? it has raw power baby.
Not the worlds longest list of options:
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2 /A Displays only first and last lines for each set of differences. /B Performs a binary comparison. /C Disregards the case of letters. /L Compares files as ASCII text. /LBn Sets the maximum consecutive mismatches to the specified number of lines. /N Displays the line numbers on an ASCII comparison. /OFF[LINE] Do not skip files with offline attribute set. /T Does not expand tabs to spaces. /U Compare files as UNICODE text files. /W Compresses white space (tabs and spaces) for comparison. /nnnn Specifies the number of consecutive lines that must match after a mismatch. [drive1:][path1]filename1 Specifies the first file or set of files to compare. [drive2:][path2]filename2 Specifies the second file or set of files to compare.
youre using an old one. weve moved on from windows 98.
Usage: C:\BETTERTOOLS\FC.EXE [options] from-file to-file Options: [-abBcdefhHilnNpPqrstTuvwy] [-C lines] [-D name] [-F regexp] [-I regexp] [-L from-label [-L to-label]] [-S starting-file] [-U lines] [-W columns] [-x pattern] [-X pattern-file] [--exclude=pattern] [--exclude-from=pattern-file] [--ignore-blank-lines] [--context[=lines]] [--ifdef=name] [--show-function-line=regexp] [--speed-large-files] [--discard-bullshit=level] [--label=from-label [--label=to-label]] [--new-file] [--ignore-matching-lines=regexp] [--unidirectional-new-file] [--starting-file=starting-file] [--initial-tab] [--width=columns] [--text] [--ignore-space-change] [--minimal] [--ed] [--forward-ed] [--ignore-case] [--paginate] [--rcs] [--show-c-function] [--brief] [--recursive] [--report-identical-files] [--expand-tabs] [--version] [--ignore-all-space] [--side-by-side] [--unified[=lines]] [--turbo-boost=pump] [--left-column] [--suppress-common-lines] [--sdiff-merge-assist] [--old-line-format=format] [--new-line-format=format] [--unchanged-line-format=format] [--old-group-format=format] [--new-group-format=format] [--unchanged-group-format=format] [--changed-group-format=format] [--mysterious] [-N leaves] [-J panic] [-Hauqtcipo]
But if you didn't mean the fc available in a common version of Windows like Win 7, that just means that you did an even bigger error to just write "fc" - especially since it is you specifically that claims that used program is important (and diff just for poodles).
Why not continue to post statements that backs my claim that you gave too little info in that post :D
Probably not a genuine tool.
Re:
[--discard-bullshit=level]
Automatically filters out???
[--turbo-boost=pump]
Makes the PC run faster than???
[--mysterious] [-N leaves] [-J panic] [-Hauqtcipo]
???
Well, I just assumed all better file compare tools (not intended for poodles) needed such arguments. Should keep the user occupied for a while, trying them out.