Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PWM/Analog pin vs Digtal pin

Status
Not open for further replies.

chinlin0924

Newbie level 4
Newbie level 4
Joined
Apr 22, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,311
Hi all,

I am new to electronics. I purchased a arduno board, but I am a bit confused on the term definition.
I saw some pins are for PWM, or digital pins , SDA/SCL pins.
1. Does that mean PWM pins also works for PWM, can it be used for digital output?
2. Can digital pin be used for output PWM?
3. Can I use other pins for SDA/SCL pins?

If above questions are all yes, then why not define them as GPIO pin?
Sometimes, the terms seems give me confuse, and let us think it only works for that purpose.

Thanks
 
Last edited:

in microcontrollers some of the pins have other functionalities than standard I/O pin , such as PWM , Serial communication , analog inputs , JTAG etc.
their function is selectable in software , there are some control registers that determine weather these pins to be an I/O or not.
for example you can use a PWM pin as PWM output or a standard I/O and do this thorough softwware , but you cant use a simple I/O for other purpose like SCL etc.
 

in microcontrollers some of the pins have other functionalities than standard I/O pin , such as PWM , Serial communication , analog inputs , JTAG etc.
their function is selectable in software , there are some control registers that determine weather these pins to be an I/O or not.
for example you can use a PWM pin as PWM output or a standard I/O and do this thorough softwware , but you cant use a simple I/O for other purpose like SCL etc.
Can't I implement SCL with normal IO and timer to generate the signal wave form like SCL needs?
 

you can do it , but you must write program to do that and it means using CPU , the main advantage of peripherals such as pwm generator is that they don't use cpu to do their job, you should just set their control registers
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top