Hello to all who are reading my post.
As a beginner it would be I need some basic examples that show the manner PWM ports work connected to a relay or some thing similar. Good Day.
Avi Muzaich
PWM to a relay?
Why?
PWM is normally intended to be used to create curve shapes or varying voltages on a signal.
Did you plan to vary the drive current to the relay coil to reduce the energy consumed in the "hold" state?
Keil provide examples: included with the installation on your PC, also on this website - under 'Support'
No doubt the chip manufacturer also provides examples, application notes, etc on their website.
www.lmgtfy.com
But, as Per says, why would you want PWM to a relay?!
Specifically I should regard that the pwm port must control a solenoid valve.
But still - why PWM?
For its higher speed into other communication protocols.
Eh??
You can make it easy for people to help you, or you can carry on making it hard for people to help you...
Are you going to use PWM to "communicate" using a relay?
Do you know what a relay is?
How are you going to get the relay to manage "high speed" operation? It's an electromechanical device - the datasheet tells how fast it can toggle and how many toggles it is expected to survive. Any PWM will not magically make the relay faster, unles you use extra hgigh voltages just for drawing the relays and then reduces the voltage when holding the relay drawn.