Newbie needs example RC code


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    snip:

    so it is definately doable on a 16f884. It uses the CCP1 pin, but it uses assembly for the interrupt routines.

    http://www.picbasic.co.uk/forum/showthread.php?t=12657[/QUOTE]

    That link led me to another link, http://www.scalerobotics.com/PWMpassthrough.html
    that looks like the perfect starting point for me except that it's not compiling. I found the source for DT_INTS-14.BAS but it still gets error:

    ERROR: Unable to execute mpasmwin.Error[118] C:\DOCUMENTS AND SETTINGS\MIKE\MY DOCUMENTS\MPLAB\TEST.ASM 197 : Overwriting previous address contents (2007)

    unfortunately that doesn't seem to point to a particular code line.

    I set the device to the same one described in the text, PIC12F683

    Thoughts?

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


    Did you find this post helpful? Yes | No

    Default

    Since I put configs in the code, you will need to edit out the configs that are automatically added by PBP. Go to the PBP directory, find the 12F683.INC file, and do the following:

    Edit out the config statements like in this post:

    http://www.picbasic.co.uk/forum/show...8&postcount=15

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


    Did you find this post helpful? Yes | No

    Default

    This was a helpful site for me, but it is 100 percent assembly code:

    http://www.mcmanis.com/chuck/robotic...e_measure.html

  4. #4
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Okay, this is awesome. the program compiles perfectly now and I can manipulate the servos the way I want in BASIC. This is way better a start than I was hoping for.

    Thank you soo much.

    Best regards all,

    Mike

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