hello sir,

i want to know weather its possible to print the characters by using epson 42 v and abt driving it by using atmega32 microcontroller. i hav written the code using code vision . the code is as follows.

#include<mega32.h>
#include<delay.h>
// timing signal T on portD-0
//reset pulse on portD-1
//triger magnet driving pulse on portD-2
int i;
void timing(void);
void reset(void);
void magnet(void);
void main()
{
while(1)
{
for(i=0;i<8;i++)
{
timing();
}
reset();

magnet();
}
}
void timing(void)
{
DDRD=0xff;
PORTD=0x01;
delay_ms(1);
PORTD=0x00;;
delay_ms(1);

}
void reset(void)
{
DDRD=0xff;
PORTD=0x02;
delay_ms(1);
PORTD=0x00; // a single reset pulse on pin pd.1
delay_ms(1);
}
void magnet(void)
{
DDRD=0xff;
PORTD=0x05;
delay_ms(1);
PORTD=0x04; //timing pulse on pd.0 gets low after 1ms
delay_us(500); // magnet pulse gets low on pd.2 after 1.5 ms
PORTD=0x00;
delay_ms(1);
}

i want to know weather motor needs the pulses or a continuous 5v supply.