Rev 3338 | Rev 3342 | ||
---|---|---|---|
Line 177... | Line 177... | ||
177 | time_overflow_count=0; |
177 | time_overflow_count=0; |
178 | set_timer1(0); |
178 | set_timer1(0); |
179 | overflow_count=0; |
179 | overflow_count=0; |
180 | break; |
180 | break; |
181 | case TRESHOLD_setup: |
181 | case TRESHOLD_setup: |
182 | if(treshold > 0x05 ) treshold +=5; |
182 | if(treshold > 0x05 ) treshold -=5; |
183 | setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V |
183 | setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V |
184 | break; |
184 | break; |
185 | } |
185 | } |
186 | } |
186 | } |
187 | } |
187 | } |