Quote Originally Posted by boscox View Post
i am a beginner in this world of programming i want to switch the transistor in dc dc converter. for my knowledge the transistor can be switched by square wave, i need the sample code here on how to switch this transistor. anyone to help me please
A square wave is simply turning it on and off. It goes from low to high and repeats.

For example:

Code:
DO
      PORTA.0 = 1 'TURN ON PORTA.0
      PAUSE 50 'PAUSE 50mSEC
      PORTA.0 = 0 'TURN OFF PORTA.0
      PAUSE 50
LOOP
This endless loop will turn the pin on and off with a 50msec delay. You could also use the TOGGLE command.

Hope this helps!