My project is starting


Closed Thread
Results 1 to 40 of 92

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Sorry, that won't work

    "We can, however, use PC software if we use a device that will act as a master I2C device controlled by PC software. We used the PICkit™ Serial analyzer configured as an I2C master device."


    Since you need a Pickit serial analyzer to make it work, it kind of defeats the purpose. Maybe this one, AN1310: http://www.microchip.com/stellent/id...pnote=en546974
    Last edited by ScaleRobotics; - 19th November 2010 at 02:44.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default So close

    Just skimed over AN1310. It sounds awesome, but of course it says it uses USART1 and of course I am setup for USART2

    Maybe the firmware can be modified? I will also look at the alternatives listed at the end of the note.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Maybe the best choice here is to skip the bootloader for now. It may be I am just a bit overwhelmed with the choices, but getting it to work is really more important then being able to upgrade the firmware in the field. Maybe on the next board rev I will look at changing the usart's but I think I wanted the pins to make something else easy. I don't remember right now.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    EMC2...
    Have you tried the new version using Ubunu 10 yet?

    JDM
    I do not normally sugest them but I have bult them into a board for cases like this. Being built in and tweaked for one chip helps their short comings.
    Then use PikLab to squirt the hex.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Haven't tried the new version yet, but I have managed to get the live install on a USB drive and ready to install so I don't need a cd player. I imagine I will have it running over the holiday.

    Jdm- I had never even heard about this programmer until I joined this forum. Building it onto the card is a cool idea, but it missed this rev. I guess I could just build one, but will it really be cost effective when a pickit2 is only $35 for just the programmer?

    As an extra bonus, if I could do all this with ubuntu 10 from the machine controller, now that would be something.

    Alas, I think it's prolly best to leave the field upgrade out of the equation for just now. And if I do that, I don't even need serial comm. Now I can just focus on getting the basic function done so the machines will work.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I guess I could just build one, but will it really be cost effective when a pickit2 is only $35 for just the programmer?
    Is this project a one off sort of thing? If so then the PicKit2 will be cheaper in the long run.

    As an extra bonus, if I could do all this with ubuntu 10 from the machine controller, now that would be something.
    You can also use the PicKit2 on an Ubuntu box.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    dave do you ever sleep?

    About the project size, Of course we always hope somebody may want 1 besides us, at this point I am only focused on his and mine. For this I think pk2 is prolly best. I can even get him to buy his own!

    I will prolly dig a little deeper into the I2C method. In the future it would be best to have a single serial connection to talk to both cards. I am sure there must be a way to not need the serial analyzer to do this. even if its a special built card that does rs232<->I2c. power levels can come from the target


    yea Ubuntu!!!
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  8. #8
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Darrel has a post in here somewhere that says how many instruction cycles an ASM type interrupt has, but I am having a heck of a time trying to find it. I remember it being substantially fewer than PBP type, but can't remember the number. I will try looking some more.
    http://www.scalerobotics.com

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  10. #10
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    70 cycles are mentioned.
    Yes, 70 instructions cycles to save the registers, and 70 instruction cycles to restore them, but that is for PBP type interrupts. But for ASM type interrupts it is much shorter. I think it is something like 12 or 22 instruction cycles. But then, I can't find it in here or my brain.
    Last edited by ScaleRobotics; - 2nd December 2010 at 22:44.
    http://www.scalerobotics.com

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