Difference: NeoPixel (4 vs. 5)

Revision 52021-04-12 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="MecrispCubeF405"

NeoPixel

Line: 23 to 23
 


Changed:
<
<
lsls r3, r3, #1 ittee c movwc r5, #T1H movtc r5, #T1L movwnc r5, #T0H movtnc r5, #T0L
>
>
lsls r3, r3, #1 // set carry bit ittee cs movwcs r5, #T1H movtcs r5, #T1L movwcc r5, #T0H movtcc r5, #T0L
 
Added:
>
>
6 cycles.
  HTML Color 0xRRGGBB

F405


Changed:
<
<
Cyclus = 1 / 168 MHz = 6 ns
>
>
Cycle = 1 / 168 MHz = 6 ns 0.4 us / 6 ns = 66.7 -> max. 66 cycles
 Timer Resolution = 1 / 42 MHz = 23.8 ns

#define T0H 15 // 0.4 us, 0.4 us / 23.8 ns = 16.8

Line: 43 to 46
 #define T0L 34 // 0.85 us, 35.7 #define T1L 17 // 0.45 us, 18.9 #define TRES 420 // 10 us, 420
Added:
>
>
max. deviation = timer_resolution + 2 cycles = 23.8 ns + 2 * 6 ns = 35.8 ns
 

WB55


Changed:
<
<
Cyclus = 1 / 32 MHz = 31 ns Timer Resolution = 1 / 32 MHz = 31 ns
>
>
Cycle = 1 / 32 MHz = 31.25 ns 0.4 us / 31.25 ns = 12.8 -> max 12 cycles

Timer Resolution = 1 / 32 MHz = 31.25 ns

#define T0H 11 // 0.4 us, 0.4 us / 31.25 ns = 12.8 #define T1H 24 // 0.8 us, 25.6 #define T0L 26 // 0.85 us, 27.4 #define T1L 13 // 0.45 us, 14.5 #define TRES 323 // 10 us, 323

max. deviation = timer_resolution + 2 cycles = 31.25 ns ns + 2 * 31.25 ns = 93.75 ns

 
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback