Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 12:55:36 00:55


Login with username, password and session length


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

Posts: 17

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 28, 2011, 12:57:33 00:57 by The_Mole_763682 » Logged
sadman
Active Member
***
Offline Offline

Posts: 231

Thank You
-Given: 718
-Receive: 688



« 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: 17

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
***
 Muted
Offline Offline

Posts: 154

Thank You
-Given: 72
-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: 17

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