cubeberg 540 Posted July 15, 2013 Share Posted July 15, 2013 is there a way to save it to an excel file (.xlsx) instead of .txt file? You could use a delimiter - excel works great with tabs or commas. Quote Link to post Share on other sites
f3a46 0 Posted July 16, 2013 Share Posted July 16, 2013 Hi thanks for the reply! Is there another way, like writing to the excel file with the program? I am doing this because I am trying to make this easy for whoever's using this code, so they don't have to handle all these delimiter steps (txt file to excel file) Quote Link to post Share on other sites
cubeberg 540 Posted July 16, 2013 Share Posted July 16, 2013 Hi thanks for the reply! Is there another way, like writing to the excel file with the program? I am doing this because I am trying to make this easy for whoever's using this code, so they don't have to handle all these delimiter steps (txt file to excel file) I'd say a native excel format is way too complicated for the device. Even the .xslx format which is XML-based requires the XML to be compressed. It would also require you to write the data together as one file - whereas a delimited file can just be appended when you have new information. However - if you use a .csv file extension and comma separate - excel can open the file without user interaction. CSV files are typically already associated with excel - so they would open it up like a normal spreadsheet. f3a46 1 Quote Link to post Share on other sites
RobG 1,892 Posted July 16, 2013 Share Posted July 16, 2013 Use tab delimiters and name your file .xls, there's nothing simpler. Quote Link to post Share on other sites
f3a46 0 Posted July 16, 2013 Share Posted July 16, 2013 Hey I just notice it's using software serial for UART. How do I change it to hardware UART, or is there a reason why it uses SW? Quote Link to post Share on other sites
bluehash 1,581 Posted July 17, 2013 Author Share Posted July 17, 2013 @@f3a46 The hardware serial port is tied to the Launchpad's serial/usb emulation via jumpers. You can use it if you want, but you will have to forgo that port you use to do printfs. Quote Link to post Share on other sites
msp430noob 0 Posted July 17, 2013 Share Posted July 17, 2013 I have the same problem with f3a46. I am trying to integrate my Bluetooth code (using hardware serial) with this code (software serial). If i take out the SW code and use HW, would that affect the petit FAT file side of code? Quote Link to post Share on other sites
cubeberg 540 Posted July 17, 2013 Share Posted July 17, 2013 I took a look at the software serial code - I'm not seeing any issues with gutting it and using hardware UART unless I'm missing something obvious. I'm not seeing anything that sets anything affecting clocks that might cause a problem elsewhere. I'd say you're safe to swap it out - just leave the function names, or replace the function names in the other files (or add a define). Just make sure you've got the jumpers set correctly for HW uart instead of SW. msp430noob and bluehash 2 Quote Link to post Share on other sites
msp430noob 0 Posted July 17, 2013 Share Posted July 17, 2013 Thanks for the reply Quote Link to post Share on other sites
f3a46 0 Posted July 21, 2013 Share Posted July 21, 2013 I could get the code to work without disk_initialize(), do you guys got the same thing? Isn't it necessary? Quote Link to post Share on other sites
f3a46 0 Posted July 21, 2013 Share Posted July 21, 2013 nevermind, it doesnt work Quote Link to post Share on other sites
f3a46 0 Posted July 22, 2013 Share Posted July 22, 2013 URGENT: would anybody know how to easily create a .csv file for a certain file size? say 900 kb Thanks in advance!!! Quote Link to post Share on other sites
cubeberg 540 Posted July 22, 2013 Share Posted July 22, 2013 What OS? Win 7 - http://en.kioskea.net/faq/15846-windows-7-create-and-empty-file-having-a-defined-size https://www.google.com/search?q=create+empty+file+with+specific+size bluehash and f3a46 2 Quote Link to post Share on other sites
Hammerwang 1 Posted July 23, 2013 Share Posted July 23, 2013 Hey @@bluehash, new question for you - Thank you for all your help for getting the SD card reading going, I am now trying to get this mp3 audio decoder, the STA013, incorporated into my design. But I am having trouble with getting the data from the SD card (via SPI - MISO) to the g2553 microcontroller, and passing this data to my decoder (via I2C - SDAout). Do you have any insight on this issue? Is it possible to switch between the SPI protocol to the I2C protocol? I have a multiplexer to divide the line conflict between the two, but I believe they share the same interrupt, which follows: #pragma vector = USCIAB0TX_VECTOR __interrupt void USCIAB0TX_ISR(void) Let me know if you need any more info or any clarifications, thanks ! Quote Link to post Share on other sites
f3a46 0 Posted July 23, 2013 Share Posted July 23, 2013 This is very useful Thank you! Is there a way to access any file from the SD card? Right now it's pf_open(filename.txt). How do we get the code to work with any filename? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.