1 Reply Latest reply on Mar 25, 2020 10:19 PM by YuCh_3947976

    Digital output

    YuCh_3947976

      Hi,I'm using CY8CKIT-044 now,and I set the jumper to 5V.

      I want to control the output voltage,but it just can set 0 or 1(High or Low),can I adjust the value in region what I want?

      maybe use the component,like PWM ...

      and next question is that can I use control register to control external voltage?

      like the below pic,input voltage from Pin_A and output to Pin_B

      if you have any sample project about these questions,please provide to me,Appreciate!

      • Add to Phrasebook
        • No word lists for English -> Traditional Chinese...
        • Create a new word list...
      • Copy?
      • Add to Phrasebook
        • No word lists for English -> Traditional Chinese...
        • Create a new word list...
      • Copy
      • Add to Phrasebook
        • No word lists for English -> Traditional Chinese...
        • Create a new word list...
      • Copy
      • Add to Phrasebook
        • No word lists for English -> Traditional Chinese...
        • Create a new word list...
      • Copy
        • 1. Re: Digital output
          VasanthR_91

          Hi,

           

          i think first requirement for you is to have an analog output on the pin. There are multiple ways to achieve the same in PSoC. One method is to use an IDAC and a resistor. You may have to buffer the output using an opamp before taking it outside. But if you don't want to use analog components, you can always use a PWM component and adjust the duty cycle in such a way that the resultant voltage is what you want. You have to use RC Low Pass filter stage in between.

           

          Regarding the second question, yes you can control digital output pins using control registers.

           

          Best Regards,

          Vasanth