Cordic trig assembly code for PIC18f


Results 1 to 40 of 55

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    That is the hardest part. Darn radians are 90 degrees off from the start.

    For example

    0 = 90 degrees
    5461 = 60 degrees
    10922 = 30 degrees
    16383 = 0 degrees (or North)
    21844 = 330 degrees
    32767 = 270 degrees
    38228 = 240 degrees

    and so on.....

    You definitely do not have to know this, but I think it is interesting:
    In the time it takes for a regular Sin, or Cos 16 bit function on a PIC18 to give a result, light travels 3000 kilometers
    The time it takes for this cordic 16 bit result, light travels 33.3 kilometers.
    How do you say "Your mileage may vary" when you use kilometers?
    Last edited by ScaleRobotics; - 13th February 2009 at 20:20.

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. 4 Chanel Dmx512 ready assembly code to PBP ?
    By syscoder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd March 2007, 00:55
  5. Your Suggestions: Assembly code material?
    By dw_picbasic in forum General
    Replies: 1
    Last Post: - 2nd February 2007, 18:33

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