Binary files with FAT16 driver from objext excange?
Rubberduck
Posts: 11
I wonder if it is possible to change the driver to be able to write binary files (diffrent from the original ascii-files)? Or is there an easier way of doing this? Please give a hint on how to proceed.
I will store only numbers from an ADC.·I would like to be able to skip the conversion from a digital number to a ASCII-formated text.
Hope you can make sense of my writing?
/Andreas
I will store only numbers from an ADC.·I would like to be able to skip the conversion from a digital number to a ASCII-formated text.
Hope you can make sense of my writing?
/Andreas
Comments
I'am using pwrite [noparse]:)[/noparse]. If the value from ADC is 3650 this will be stored in the file as ascii: (DC4 - a control byte) and B. I would like to have the number 3650 directly in the text file. Yes, I can use a hex dump- program (or simular) to see the number but me want to import the txt file that propeller creates in to another program to draw a nice graph.
Any idea on doing this easy?
/AK
You can also take the hex and decimal output formatting routines (hex and dec) from FullDuplexSerial (which comes with the Propeller Tool) and modify them trivially to write using pputc instead of tx and that will let you do what you want.
I will look in to that.
/AK