Hardware Interaction...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudhanshu
    New Member
    • Sep 2006
    • 17

    Hardware Interaction...

    Hi all,
    can anyone plz send me some tutorials on hardware interaction using C/C++.

    Can u please suggest me a good topic for doing my project im going to code in C++ .
    Please give me some ideas . . . .
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by sudhanshu
    Hi all,
    can anyone plz send me some tutorials on hardware interaction using C/C++.

    Can u please suggest me a good topic for doing my project im going to code in C++ .
    Please give me some ideas . . . .
    are you using a PC or an embedded system? If a Windows PC you can only access hardware from DOS, Win95 or Win98 - more modern versions of Windows such as 2000, XP, etc will not allow user program to access hardware directly. For eaxmple, when we need to talk to hradware directly we often dual boot Windows XP and DOS. Which compiler were you thinking of using?

    have a look at
    I decided to build off of the Assembly example demonstrated here to show the same basic program written in a higher-level language. This pro...

    Comment

    • sudhanshu
      New Member
      • Sep 2006
      • 17

      #3
      Originally posted by horace1
      are you using a PC or an embedded system? If a Windows PC you can only access hardware from DOS, Win95 or Win98 - more modern versions of Windows such as 2000, XP, etc will not allow user program to access hardware directly. For eaxmple, when we need to talk to hradware directly we often dual boot Windows XP and DOS. Which compiler were you thinking of using?

      have a look at
      http://digiassn.blogspot.com/2006/04...h-turbo-c.html
      Thank you sir for the response.
      I have to develop a lift operator using 8085 microprocessor.
      I plan to connect the hardware to pc through a parallel port,
      then later may be I'll like to implement it on an embedded system.
      I am using Turbo C 3.0 for this.
      I am new to External hardware interaction and microcontroller
      programming. So plz help me with some e-books or tutorials on this topic.
      Thanks once again for ur help.

      Comment

      • horace1
        Recognized Expert Top Contributor
        • Nov 2006
        • 1510

        #4
        Originally posted by sudhanshu
        Thank you sir for the response.
        I have to develop a lift operator using 8085 microprocessor.
        I plan to connect the hardware to pc through a parallel port,
        then later may be I'll like to implement it on an embedded system.
        I am using Turbo C 3.0 for this.
        I am new to External hardware interaction and microcontroller
        programming. So plz help me with some e-books or tutorials on this topic.
        Thanks once again for ur help.
        have a look at


        which discusses interfacing to the parallel port - the program in section D. Simple Example, compiles OK using Turbo C V3.0 but I did not try to run it
        Last edited by AdrianH; Feb 21 '07, 05:14 PM. Reason: added [url] tag

        Comment

        • sudhanshu
          New Member
          • Sep 2006
          • 17

          #5
          Originally posted by horace1
          have a look at
          http://engr.nmsu.edu/~etti/fall96/computer/printer/printer.html

          which discusses interfacing to the parallel port - the program in section D. Simple Example, compiles OK using Turbo C V3.0 but I did not try to run it
          Thanks a ton buddy.
          that was of great help.

          Comment

          • horace1
            Recognized Expert Top Contributor
            • Nov 2006
            • 1510

            #6
            Originally posted by sudhanshu
            Thanks a ton buddy.
            that was of great help.
            no problem - sounds an interesting project !

            Comment

            • sajib
              New Member
              • Mar 2007
              • 3

              #7
              Hi all,

              I m doing a project on SERIAL PORT COMMUNICATION using C..
              Here i m trying to send a data generatedc by C programm & trying to pass that signal coming out from serial port(PIN NUMBER 3 AS TRANSMIT INN DB9) into a bread board in which a SERIAL TO PARALLEL SHIFT REGISTER IS THERE.
              bt the problemm is here i m not able to get the clock signal from serial port which i need the braed board circuit connection to work....

              Is there any way so that i can get the same clock signal from the port ..using any handshaking signal pins or any other way?

              THANKX...

              Comment

              • horace1
                Recognized Expert Top Contributor
                • Nov 2006
                • 1510

                #8
                Originally posted by sajib
                Hi all,

                I m doing a project on SERIAL PORT COMMUNICATION using C..
                Here i m trying to send a data generatedc by C programm & trying to pass that signal coming out from serial port(PIN NUMBER 3 AS TRANSMIT INN DB9) into a bread board in which a SERIAL TO PARALLEL SHIFT REGISTER IS THERE.
                bt the problemm is here i m not able to get the clock signal from serial port which i need the braed board circuit connection to work....

                Is there any way so that i can get the same clock signal from the port ..using any handshaking signal pins or any other way?

                THANKX...
                the PC serial port does not transmit a seperate clock - see
                http://en.wikipedia.or g/wiki/Asynchronous_se rial_communicat ion

                bit synchronisation is provided by the start bit with the interface then clocking in the data at the appropriate baud rate. Your serial to parallel shift register would have to look for the start bit transition from mark to space then clock in bits.

                Comment

                • kamal230
                  New Member
                  • Jan 2008
                  • 1

                  #9
                  mapping a person through cell in c++

                  hello all
                  i joined this fruitfull site for a purpose to improve my skill in c++.
                  a week ago my teacher gave me as assignment which is beyond my thinking cuz im new to c++ but i posses some good skill too.
                  well i have to code a program in tc++ for a gsm mobile fone to trace a specific person wherever he moves in our campus. whatever i need, will be provided by the department to me but i dont know what i need for the project. Can neone plz helpme out.....tell me whatelse should i demand for it........
                  Last edited by kamal230; Jan 3 '08, 07:35 PM. Reason: mistake

                  Comment

                  Working...