Results 1 to 5 of 5

Thread: Can baud rate and start channel settings be recovered from programmed PIC?

  1. #1
    Junior Elf member
    Join Date
    Jun 2016
    Posts
    7

    Can baud rate and start channel settings be recovered from programmed PIC?

    My TR-16s aren't labeled, and I need to figure out baud rates and starting addresses programmed onto the PIC. Is there a simple way to divine those settings from the .hex file that is on the PIC? I do not have the original hex files available to me (which had baud rate and channel offset in their filenames), so re-flashing to restore the current settings isn't really an option.

    Barring an easy way to do that, I suppose I'll need to re-flash them with another hex from the current firmware package. I found the baud rate setting in the .asm file from the current firmware package, although I'm still a bit confused on how to modify the start address line in the .asm file to set a 16-channel offset.

    And what application is being used nowadays to compile a modified .asm file into a hex? It appears that MPASM is not available as a standalone (unless my Google-fu is weak).

    I'll be running the TR-16 off a Falcon F16v3, if that matters.

    Any answers would be appreciated.

  2. #2
    Senior Elf member
    Join Date
    Jul 2013
    Location
    vinal St. Hudson MA
    Posts
    186
    MPLAB-X Is the latest version. It includes MPASM.

    Trial and error is the only way to find what you are looking for. Create a sequence that turns 100 channels on and off at a reasonable rate and play it at each baud rate until you get the right results.

    Next create a sequence with one channel and play it. Increase the number of channels by 1 until you get output. That is the starting offset.

  3. #3
    Santa's Helpers Falcon's Avatar
    Join Date
    Nov 2011
    Location
    Salem, Orygun Just South of Canby
    Posts
    2,040
    We have had better luck with MpLab v8.86. Very stable. Unless you have done something out of the normal the standard baud rate should be 57600

    Using MpLab open the project file, then the asm file and look for the following:

    #DEFINE START_ADDR 0 ;; 0 starts channels 1-8

    Change it as needed then re-buld the hex file.

    If you need more information take a look at:

    http://renard-plus.com/files/Pic%20P...ng%20Guide.pdf
    http://renard-plus.com/files/Renard_Start_Address.pdf

  4. #4
    Rudolph member
    Join Date
    May 2016
    Location
    UK about the middle - S80 postcode.
    Posts
    665
    Barring an easy way to do that, I suppose I'll need to re-flash them with another hex from the current firmware package. I found the baud rate setting in the .asm file from the current firmware package, although I'm still a bit confused on how to modify the start address line in the .asm file to set a 16-channel offset.
    Hi, If the baud rate is correct from previous years you can use the Renard Plus Start Address Programmer to set the start addresses without needing to re-flash the PICs.
    Last edited by Barnabybear; 10-27-2018 at 04:08 PM.

  5. #5
    Junior Elf member
    Join Date
    Jun 2016
    Posts
    7
    I managed to edit the .asm file, but took some luck to find the option that activated the black magic that resulted in a hex file being compiled. According to the indicators on the board, itís working. Iíll run a test sequence just as soon as I can find a spare Ethernet cable to hack. Thanks for the assist.

Posting Permissions

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