Pic 16F1509 pour piloter WS2811 et WS2812

Forum de support pour les locuteurs de la langue française qui souhaitent écrire dans leur langue maternelle.

Moderator: Benj

Post Reply
Philbert Pascal
Posts: 80
Joined: Fri Jul 20, 2012 8:55 am
Location: Chambly (France)
Been thanked: 4 times

Pic 16F1509 pour piloter WS2811 et WS2812

Post by Philbert Pascal »

Hello Benj,
I found a pic perfectly suited for WS2811 and WS2812 led the chips. This is the Pic 16F1509. Note AN1606 explains its use.
The problem is that I do not find this processor in Flowcode list. Could you help me?
It is difficult to add this type of component?
Thank you for your help.

cordially

pascal

Bonjour Benj,
j'ai trouvé un pic parfaitement adapté pour piloté les puces WS2811 et WS2812. C'est le Pic 16F1509. La note AN1606 explique son utilisation. Le probléme est que je ne trouve pas ce processeur dans la liste Flowcode. Pourriez vous l'ajouter?
est ce difficile d'ajouter ce type de composant?
Merci de votre aide.

Cordialement

Pascal

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Kenrix2 »

You can create your own 16F1509.fcdx file if you like.

Here are the steps to create it:
1. Upgrade to Flowcode V6 Pro (you will need the Pro version if you want the PWM component, the Chip Pack version does not include that component).
2.Download the XML editor that dazz suggested. Here is the link: http://www.matrixmultimedia.com/mmforum ... pad#p51089
3. With the XML editor, open 16F1829.fcdx.
4.Select View/Expand All.
5.Edit the fields that are different for the 16F1509. For example: change device name to 16F1509.
6. When you get to the interrupts, delete the the folders for timer4 and timer6 by right clicking on the folder and select cut.
7.When you are done editing select File/Save As... , change the name to 16F1509.fcdx and select Save as type: to All files(*.*).
8.Start Flowcode V6 Pro and you will now see the 16F1509 in the list.

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Kenrix2 »

Thank you for pointing out that application note Pascal. I was very curious about the synchronized SPI and PWM in AN1606 so I made a test program using that information to experiment with. I did not have that microcontroller to test with so I just used one I had. I have attached the program but, a logic analyzer or oscilloscope is needed to view the waveforms. If you don't have one, the synchronization does work just like the application note describes. The 16F1509 with the CLC looks like a great micro to create complex waveforms while allowing the microcontroller time to do other tasks. The NCO looks like a nice feature too. I will be ordering a few of those to play with.
Attachments
SynchronizedSPIandPWM.fcfx
(5.63 KiB) Downloaded 390 times

Philbert Pascal
Posts: 80
Joined: Fri Jul 20, 2012 8:55 am
Location: Chambly (France)
Been thanked: 4 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Philbert Pascal »

Bonjour Kenrix2,
je possède la V6 Pro, j'ai suivis ta procédure mais j'ai 2 problèmes:&
1/ je n'arrive pas à créer un nouveau menu. J'ai bien ajouter le dossier avec Xml-Notepad, mais il n'apparait pas dans Flowcode.
2/ j'ai modifier le composant 16F1989 pour le transformer en 16F1509, mais j'ai un message d'erreur qui est celui-ci:
Voir fichier joint

Peux-tu m'aider

Merci d'avance

Cordialement
Pascal
Attachments
Capture d’écran 2014-03-18 à 19.09.45.png
(32.32 KiB) Downloaded 4487 times

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Kenrix2 »

Sorry you are having problems. The translation from english to french might be the problem. Pictures might help. Try this, open the 16F1829.fcdx file with the XML editor.
1. change the name to 16F1509
2. Select File Save As... and type in 16F1509.fcdx and change Save as type to All files(*.*)
Start Flowcode and the 16F1509 should be in the list. If it is you can reopen the file to make changes to the other fields.
Attachments
1.jpg
1.jpg (7.12 KiB) Viewed 8300 times
2.jpg
2.jpg (11.96 KiB) Viewed 8300 times

Philbert Pascal
Posts: 80
Joined: Fri Jul 20, 2012 8:55 am
Location: Chambly (France)
Been thanked: 4 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Philbert Pascal »

Bonjour Kenrix2,
je suivi la procédure et c'est toujours pareil:
Voici les captures d'écran.
Je ne comprend pas.

Cordialement
Pascal
Attachments
Capture d’écran 2014-03-19 à 19.32.43.png
(133.32 KiB) Downloaded 4414 times
Capture d’écran 2014-03-19 à 19.32.56.png
(96.19 KiB) Downloaded 4414 times
Capture d’écran 2014-03-19 à 19.38.05.png
(254.08 KiB) Downloaded 4414 times

Philbert Pascal
Posts: 80
Joined: Fri Jul 20, 2012 8:55 am
Location: Chambly (France)
Been thanked: 4 times

Re: Pic 16F1509 pour piloter WS2811 et WS2812

Post by Philbert Pascal »

Kenrix2,

suite et fin des captures
Attachments
Capture d’écran 2014-03-18 à 22.56.48.png
(70.51 KiB) Downloaded 4413 times

Post Reply