Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

Discussion Groups | AVRclub | Re: Printer reference design

Atmel AVR Microcontroller discussion group.

Printer reference design - Frank Alcantara - Dec 9 11:50:00 2003

Hi Guys

I've been here during a year, at least, learning with you, now I am
needing some help. I am looking for any kind of printers reference
design, either thermal or matrix printer, to a point of sale. I need
this to include that funcionality in one customer project. Please
forgive my awful English and the double posting.

Thanks in advance.

Frank Alcantara




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: Printer reference design - michael - Mar 16 16:30:00 2004

--- In avrclub@avrc..., "Frank Alcantara"
<frankalcantara@b...> wrote:
> Hi Guys
>
> I've been here during a year, at least, learning with you, now I am
> needing some help. I am looking for any kind of printers reference
> design, either thermal or matrix printer, to a point of sale. I need
> this to include that funcionality in one customer project. Please
> forgive my awful English and the double posting.
>
> Thanks in advance.
>
> Frank Alcantara

hey I am attempting to replace and old
thermal POS printer with an Epson Tm-T88 reciept printer
using an avr as an interface between the old circuit
and the new printer. I am not having much luck with it
does anyone out there know where to start on a project like this?
I have a clock and a data line to input to the AVR and then
send the data out of the UART at 19200 8, odd, 1
any help would be appreciated....
tried AVR beginners
AVR freaks...but no help.





(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] Re: Printer reference design - David VanHorn - Mar 16 17:06:00 2004

At 08:30 PM 3/16/2004 +0000, michael wrote:

>--- In avrclub@avrc..., "Frank Alcantara"
><frankalcantara@b...> wrote:
>> Hi Guys
>>
>> I've been here during a year, at least, learning with you, now I am
>> needing some help. I am looking for any kind of printers reference
>> design, either thermal or matrix printer, to a point of sale. I need
>> this to include that funcionality in one customer project. Please
>> forgive my awful English and the double posting.
>>
>> Thanks in advance.
>>
>> Frank Alcantara
>
>hey I am attempting to replace and old
>thermal POS printer with an Epson Tm-T88 reciept printer
>using an avr as an interface between the old circuit
>and the new printer.

Not sure what you mean here.
Are the two printers different interface, like serial vs parallel?
AFAIK, most POS printers are low speed async serial.




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: Printer reference design - michael - Mar 17 7:55:00 2004

hey I am attempting to replace and old
> >thermal POS printer with an Epson Tm-T88 reciept printer
> >using an avr as an interface between the old circuit
> >and the new printer.
>
> Not sure what you mean here.
> Are the two printers different interface, like serial vs parallel?
> AFAIK, most POS printers are low speed async serial.

the old POS system is a 6809 based cpu setup that was shifting printer
data out of a Rockwell 6522 VIA chip into a UCN5810.
sync serial data (clock and data lines)
i need to convert this data using an AVR and send it out
to the printer at 19200 8O1.async data.

Being brand new to AVR's i have no clue where to start.





(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] Re: Printer reference design - John Johnson - Mar 17 8:28:00 2004

This example uses WinAVR, it is untested, but should give you an idea
how to start. For more info, see http://www.avrfreaks.net

Regards,
JJ

#define DATA PB0
#define CLOCK PB1

int
get_input()
{
// assuming MSB first, change if not
unsigned char bit = 0x80;
unsigned char byte;

while (bit != 0) {
loop_until_bit_is_set(PINB, CLOCK);
if (bit_is_set(PINB, DATA) {
byte |= bit;
}
loop_until_bit_is_clear(PINB, CLOCK);
bit = bit >> 1;
}

return byte;
}

int
uart_putchar(int c)
{
// send the character using the UART
...
return 0;
} void
main()
{
unsigned char inbyte;

// setup the UART

fdevopen(uart_putchar, get_input, 0);
...
// enable pullup resistors on clock and data pins (if needed)
PORTB |= _BV(DATA) | _BV(CLOCK);
...
for(;;) {
inbyte = fgetc(stdin);
fputc(inbyte, stdout);
}
}

On Wednesday, Mar 17, 2004, at 06:55 US/Eastern, michael wrote:

> hey I am attempting to replace and old
>>> thermal POS printer with an Epson Tm-T88 reciept printer
>>> using an avr as an interface between the old circuit
>>> and the new printer.
>>
>> Not sure what you mean here.
>> Are the two printers different interface, like serial vs parallel?
>> AFAIK, most POS printers are low speed async serial.
>
> the old POS system is a 6809 based cpu setup that was shifting printer
> data out of a Rockwell 6522 VIA chip into a UCN5810.
> sync serial data (clock and data lines)
> i need to convert this data using an AVR and send it out
> to the printer at 19200 8O1.async data.
>
> Being brand new to AVR's i have no clue where to start. > ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Upgrade to 128-bit SSL Security!
> http://us.click.yahoo.com/LPJzrA/yjVHAA/TtwFAA/dN_tlB/TM
> ---------------------------------------------------------------------
> ~- > Yahoo! Groups Links





(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: Printer reference design - michael - Mar 17 8:50:00 2004

--- In avrclub@avrc..., John Johnson <johnatl@m...> wrote:
> This example uses WinAVR, it is untested, but should give you an idea
> how to start. For more info, see http://www.avrfreaks.net
>
> Regards,
> JJ
>
> #define DATA PB0
> #define CLOCK PB1
>
> int
> get_input()
> {
> // assuming MSB first, change if not
> unsigned char bit = 0x80;
> unsigned char byte;
>
> while (bit != 0) {
> loop_until_bit_is_set(PINB, CLOCK);
> if (bit_is_set(PINB, DATA) {
> byte |= bit;
> }
> loop_until_bit_is_clear(PINB, CLOCK);
> bit = bit >> 1;
> }
>
> return byte;
> }
>
> int
> uart_putchar(int c)
> {
> // send the character using the UART
> ...
> return 0;
> } > void
> main()
> {
> unsigned char inbyte;
>
> // setup the UART
>
> fdevopen(uart_putchar, get_input, 0);
> ...
> // enable pullup resistors on clock and data pins (if needed)
> PORTB |= _BV(DATA) | _BV(CLOCK);
> ...
> for(;;) {
> inbyte = fgetc(stdin);
> fputc(inbyte, stdout);
> }
> }
Thanks!!!!




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )