TiagoSilva
Member
Thank TiagoSilva...
I also have the voltage divider approach in my mind. For my case i will scale down my 20Vdc to 5Vdc so that I can input to PIC A/D I/P Pin. (Can I apply a voltage greater than 5Vdc to the A/D i/p pin) or do you know what is the maximum voltage that I can apply to the A/D i/p pin?
Previously I use a few comparator to generate an 10Vdc PWM signal and it works well with IR2101 gate driver but now my problem is that the pwm output on CCP1 pin is only 5Vdc and when I connect this signal to IR2101 gate driver it won't work well. (did I miss out any thing before connecting to the gate driver. for e.g. buffer?)
Btw... is it possible to invert the signal on CCP1 meaning that instead of 1001 1001.. is it possible to invert it to 0110 0110? Heez...
Regarding the max voltage of the ADC i think i have read somewhere that the max positive voltage is = to the max positive voltage reference to the ADC, if no voltage reference is specified then the max is the chip positive voltage, i guess that yours is the last option... only the more crafty chips have voltage reference inputs
In any case try tho ready on the datasheet of your Pic everything regarding the internal ADC, try to find something about the voltage references and if it is internal then you won't have to connect anything else, but you'l be limited... usually it might sufice
Regarding the PWM output, you can *try* (on the simulator first might be a good idea ) to use an bipolar transistor to drive the gate on the IR2101 !
Have fun !
P.S. : Regarding the logic you can try to find some ASM mnemonic to do the One's Complement or if using C/C++ use the "~" bitwise operator !
Last edited: