Simplest way to write to USB stick or TF/SD card with PBP?


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    No extra hardware needed.
    The easiest way is to put a config.txt, containing your desired options, on the SD card. See the Configuration File section of the tutorial.

  2. #2
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Thanks!
    I never used serial transmission with PICs, so I need SEROUT/SERIN statements to be used, right?

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Yes. SEROUT, SEROUT2 or HSEROUT/HSEROUT2 is what you want.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    I've looked at these modules and besides TX/RX they also have CTS RTS pins. Can be these handled by PBP, or I have to add some manual code like this?

    Code:
    HIGH RTS 'make RTS pin high
    MAIN:
    IF CTS=1 THEN GOTO SEND 'wait while CTS gets high, before sending the data
    GOTO MAIN
    SEND: 'SOMETHING

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    PBP command SEROUT2 can handle flow control.
    With that said I've never needed to use it with OpenLOG but it depends on how much data and at what speed you you're trying to log.

  6. #6
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    So I just disregard these pins and let them float?

  7. #7
    Join Date
    Aug 2011
    Posts
    457


    Did you find this post helpful? Yes | No

    Default Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Look at the SERIN2/SEROUT2 commands in the manual.
    They allow you to specify optional flow control pins which you would connect to the RTS/CTS pins of the module you're using if it has hdw flow control.

    That may or may not work since the SERxx2 commands are bit-banged.
    SEROUT2 would probably be ok, but SERIN2 might have issues.

Similar Threads

  1. PBP registration does not stick, still unregistered
    By Heckler in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 28th June 2017, 05:04
  2. Replies: 0
    Last Post: - 6th March 2009, 07:52
  3. simplest usb bootloader pbc solution ??
    By f_lez in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th December 2007, 16:09
  4. Replies: 9
    Last Post: - 10th April 2007, 19:22
  5. USB memory stick
    By Demon in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 12th July 2005, 20:57

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