Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

The simplest way to connect PCB with computer

Status
Not open for further replies.

Tom2

Full Member level 5
Joined
Nov 11, 2006
Messages
318
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,457
I want to conect pcb with computer and i search for the most simple way to do that.I you have any idea i hear please
 

transmit data from pcb to computer

What kind of pcb you want to connect to PC?
 

port parallel+pcb

I create a circuit with pic16f4550 and i will make a pcb for this.

Added after 14 minutes:

i mean pic18f4550
 

pcb printer by pic

hi
all this will help u to connect computer to interface
u can write code in ur computer follow the sample . u will send data from ur PC to ur interface......
i hope it is the sample for u
thank
buntheun
 

18f4550 pcb

the 18F4550 can use USB

look at
 

xmit pcb

You can connect your PIC board to PC via COM port (RS232 port), Parallel port (Printer port) ot USB port.

with parallel port, you can direct connect your PIC PCB to printer port, but need 10 cables plus ground.

With RS232 port only need 2 cables plus ground, but need a TTL-RS232 Voltage converter chip (ie MAX232)

The USB connection may be is too complex for your project.
 

Re: conect pcb-computer

i want the pic ,send data to pc.I see example code bellow but i don't understand.If i write #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) then the value of the ADC will transmit to the rs232?????????????????????????????????????????


#include <18F4550.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

void main() { // main function
int i, value, min, max; // local variable declaration

printf("Sampling:"); // printf function included in

setup_port_a( ALL_ANALOG ); // A/D setup functions- builtin
setup_adc( ADC_CLOCK_INTERNAL ); // A/D setup functions- builtin
set_adc_channel( 0 ); // A/D setup functions- builtin

do { // do while statement
min=255; // expression
max=0;
for(i=0; i<=30; ++i) { // for statement
delay_ms(100); // delay built-in function call
value = Read_ADC(); // A/D read functions- builti

if(value<min) // if statement
min=value;
if(value>max) // if statement
max=value;
}
printf("\n\rMin: %2X Max: %2X\n\r",min,max);
} while (TRUE);
}
 

Re: conect pcb-computer

If i write #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) then the value of the ADC will transmit to the rs232?
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) setup the Serial Port baud rate = 9600 bps, use Pin C6 as serial output and Pin C7 as Serial Input, that statement doesn't transmit data to Serial Port

Data is transmitted to Serial Port with this statement:
Code:
printf("\n\rMin: %2X Max: %2X\n\r",min,max);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top