# Tone on P1 and core do not match

**URL:** <https://community.particle.io/t/tone-on-p1-and-core-do-not-match/13199>\
**Category:** Firmware\
**Created:** [July 13, 2015, 5:10am UTC](https://community.particle.io/t/tone-on-p1-and-core-do-not-match/13199 "2015-07-13T05:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wesner0019](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wesner0019](https://community.particle.io/u/wesner0019)\
**Post date:** [July 13, 2015, 5:10am UTC](https://community.particle.io/t/tone-on-p1-and-core-do-not-match/13199/1 "2015-07-13T05:10:53Z")

</div>

It looks like the P1 has PWM on the below pins:  
“From the datasheet online  
PWM is available on D0, D1, D2, D3, A4, A5, WKP, RX, TX with a caveat:  
PWM timer peripheral is duplicated on two pins (A5/D2) and (A4/D3) for 7  
total independent PWM outputs. For example: PWM may be used on A5 while  
D2 is used as a GPIO, or D2 as a PWM while A5 is used as an analog  
input. However A5 and D2 cannot be used as independently controlled PWM  
outputs at the same time.”

But the below pins are defined for tone  
"tone()  
Generates a square wave of the specified frequency and duration (and  
50% duty cycle) on a timer channel pin (D0, D1, A0, A1, A4, A5, A6, A7,  
RX, TX). "

With this current setup tone will only work the P1 with PWM pins (D0, D1, A4, A5, WKP,  
RX, TX)?

If the firmware was updated then pins D2, D3 for the P1 could also have the Tone function?

---

<div class="post-metadata">

**Author:** ![mohit](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mohit/32/1971_2.png) [@mohit](https://community.particle.io/u/mohit)\
**Post date:** [July 13, 2015, 11:33pm UTC](https://community.particle.io/t/tone-on-p1-and-core-do-not-match/13199/2 "2015-07-13T23:33:05Z")

</div>

Thanks for pointing that out! Do you think you can create a github issue for it and explain your observations there? It will get the attention of our firmware team quickly!

> **[particle-iot/firmware](https://github.com/particle-iot/firmware/issues)**
>
> firmware - Device OS (Firmware) for Particle Devices

Regards,

Mohit

---

<div class="post-metadata">

**Author:** ![wesner0019](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wesner0019](https://community.particle.io/u/wesner0019)\
**Post date:** [July 14, 2015, 12:59am UTC](https://community.particle.io/t/tone-on-p1-and-core-do-not-match/13199/3 "2015-07-14T00:59:03Z")

</div>

thanks submitted on issues

> <https://github.com/particle-iot/firmware/issues/483>
