Results 1 to 7 of 7
Hi,
Can anyone help me with the command for reading registers?????
Thanks in advance...
- 06-22-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 8
Command for reading registers
Hi,
Can anyone help me with the command for reading registers?????
Thanks in advance
- 06-22-2009 #2
- 06-22-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 8
i want to know the command or api in linux for reading into a register on a board like mpc8548(powerpc)??
- 06-23-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Are you sure you don't mean an I/O port? There are, AFAIK, no system-level commands to do this, though there are C-language functions that will do this, inb(), inw(), inl(), etc.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-23-2009 #5Just Joined!
- Join Date
- Apr 2009
- Posts
- 8
Could you provide more info on the c language functions that u have mentioned here?
- 06-23-2009 #6
read a high level C level book,buddy.
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.


- 06-23-2009 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
And read the man pages. I/O port programming is on the face of it quite simple, but there are often complicating factors, such as the need to wait between writing to one port, and reading the results of the operation from another. Anyway, from what you say, I'd have to say that you lack the experience needed, though "doing the job" is one good way to get the experience. You also need to have a thorough understanding of the board's operations and that requires reading (and re-reading) the board's reference documentation, programmer's guide (if available), etc.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
