??? 07/24/08 09:47 Read: times |
#157006 - Again question! Responding to: ???'s previous message |
Ok I catch how would be work that!
Look i use timer2 for generating 7-segment displej refresh, about 1ms! I thinking of using that interval for length of charging and discharging signals! For example when charging bigger capacitance i need bigger length of signal who activating the transistor Q5. The length of that signal is important, beacose measure max. capacitance. In example with signal about 100ms i can measure max. capacitance about 100uF. Code for 7-segment display is: After end measure set show bit variable! void Timer2_int(void) interrupt 5 using 2 { TF2=0; if(show==1) { k++; P0=0xFF; mask<<=1; (variable for ON segment) if(k>3) { k=0; mask=1; } P0=~ascii_table[displey[k]]; P2=~mask; } } Second how is your sugestion how would store results od measure? Wold be good to use array variable! Beacose some capacitance have results from using( for example)charging from Q6 to Q8, with diferent lengths of signal on P3.2! That is very good when that happened, then i use that for averaging results - precious results! |
Topic | Author | Date |
Measure time of signal! | 01/01/70 00:00 | |
Starting | 01/01/70 00:00 | |
To Steve | 01/01/70 00:00 | |
wrong window comparator | 01/01/70 00:00 | |
Again question! | 01/01/70 00:00 | |
re:again question | 01/01/70 00:00 | |
Why not test middle range first? | 01/01/70 00:00 | |
You are right.![]() | 01/01/70 00:00 | |
Wrong window comparator | 01/01/70 00:00 | |
in every mode interrupt is on transition to 0x000 | 01/01/70 00:00 |