Bit Angle Modulation (BAM) in a PIC


Closed Thread
Results 1 to 40 of 151

Hybrid View

  1. #1
    Join Date
    Nov 2004
    Posts
    61


    Did you find this post helpful? Yes | No

    Default

    I'd run in to the exact same issues between 127 and 128. Never had time to investigate it further.

    My implementation just used a state machine in the interrupt routine - 1 state for each bit.

    Each state sets TMR1 to a different level, then sets / clears the appropriate pins.

    I assume that you're implementing the 2xF 'mirror' method in a similar way? Very clever.
    Last edited by JEC; - 19th January 2009 at 18:24.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Ioannis

    Hi John,
      Just yesterday I was thinking about how this might be good for your Christmas Lights.
      Apparently, the thought had not escaped you.

    Quote Originally Posted by JEC View Post
    I assume that you're implementing the 2xF 'mirror' method in a similar way?
    Well, the best method, is still to be determined. I'm trying every way I can think of ...

    Currently, I'm rotating the DutyCycle out to the Pin, and when rotating it left, I shift the timer value Right to give 1/2 the period for the next bit, when rotating right, the timerval gets shifted left for 2x the period.

    I'm also trying to incorporate the "Cylon Scanner" that Bruce and I were playing with last year.
    With the mirror image, the bit's are scanned back and forth much like a Cylon (or Kitt the car).

    Never thought that optimization exercise would actually be useful some day.
    <br>
    DT

  3. #3
    Join Date
    Nov 2004
    Posts
    61


    Did you find this post helpful? Yes | No

    Default

    &nbsp; Just yesterday I was thinking about how this might be good for your Christmas Lights.
    &nbsp; Apparently, the thought had not escaped you.
    Pity the 10F doesn't have a TMR1...

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 10:02
  2. Cordic trig assembly code for PIC18f
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 54
    Last Post: - 8th September 2015, 06:36
  3. AT/PS2 Keybord - PIC Interface?
    By Kamikaze47 in forum Code Examples
    Replies: 73
    Last Post: - 9th August 2009, 17:10
  4. MIBAM - (Mirror Imaged Bit Angle Modulation)
    By Darrel Taylor in forum Code Examples
    Replies: 2
    Last Post: - 15th February 2009, 17:02
  5. Bit Angle Modulation
    By BH_epuk in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th November 2008, 08:01

Members who have read this thread : 2

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