caramoan tour package

caramoan tour package

Author Topic: Serial or Parallel port interfacing (using usb to parallel or serial converter)  (Read 721 times)

Offline janmike

  • CR2032 Battery
  • **
  • Posts: 16
  • Pogi/Ganda Points: 0
Tanong ko lang po kung gagamit ba ako ng usb to serial port or usb to parallel port converter, same parin ang interfacing na parang pinalitan mo lang yung usb ng parallel or serial port? Ang project po kasi namin eh MCU to PC interface and serial or parallel port ang gagamitin namin pero wala nang available na serial and parallel ports sa mga pc and laptop namin.

thanks sa mga sasagot :)

Philippine Electronics Forum


Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 402
  • Gender: Female
same pa rin as if you are using an original serial port or parallel port
Simpler designs are usually better.

Philippine Electronics Forum


Offline Kaizer03

  • Nuclear Reactor
  • ****
  • Posts: 4849
  • Pogi/Ganda Points: 225
  • C#<-->Android<-->Java
    • PhilRobotics
just dont forget the logic level translator ;)
Lend a hand for those who are in need!=)

Stop Hijacking!=) More Technical Posts!=)
 ;)

Kaizer Killer EX Pre-Alpha

Philippine Electronics Forum


Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Subscribing... Gamit din ako nito. Sir TS maki post dito hah...

just dont forget the logic level translator ;)

Gamit ba dito max232 sir? or any equivalent IC.. Kasi ang gamit ko po, using discreet components lang. Hito po part ng codes ko sa PIC using mikroc hoh:

Code: [Select]
while (1) {
      if (UART1_Data_Ready()) {     // If data is received,
      uart_rd = UART1_Read();     // read the received data,
      if (uart_rd == 0x31)                 // char "1"
       PORTD.B0 = 1;
       Delay_ms(1100);
       PORTD.B0 = 0;
      if (uart_rd == 0x32)                 //char "2"
       PORTD.B0 = 1;
       Delay_ms(400);
       PORTD.B0 = 0;
      if (uart_rd == 0x33)                 //char "3"
       PORTD.B1 = 1;
       Delay_ms(1100);
       PORTD.B1 = 0;
      if (uart_rd == 0x34)                //char "4"
       PORTD.B1 = 1;
       Delay_ms(400);
       PORTD.B1 = 0;
      }

Nag work naman ito. Pero meron konting medyo matagal na delay sa pag output pag char 2-3 ang na receive. Walang delay pag char 1. And another thing tina-try ko naman "portd=uart_rd, napansin ko nag blink yung LED's(depends on the char sent) connected to it then may delay for almost about 1sec then nag blink na naman.
By d way USB to serial gamit ko yung sa CDR king 120 petot. Maraming salamat po.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Philippine Electronics Forum


Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1842
  • Pogi/Ganda Points: 53
  • Gender: Male
share your schematics and how much NmaN MAGAGASTOS?

ung sakin  18f2550 gamit...
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Philippine Electronics Forum


Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 636
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
'yung USB to Parallel Port medyo mahirap maghanap nung direct na kapalit talaga. karamihan ng mabibili sa mga local Computer Shops ay USB to Parallel Port Printer talaga.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
http://www.uchobby.com/index.php/2007/06/11/ttl-to-rs232-adaptor-explained/

Yan po gamit ko level converter kasi walang available na RS232 dito sa amin. PIC16f887 po gamit ko. Na try ko rin pic16f628a.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 402
  • Gender: Female
^ pwede yan sis
Simpler designs are usually better.

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
USB-to-Serial eh walang problema. ;)

pero kapag USB-to-Parallel Port.. di pede.
kasi marerecognize yun as Comm Port instead of LPT Port..
LPT Port dapat para magamit ng Programming Language mo yung  data and control.

Philippine Electronics Forum


 

Privacy Policy

Contact Us: elabph@yahoo.com