回复【30楼】shihantu:
---------------------------------
“LED current is controlled by feedback resistor (R1 in Fig. 1). The feedback reference is 1.23V. The LED current is 1.23V/R1. In order to have accurate LED current, precision resistors are preferred (1% recommended). The formula for R1 selection is shown below. R1 = 1.23V/ILED 。”
这是数据手册中的一段话,说的就是这个。还有上面我写错了,不是R2,是R1。LED+给LED供电,LED跟R1构成一个回路,而R1的端电压就是LED-的电压,所以VLED-\R1得出的就是流过LED的电流。