Skip to content

Commit b9c675a

Browse files
committed
MPAE-17267: Readme and DFP updates
1 parent 7938ddc commit b9c675a

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ If the CLBSWIN0 bit is set, the SPI signals will be routed to the ```SPI_to_WS28
5757

5858
<br><img src="images/mcc_clb_spi_to_ws2812.png" width="800">
5959

60-
To power-up an LED, a "1 code" signal, a Pulse-Width Modulation (PWM) signal with 0.7μs±150ns high and 0.6μs±150ns low periods must be transmitted. To power-off, a "0 code" signal, a PWM signal with 0.35μs±150ns high and 0.8μs±150ns low periods, will be transmitted. For this example, the "1 code" signal is described by six high signal cycles, `1` logic, and two low signal cycles, `0` logic, and the "0 code" is composed of three high signal cycles and seven low signal cycles. Each transmitted byte describes ten cycles. The D Latch with Enable is used as the fourth input of the LUT to select the needed sequence chart for the WS2812, if the bit from the SDO signal is `0` or `1`.
60+
To power-up an LED, a "1 code" signal, a Pulse-Width Modulation (PWM) signal with 0.7μs±150ns high and 0.6μs±150ns low periods must be transmitted. To power-off, a "0 code" signal, a PWM signal with 0.35μs±150ns high and 0.8μs±150ns low periods, will be transmitted. For this example, the "1 code" signal is described by six high signal cycles, `1` logic, and two low signal cycles, `0` logic, and the "0 code" is composed of three high signal cycles and seven low signal cycles. Each transmitted byte describes ten cycles. The D Latch with Enable is used as the fourth input of the LUT to select the needed sequence chart for the WS2812, if the bit from the SDO signal is `0` or `1`. For a better understanding of the above information, the diagram below presents the sequence charts and timings.
61+
62+
<br><img src="images/sequence-timings.png" width="800">
6163

6264
This 3-bit counter with reset is used to count up to 8 values that describe each of the GRB pattern colors. Inverted SPI clock pulses reset the counter. The counter is enabled when all the outputs are high by an 3-AND gate, so the counter is kept in reset state until a next pulse is coming. In this configuration, the counter will work only when an enable pulse is met and stops and resets when the last value, 7, appears. The output values represent the input of the next LUT necessary for setting the 0 and 1 codes. The figure below presents all the gates and pins needed to simulate the hardware counter.
6365

images/sequence-timings.png

57.8 KB
Loading

pic16f13145_spi_to_ws2812_mcc.X/nbproject/configurations.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<targetDevice>PIC16F13145</targetDevice>
9393
<targetHeader></targetHeader>
9494
<targetPluginBoard></targetPluginBoard>
95-
<platformTool>nEdbgTool</platformTool>
95+
<platformTool>noID</platformTool>
9696
<languageToolchain>XC8</languageToolchain>
9797
<languageToolchainVersion>2.45</languageToolchainVersion>
9898
<platform>3</platform>
@@ -335,8 +335,6 @@
335335
<property key="memories.programmemory" value="true"/>
336336
<property key="memories.programmemory.ranges" value="0-1fff"/>
337337
<property key="poweroptions.powerenable" value="true"/>
338-
<property key="programmerToGoFilePath"
339-
value="C:/Users/m66790/OneDrive - Microchip Technology Inc/Documents/pic16f131/spi-test-1.X/debug/default/spi-test-1_ptg"/>
340338
<property key="programoptions.eraseb4program" value="true"/>
341339
<property key="programoptions.preservedataflash" value="false"/>
342340
<property key="programoptions.preservedataflash.ranges"
@@ -425,13 +423,13 @@
425423
<targetDevice>PIC16F13145</targetDevice>
426424
<targetHeader></targetHeader>
427425
<targetPluginBoard></targetPluginBoard>
428-
<platformTool>pk4hybrid</platformTool>
426+
<platformTool>noID</platformTool>
429427
<languageToolchain>XC8</languageToolchain>
430428
<languageToolchainVersion>2.45</languageToolchainVersion>
431429
<platform>3</platform>
432430
</toolsSet>
433431
<packs>
434-
<pack name="PIC16F1xxxx_DFP" vendor="Microchip" version="1.22.376"/>
432+
<pack name="PIC16F1xxxx_DFP" vendor="Microchip" version="1.23.382"/>
435433
</packs>
436434
<ScriptingSettings>
437435
</ScriptingSettings>
@@ -666,8 +664,6 @@
666664
<property key="memories.programmemory" value="true"/>
667665
<property key="memories.programmemory.ranges" value="0-1fff"/>
668666
<property key="poweroptions.powerenable" value="true"/>
669-
<property key="programmerToGoFilePath"
670-
value="C:/Users/m66790/OneDrive - Microchip Technology Inc/Documents/pic16f131/spi-test-1.X/debug/default/spi-test-1_ptg"/>
671667
<property key="programmerToGoImageName" value="spi-test-1_ptg"/>
672668
<property key="programoptions.donoteraseauxmem" value="false"/>
673669
<property key="programoptions.eraseb4program" value="true"/>

0 commit comments

Comments
 (0)