Configure Debug @ runtime?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2005
    Posts
    1,073

    Default Configure Debug @ runtime?

    Is it possible to configure Debug at runtime.

    I'm planning to use two 12F1840s and two 16F1283s for DIO/ADC with all reporting their data over the I2C bus in the same manner as I'm doing for serial ports. You can see it here.

    There are 4 stereo jacks and those 8 lines are intended for streaming DIO (e.g. RF/IR In/Out). I would like to allow users to configure them for other uses - one of which would be as software UARTs (there are no MAX3232s). Is there any way to configure Debug at runtime. It has a lower code burden and I would like to use it, if there's a way to set baudrate.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Re: Configure Debug @ runtime?

    I think the delay is computed at compile time, and it would probably not be too easy to modify. However, you could simply 'lift' one of the many ASM bit-bang RS-232 routines that exist all over the net and just 'drop it in' with ASM...ENDASM. The routines are generally smaller than 256 bytes, so they should not break PBP's limit. You can define the local (to the ASM routine) vars normally, but the ones that you transfer to/from PBP should be declared as BANKA SYSTEM.
    Charles Linquist

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: Configure Debug @ runtime?

    Quote Originally Posted by Charles Linquis View Post
    I think the delay is computed at compile time, and it would probably not be too easy to modify. However, you could simply 'lift' one of the many ASM bit-bang RS-232 routines that exist all over the net and just 'drop it in' with ASM...ENDASM. The routines are generally smaller than 256 bytes, so they should not break PBP's limit. You can define the local (to the ASM routine) vars normally, but the ones that you transfer to/from PBP should be declared as BANKA SYSTEM.
    Thanks, Charles. I'm trying to use some dialect of Basic for everything in the project. Since the PICs all use bootloaders, I may just create multiple firmwares that support different (slower) baudrates if I cannot find another solution. Most Home Automation devices use 2400-19200 so I may just leave higher rates for those who want to roll their own.

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Re: Configure Debug @ runtime?

    I'll buy some of your stuff. Where?
    Charles Linquist

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: Configure Debug @ runtime?

    Quote Originally Posted by Charles Linquis View Post
    I'll buy some of your stuff. Where?
    I'm expecting to have prototype PCBs in about 2-3 weeks. Once debugged yourduino.com (and possibly a couple others) will distribute them.

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: Configure Debug @ runtime?

    I still have to delve into the ds30 bootloader documentation but, from a post to their forum, it appears it can be configured to invert the data so there's no need for DEBUG/DEBUGIN after all.

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