piclist 2003\02\12\203802a >
Thread: Non linear PWM of LEDs
www.piclist.com/techref/microchip/ios.htm?key=pwm
flavicon
face BY : Ned Konz email (remove spam text)

part 1 754 bytes content-type:text/plain; (decoded 7bit)

On Wednesday 12 February 2003 06:22 pm, you wrote:

> Does anyone have any idea what I'm doing wrong? I'll leave the C++
> code attached, with my modifications. As per Olin, I've chopped the
> translation specific code piece.
>
> I'm sorry to keep bugging the list about this, but all this high
> math is above my head. In my mind, the graphing solution I figured
> out clicks, but I don't know if this will give me the correct
> values.

Attached is the Ruby source plus the resultant table.

--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics




part 2 395 bytes content-type:text/plain;
(decoded 7bit)

max_in = 255
max_out = 65535
m = max_out ** (1.0 / (max_in - 1))

print(" retlw  0 ;  0\n")
ov = 1.0
(1 .. max_in).each do | iv |
 printf(" retlw %3d ;%3d\n", (ov+0.5).floor, iv)
 ov *= m
end

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics




part 3 4416 bytes content-type:text/plain;
(decoded 7bit)

retlw  0 ;  0
retlw   1 ;  1
retlw   1 ;  2
retlw   1 ;  3
retlw   1 ;  4
retlw   1 ;  5
retlw   1 ;  6
retlw   1 ;  7
retlw   1 ;  8
retlw   1 ;  9
retlw   1 ; 10
retlw   2 ; 11
retlw   2 ; 12
retlw   2 ; 13
retlw   2 ; 14
retlw   2 ; 15
retlw   2 ; 16
retlw   2 ; 17
retlw   2 ; 18
retlw   2 ; 19
retlw   2 ; 20
retlw   2 ; 21
retlw   3 ; 22
retlw   3 ; 23
retlw   3 ; 24
retlw   3 ; 25
retlw   3 ; 26
retlw   3 ; 27
retlw   3 ; 28
retlw   3 ; 29
retlw   4 ; 30
retlw   4 ; 31
retlw   4 ; 32
retlw   4 ; 33
retlw   4 ; 34
retlw   4 ; 35
retlw   5 ; 36
retlw   5 ; 37
retlw   5 ; 38
retlw   5 ; 39
retlw   5 ; 40
retlw   6 ; 41
retlw   6 ; 42
retlw   6 ; 43
retlw   7 ; 44
retlw   7 ; 45
retlw   7 ; 46
retlw   7 ; 47
retlw   8 ; 48
retlw   8 ; 49
retlw   8 ; 50
retlw   9 ; 51
retlw   9 ; 52
retlw  10 ; 53
retlw  10 ; 54
retlw  11 ; 55
retlw  11 ; 56
retlw  12 ; 57
retlw  12 ; 58
retlw  13 ; 59
retlw  13 ; 60
retlw  14 ; 61
retlw  14 ; 62
retlw  15 ; 63
retlw  16 ; 64
retlw  16 ; 65
retlw  17 ; 66
retlw  18 ; 67
retlw  19 ; 68
retlw  19 ; 69
retlw  20 ; 70
retlw  21 ; 71
retlw  22 ; 72
retlw  23 ; 73
retlw  24 ; 74
retlw  25 ; 75
retlw  26 ; 76
retlw  28 ; 77
retlw  29 ; 78
retlw  30 ; 79
retlw  31 ; 80
retlw  33 ; 81
retlw  34 ; 82
retlw  36 ; 83
retlw  37 ; 84
retlw  39 ; 85
retlw  41 ; 86
retlw  43 ; 87
retlw  45 ; 88
retlw  47 ; 89
retlw  49 ; 90
retlw  51 ; 91
retlw  53 ; 92
retlw  56 ; 93
retlw  58 ; 94
retlw  61 ; 95
retlw  63 ; 96
retlw  66 ; 97
retlw  69 ; 98
retlw  72 ; 99
retlw  75 ;100
retlw  79 ;101
retlw  82 ;102
retlw  86 ;103
retlw  90 ;104
retlw  94 ;105
retlw  98 ;106
retlw 102 ;107
retlw 107 ;108
retlw 112 ;109
retlw 117 ;110
retlw 122 ;111
retlw 127 ;112
retlw 133 ;113
retlw 139 ;114
retlw 145 ;115
retlw 152 ;116
retlw 158 ;117
retlw 165 ;118
retlw 173 ;119
retlw 181 ;120
retlw 189 ;121
retlw 197 ;122
retlw 206 ;123
retlw 215 ;124
retlw 225 ;125
retlw 235 ;126
retlw 245 ;127
retlw 256 ;128
retlw 267 ;129
retlw 279 ;130
retlw 292 ;131
retlw 305 ;132
retlw 318 ;133
retlw 333 ;134
retlw 348 ;135
retlw 363 ;136
retlw 379 ;137
retlw 396 ;138
retlw 414 ;139
retlw 432 ;140
retlw 452 ;141
retlw 472 ;142
retlw 493 ;143
retlw 515 ;144
retlw 538 ;145
retlw 562 ;146
retlw 587 ;147
retlw 613 ;148
retlw 640 ;149
retlw 669 ;150
retlw 699 ;151
retlw 730 ;152
retlw 763 ;153
retlw 797 ;154
retlw 832 ;155
retlw 869 ;156
retlw 908 ;157
retlw 949 ;158
retlw 991 ;159
retlw 1035 ;160
retlw 1081 ;161
retlw 1130 ;162
retlw 1180 ;163
retlw 1233 ;164
retlw 1288 ;165
retlw 1345 ;166
retlw 1405 ;167
retlw 1468 ;168
retlw 1534 ;169
retlw 1602 ;170
retlw 1673 ;171
retlw 1748 ;172
retlw 1826 ;173
retlw 1908 ;174
retlw 1993 ;175
retlw 2082 ;176
retlw 2175 ;177
retlw 2272 ;178
retlw 2373 ;179
retlw 2479 ;180
retlw 2590 ;181
retlw 2705 ;182
retlw 2826 ;183
retlw 2952 ;184
retlw 3084 ;185
retlw 3222 ;186
retlw 3365 ;187
retlw 3515 ;188
retlw 3672 ;189
retlw 3836 ;190
retlw 4008 ;191
retlw 4186 ;192
retlw 4373 ;193
retlw 4568 ;194
retlw 4772 ;195
retlw 4985 ;196
retlw 5208 ;197
retlw 5440 ;198
retlw 5683 ;199
retlw 5937 ;200
retlw 6202 ;201
retlw 6478 ;202
retlw 6767 ;203
retlw 7069 ;204
retlw 7385 ;205
retlw 7715 ;206
retlw 8059 ;207
retlw 8419 ;208
retlw 8794 ;209
retlw 9187 ;210
retlw 9597 ;211
retlw 10025 ;212
retlw 10472 ;213
retlw 10940 ;214
retlw 11428 ;215
retlw 11938 ;216
retlw 12471 ;217
retlw 13027 ;218
retlw 13609 ;219
retlw 14216 ;220
retlw 14851 ;221
retlw 15514 ;222
retlw 16206 ;223
retlw 16929 ;224
retlw 17685 ;225
retlw 18474 ;226
retlw 19298 ;227
retlw 20160 ;228
retlw 21060 ;229
retlw 21999 ;230
retlw 22981 ;231
retlw 24007 ;232
retlw 25078 ;233
retlw 26198 ;234
retlw 27367 ;235
retlw 28588 ;236
retlw 29864 ;237
retlw 31197 ;238
retlw 32589 ;239
retlw 34044 ;240
retlw 35563 ;241
retlw 37150 ;242
retlw 38808 ;243
retlw 40540 ;244
retlw 42350 ;245
retlw 44240 ;246
retlw 46214 ;247
retlw 48277 ;248
retlw 50431 ;249
retlw 52682 ;250
retlw 55033 ;251
retlw 57489 ;252
retlw 60055 ;253
retlw 62735 ;254
retlw 65535 ;255

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics




part 4 2 bytes
-
<200302121736.37366@ned.bike-nomad.com>

In reply to: <3E4B015B.12D775ED@3mtmp.com>
See also: www.piclist.com/techref/microchip/ios.htm?key=pwm
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Non linear PWM of LEDs

month overview.

new search...