[size=14]I've got several problem here :[/size]
[size=14]1 - How to send the pulses that generated by the quadrature encoder to my Adruino Duemilanove 328? My input should be like this [/size]

[size=14]and this is my program in order to get the desire output[/size]
int value = 0;
void setup()
{
Serial.begin(9600);
pinMode(13, INPUT);
}
void loop()
{
while (1)
{
{
if (!(digitalRead(13)))
{
Serial.println ("one");
}
else
Serial.println ("zero");
}
}
}
[size=14]and after I've done compiling and uploading the program, can I just monitor the output using serial monitor that already have in Adruino Environment?[/size]