parallel port interfacing - 16f84


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Madhya Pradesh, India
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Parallel port operation is well document throughout the Internet, literally millions of hits on a Google search as well as here.
    As far as using an 'F84, how many bits do you plan on transferring at a time?
    8 bits is going to be a bit difficult and still have enough pins left over to control....anything...
    How much other PIC programming have you done so far?
    I haven't used any other PIC.

    well, what I want to do is to store the incoming data from the parallel port into a variable. Now, let us suppose once the PORTA has been set to be input (trisa = %11111111), then how to read the value of all the pins in PORTA and store them in a variable?

    suppose if the incoming data is say "2" whose binary equivalent is 00000010, so now how to read this value on PORTA pins & store it in a variable?

    thanks

  2. #2
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    trisa = %11111111
    Variable var byte
    Variable = PORTA

    ... but that won't work on PORTA with 8-bit data. Read the datasheet.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by devil6600 View Post
    I haven't used any other PIC.[........suppose if the incoming data is say "2" whose binary equivalent is 00000010, so now how to read this value on PORTA pins & store it in a variable?
    At the risk of being wrong...'cause it's entirely possible...
    Before you go messing with a parallel port and blowing it up, I'd suggest you go for Mr. Blinky LED first, then throw a button or two into the mix, add an LCD, and so on.
    If you don't know how to assign a value from a port to a variable, then how do you expect to do any handshaking with a parallel port?

Similar Threads

  1. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  2. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. parallel port multi pic programmer?
    By SuB-ZeRo in forum Schematics
    Replies: 8
    Last Post: - 25th June 2005, 10:20
  5. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21

Members who have read this thread : 0

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