WS2811 and WS2812 One-Wire Communication Assembly Help


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    I may have measured that wrong, its more like 5mS now for 192 bytes


    the spi takes 25uS per byte and there is a 5us gap between bytes as is

    I think the gap between bytes needs to be less than 50uS

    so an isr has 60us to get in do something and get out again

    conversely an asm isr could feed the spi buffer every 60uS or so
    Warning I'm not a teacher

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    just for a joke I upped the osc to 32mHz ,
    it still works , its less than 3mS now for 192 bytes
    these things aren't that fussy
    Warning I'm not a teacher

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    just remembered de morgan equivalents , have not done Boolean algebra since ttl was in vogue
    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    It seems that the chips WS2811 are quite tolerant on the timing specs.

    Ioannis

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    Did you guys see this example/thread?

    http://www.picbasic.co.uk/forum/showthread.php?t=19597

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    Did you guys see this example/thread?
    indeed . the point of my posts are to demonstrate tight loop routines that achieve the same task without all that spaghetti code


    here is an interrupt driven version of the clc method using linear sram memory access to facilitate a 240 byte buffer on a pic16
    Attached Files Attached Files
    Warning I'm not a teacher

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: WS2811 and WS2812 One-Wire Communication Assembly Help

    Yes, I understand what your goal is and want to try your code out. I have a 8x8 neopixel to run it on.

    I referenced the other thread for the op who said he wasn't great at assembly code.

    Thanks

Similar Threads

  1. PIC to WS2812B / WS2811 IC
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th January 2018, 19:37
  2. ws2812 - pic12f1822
    By richard in forum Code Examples
    Replies: 0
    Last Post: - 12th January 2016, 09:52
  3. Assembly
    By Normnet in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 19th March 2007, 03:44
  4. How do you do this in Assembly
    By ice in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th May 2005, 06:47
  5. Assembly?
    By Dwayne in forum General
    Replies: 11
    Last Post: - 4th January 2004, 18:18

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