PIC16F84 lpt dongle


Closed Thread
Results 1 to 7 of 7
  1. #1
    irmus's Avatar
    irmus Guest

    Default PIC16F84 lpt dongle

    Hello! I want to send data from lpt port and receive other data.How i can this to do?
    Thanks

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Irmus,

    You will have to give a little more detail of what you want. To send data Via LPT Port, the Centronics Port is a parallel Port, and you can transmit from most your pic chips to a printer by using one of the 8 bit Busses on the Chips.

    BUT!!!! if you have a printer that does NOT have built in fonts, you will not be able to transmit directly to the printer. These Printers are called Window Printers (for ease of defining). And these printers *must* use the windows drivers in order to work.

    Some modems are called "WinModems", because they will *only* work in Windows.

    Now about your recieve. You must be more explicite. You can use a usart, you can write your own transmit and receive. But either way, you need to explain just a little more on how and what you are trying to accomplish. Recieve could mean something such as receiving a pulse every second, to sending data like a modem.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  3. #3
    irmus's Avatar
    irmus Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for reply!
    Sorry,my english is bad i from lithuania.Maybe yuo can give me sample LPT and PIC.Please........!

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Irmus,

    If you use something like a 16f648a chip, using TRISB
    in Psuedo Code, it would be simplified as such:


    TRISB=%00000000 (assigns all 8 pins to be output)
    OutputVariable var byte

    Output=(whatever ASCII character you want)
    Portb=Output

    Toggle Send/Receive line on your Parallel port.

    Output=(Carriage return)
    Toggle Send/Receive lin on your parallel Port.
    End.

    Assign Portb.0 to the Centronics Port 0,
    and do this with the rest of the 7 pins.

    The Send/Receive line can be something like Porta.0 on your 16f648a.


    I still do not know what you are trying to accomplish. If you can send some of your Code, some folks can take a look at it.

    If you have never programmed with a PIC, the I would first suggest getting your chip to just blink a LED on and off every second. Then get the chip to "count" in binary on 8 LED's. Then try something a little more...Like the above "Psuedo" code. Then you can add a "Receive" to the project, and "Transmit" that receive out to the Printer.


    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  5. #5
    irmus's Avatar
    irmus Guest


    Did you find this post helpful? Yes | No

    Default

    This PIC16F84 is bad for lpt port? Maybe yuo have ICQ.Thanks

  6. #6
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Irmus,

    my ICQ number is on my Membership 31273397
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  7. #7
    irmus's Avatar
    irmus Guest


    Did you find this post helpful? Yes | No

    Default

    Very thanks

Similar Threads

  1. Replies: 3
    Last Post: - 16th October 2007, 00:01
  2. Replies: 8
    Last Post: - 17th January 2007, 19:18
  3. Pic16f84 and wait byte
    By irmus in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 4th November 2004, 23:49
  4. Pic16f84 ---> Pic16f628
    By xak in forum Off Topic
    Replies: 1
    Last Post: - 6th July 2004, 08:25
  5. Please help me about this pic16f84
    By lukeskywalker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd April 2004, 23:30

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