New fast data logging sketches

Hello,

thank you fat16lib for your time which you are putting to open-source code and helping others! I am a beginner with Arduino and I appreciate it a lot...

I am using your mcpLogger.pde with ADC MCP3201, but for some reason it save only first two lines to the file. First ,,Log Interval usec: 250" and second ,,4095" or ,,0". I was trying to put different voltage at the input or put it to the ground, but it lives by itself live and always save one of those values.
On the serial communication it writes only this:

Type any character to start.
FreeRam: 308
Log Interval: 250 usec
Logging to: FAST

and then it get stacked. Sometime it ends with FAST08. and sometime just with F. Here comes my question. Do you know, please, where can be the problem? I have Arduino Ethernet and saving it to uSD card. Firstly I thought, that it is because small ram, but this doesnt seem to be the problem. Every time I reset the Arduino board it writes one letter less.

I change the code this way:

// SD chip select pin
const uint8_t chipSelect = 4;

#else  // MEGA_TEST
const int8_t MCP_SAR_CLK_PIN   = 0;  // analog pin 0
const int8_t MCP_SAR_DOUT_PIN  = 1;  // analog pin 1
const int8_t MCP_SAR_DIN_PIN   = -1;
const int8_t MCP3201_CS_PIN    = 2;  // analog pin 2
#endif  // MEGA_TEST

I will appreciate any idea where I can look. I spend more than week trying to find out the problem.

Thank you in advance,
Maslo