Send binary file to pic over pc serial port


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    > It seems the more I try to understand the less I do.
    And the more I try to explain the less I get across.

    Look, I hate to say it this way but, ...

    I find it hard to believe that someone who doesn't know how the USART works, would understand and be able to use the MSSP module. It's much more difficult. Perhaps you've cut&pasted someone else's code that does use it.

    But I can't seem to get that kind of information out of you.

    Please slow down and look at 1 thing at a time. And in this case, answer 1 question.

    Are you using the MSSP module?
    Keep in mind that there are NO PBP statements that use it.
    You would have to be manually manipulating registers.
    <br>
    DT

  2. #2
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    > It seems the more I try to understand the less I do.
    And the more I try to explain the less I get across.

    Look, I hate to say it this way but, ...

    I find it hard to believe that someone who doesn't know how the USART works, would understand and be able to use the MSSP module. It's much more difficult. Perhaps you've cut&pasted someone else's code that does use it.

    But I can't seem to get that kind of information out of you.

    Please slow down and look at 1 thing at a time. And in this case, answer 1 question.

    Are you using the MSSP module?
    Keep in mind the there are NO PBP statements that use it.
    You would have to be manually manipulating registers.
    <br>

    I didn't cutnpaste code.
    I've read the datasheet of the SPI serial memory (25aa1024, the info about the 16 bits SPI dac and the info about SPI in the PIC datasheet. It is very difficult but at least, from what I've read, using SPI is not that difficult, there are a few instructions.
    Pull CD low, send WREN command to enable the writes, put CS High. Put CS low, check status register to see if the Write In Progress bit is cleared, put CS HIGH. Then put CS low, send the WRITE command followed by the 24 bits address and then the bytes to write and finish by putting the chip select pin high again.
    You write to SSPBUF to transfer to the shiftin buffer and you read the data from the buffer and use it if relevant.
    It does not seem so complicated once the setting to registers related to SPI have been properly set. I know there is no PBM commands to use SPI. But there are fot the USART. And using the usart seems more complicated to me.
    Anyway, I have to learn. I read code from other people and try to figure it out.

Similar Threads

  1. serial to PIC
    By kindows in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 14th July 2009, 13:58
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 21:55
  4. Serial com PIC <> PC - what is best?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2007, 08:37
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45

Members who have read this thread : 0

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