Author Topic: Working on ws2811(DMA to GPIO)  (Read 1642 times)

0 Members and 1 Guest are viewing this topic.

Offline alizoneTopic starter

  • Newbie
  • Posts: 3
  • Country: tr
Working on ws2811(DMA to GPIO)
« on: November 16, 2017, 12:30:47 pm »
Hi everyone,

This is my first post. I hope I will more and more post because  I want to learn a lot of things about embedded.

So, I am working on addressable led which has ws2811 ic and  I want to write library about it and I am using the Hal library. I am trying now. But I didn't understand something.
I have to send data DMA to peripheral(GPIO). I know I can set this std library with below.


DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t)&GPIOA->ODR;
DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)WS2812_IO_High;
« Last Edit: November 16, 2017, 12:33:16 pm by alizone »
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: Working on ws2811(DMA to GPIO)
« Reply #1 on: November 16, 2017, 09:09:06 pm »
Memory base address is a pointer to the memory location of data you want to send. Is WS2812_IO_High an array containing pixel data?

Maybe you can get some ideas from existing projects:
http://www.martinhubacek.cz/arm/improved-stm32-ws2812b-library
https://github.com/g4lvanix/0xWS2812
http://fabioangeletti.altervista.org/blog/stm32-interface-ws2812b/?doing_wp_cron=1510866007.6318340301513671875000
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf