WS2811 and WS2812 One-Wire Communication Assembly Help


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

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

    Richard, thanks for looking into this.

    For 64 led's I think the timing for each frame is 3,84ms. Does it work with 2ms?

    Anyway, you did a great job on this. Really fast!

    Well, the AN implied, or at least I wanted to be that way, this solution would be fast enough for the MCU to do other tasks.

    But as you tested, yes, seems there is not enough time.

    I want to use this strips for a 60 led's (1m bar) for medical purposes and the timing is very strict.

    Thanks,
    Ioannis

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


    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

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


    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

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,641


    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

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    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

  6. #6


    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

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,641


    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

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