caramoan tour package

caramoan tour package

Author Topic: rs232 pinter + pic uC -help-  (Read 774 times)

Offline jhun24

  • CR2032 Battery
  • **
  • Posts: 14
  • Pogi/Ganda Points: 0
rs232 pinter + pic uC -help-
« on: February 04, 2010, 12:09:04 PM »
kung cno man po ang nkapag interface na nito.. pls help me po.. tinatry ko po mag send ng printf command sa printer pero wala pong nangyayari... khit putc puts wala pa rin.. panu po kaya ito??

epson tm-u300 po ung brand ng printer
max232 TTL converter ckt e2 po gamit ko..
Code: [Select]
http://sodoityourself.com/max232-serial-level-converter/ pic 16f877a po uC ko.

kung meron po kaung alam, suggestion or comment.. pls post it here.. thx ng marami...

Philippine Electronics Forum

rs232 pinter + pic uC -help-
« on: February 04, 2010, 12:09:04 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4827
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: rs232 pinter + pic uC -help-
« Reply #1 on: February 04, 2010, 12:20:39 PM »
http://www.dragon-it.co.uk/links/epson_printer_codes.htm
sna makatulung....

epson esc commands yan.

Philippine Electronics Forum

Re: rs232 pinter + pic uC -help-
« Reply #1 on: February 04, 2010, 12:20:39 PM »

Offline jhun24

  • CR2032 Battery
  • **
  • Posts: 14
  • Pogi/Ganda Points: 0
Re: rs232 pinter + pic uC -help-
« Reply #2 on: February 04, 2010, 12:24:33 PM »
thx po,i can use it for formatting text.. pero ang hinahanap ko po kung panu magsend ng text papuntang printer para ma print nia..

Philippine Electronics Forum

Re: rs232 pinter + pic uC -help-
« Reply #2 on: February 04, 2010, 12:24:33 PM »

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 400
  • Gender: Female
Simpler designs are usually better.

Philippine Electronics Forum

Re: rs232 pinter + pic uC -help-
« Reply #3 on: February 04, 2010, 02:51:02 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4827
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: rs232 pinter + pic uC -help-
« Reply #4 on: February 04, 2010, 05:40:48 PM »
thx po,i can use it for formatting text.. pero ang hinahanap ko po kung panu magsend ng text papuntang printer para ma print nia..

di ata tayo nag kaintindihan.. from 877a uC yang commands ang isesend mo sa serial port from uC to Printer...

so i program mo yung uC mo with the esc format para mabasa nang serial printer mo...

http://en.wikipedia.org/wiki/ESC/P

Philippine Electronics Forum

Re: rs232 pinter + pic uC -help-
« Reply #4 on: February 04, 2010, 05:40:48 PM »

Offline jhun24

  • CR2032 Battery
  • **
  • Posts: 14
  • Pogi/Ganda Points: 0
Re: rs232 pinter + pic uC -help-
« Reply #5 on: February 05, 2010, 02:32:22 PM »
opo.. pano po ba gawin ung esc format program?? sry po ah medyo newbie kc ako..

i tried this code..
Code: [Select]
#include <16f877a.h>

#fuses hs
#use delay(clock=4000000)
#use rs232(baud = 9600, xmit = PIN_E0, parity = O, bits= 8)
  
  

void main ()
{

int32 password;
password = 123456789;

putc(0x40);
puts("MCU Based ------------");
putc(0x10); //line feed
putc(0x09); //tab horizontally
printf("-------------------------");
printf("your password: %x", password);
putc(0x0c);
putc(0x19);

while(1);
}

khit isa dyan sa code walang lumabas sa printer.. T_T

Offline codemunkeee

  • CR2032 Battery
  • **
  • Posts: 18
  • Pogi/Ganda Points: 2
Re: rs232 pinter + pic uC -help-
« Reply #6 on: July 01, 2012, 11:28:03 AM »
up

Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1909
  • Pogi/Ganda Points: 153
Re: rs232 pinter + pic uC -help-
« Reply #7 on: July 01, 2012, 12:09:09 PM »
down....

codemunkeee
baka gusto mong magsubok ng gumamit ng PIC mcu with usb host at gamitin ung usb printer driver from Microchip. Pls. check Microchip Applications Library for more details.

Offline codemunkeee

  • CR2032 Battery
  • **
  • Posts: 18
  • Pogi/Ganda Points: 2
Re: rs232 pinter + pic uC -help-
« Reply #8 on: July 01, 2012, 01:26:09 PM »
@PICUSER

tningnan ko po pero parang nosebleed aq eh.. hahaha newbie plang po kasi ako sa mga ganitong bagay.. XD

Philippine Electronics Forum

Re: rs232 pinter + pic uC -help-
« Reply #8 on: July 01, 2012, 01:26:09 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com