help required regarding reading binary files


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    29

    Default help required regarding reading binary files

    Hi guys,

    im working on my project. that project is related with smart sensors. Im using labview to create a binary file which is of 256bit. Now i want such a system that can transfer this file from labview to an EEPROM. Now im using PIC16F877A in between. PIC is communicating to labview through serial port, and the same pic is dealing with EEPROM 1 wire interface. The biggest problem for me is this that i cant transfer this 256-bit simultaneously to EEPROm using this PIC. because PIC cant hold such a big data in its any variable type. The biggest variable that is available is word which is of 2-byte size. I cant break my binary files into small pieces. Is there any way through which i can transfer 256-bit binary file from labview serial port interface to pic and then from pic to the EEPROM??

    I shall be thankful to u for ur precious replies.

    Regards,


    Shaiq
    LETS MOVE TOWARDS SOMETHING PRACTICAL---

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shaiqbashir View Post
    im working on my project. that project is related with smart sensors. Im using labview to create a binary file which is of 256bit. Now i want such a system that can transfer this file from labview to an EEPROM. Now im using PIC16F877A in between. PIC is communicating to labview through serial port, and the same pic is dealing with EEPROM 1 wire interface. The biggest problem for me is this that i cant transfer this 256-bit simultaneously to EEPROm using this PIC. because PIC cant hold such a big data in its any variable type. The biggest variable that is available is word which is of 2-byte size. I cant break my binary files into small pieces. Is there any way through which i can transfer 256-bit binary file from labview serial port interface to pic and then from pic to the EEPROM??
    256 bits is 32 bytes...
    The '877A has 368 bytes of ram onboard.

    I'd be willing to bet that between the above information, and this:

    http://www.picbasic.co.uk/forum/show...ts+bytes+array

    You can easily make something work...

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I wrote a program that reads and writes hex data files to a I2C memory chip via Xmodem protocol. I will try to find and post it if that would help.

Similar Threads

  1. Serial reading of binary at 75 baud
    By JasonMarsh in forum Serial
    Replies: 5
    Last Post: - 20th February 2008, 16:36
  2. Missing 16F882 family include files :-(
    By campmdabt in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th December 2007, 01:17
  3. Sensor reading Program Help Required
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd May 2006, 16:05
  4. Replies: 2
    Last Post: - 13th December 2005, 00:11
  5. Reading a 8bit Binary word
    By Moz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd September 2004, 00:44

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts