The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 11:12:00 23:12


Login with username, password and session length


Pages: [1]
Print
Author Topic: Simple Parallel to Serial PIC based Interface  (Read 3505 times)
0 Members and 1 Guest are viewing this topic.
The_Mole_763682
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 14
-Receive: 7


« on: March 23, 2011, 05:27:40 17:27 »

Hi Everyone,

The first project I would like to share with you is one made out of a need to grab the printed output from a piece of medical equipment that only had a parallel port.
It is currently fixed at 38,400 baud on the serial port but this is simple to change.
As the code is only 5% of the memory space on the Pic16F716 / PIC16F819, you can make whatever changes you want.

Attached are the Eagle Schematic and board, as well as the source code in C (CCS PICC compiler v3).
(Zipped - no password)

Any questions, please ask.
edit: added BRD/SCH! (took out copyright info Wink

-Mole
« Last Edit: March 27, 2011, 11:57:33 23:57 by The_Mole_763682 » Logged
sadman
Hero Member
*****
Offline Offline

Posts: 680

Thank You
-Given: 1738
-Receive: 2589


Sow The Seeds of Love


« Reply #1 on: March 24, 2011, 09:02:59 09:02 »

Hi Everyone,

The first project I would like to share with you is one made out of a need to grab the printed output from a piece of medical equipment that only had a parallel port.
It is currently fixed at 38,400 baud on the serial port but this is simple to change.
As the code is only 5% of the memory space on the Pic16F716 / PIC16F819, you can make whatever changes you want.

Attached are the Eagle Schematic and board, as well as the source code in C (CCS PICC compiler v3).
(Zipped - no password)

Any questions, please ask.

-Mole

hi friend there is no board and schematic in your upload only code

regards
sadman
Logged
The_Mole_763682
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 14
-Receive: 7


« Reply #2 on: March 24, 2011, 10:02:42 10:02 »

Hi Sadman,

Sorry about that.. Uploaded this morning!

-Mole
Logged
LazBoy
Active Member
***
Offline Offline

Posts: 154

Thank You
-Given: 78
-Receive: 25


« Reply #3 on: March 26, 2011, 10:45:53 10:45 »

Could you add "ParSer1.h"  header file also.
Logged
The_Mole_763682
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 14
-Receive: 7


« Reply #4 on: March 26, 2011, 01:42:31 13:42 »

It wont let me upload the .h as an attachment, or re-modify the main post, so here it is as a code block

Parser1.h
Code:
#include <16F716.h>
#device adc=8
#use delay(clock=16000000)
#fuses WDT, HS, NOPUT, NOPROTECT, BORV25, NOBROWNOUT
#define STROBE_   PIN_A0
#define ACK_   PIN_A1
#define BUSY   PIN_A2
#define RX   PIN_A3
#define TX   PIN_A4
#define LED  PIN_A2
#use rs232(baud=38400,parity=N,xmit=PIN_A4,rcv=PIN_A3)

you can substitute the PIC16F819 if you prefer that chip - i think the 716 is a little cheaper!


<Note to self: I really need to pay more attention in class>

Posted on: March 26, 2011, 01:32:09 13:32 - Automerged

Here is the lastest board schematic/layouts.

I didnt post this before as it wasn't a tested layout.

I received some PCB's for this Friday, and built one to test it - all ok and no errors!

If anyone is interested, and I don't know if this is allowed on here, but I have a handful of pcb's that were made for this project.  There are a couple of design faults (needs 3 wires adding) which is why they are not being used. 
They cost me 3 GBP each, and if anyone wants one, I could post one for the cost of it?
(moderator please delete this section if it's not allowed)
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC