TheP1modulehastonofcapabilityinasupersmallfootprint,withanalog,digitaland
communicationinterfaces.
Note:P1pinnameswillbepreservedastheyarenamedintheUSIdatasheet,howeverforthescope
ofthisdatasheetwewillalsorefertothemastheirPhotonandcodeequivalents,i.e.D7insteadof
MICRO_JTAG_TMSandA2insteadofMICRO_GPIO_13.Thiswillhelptosimplifydescriptions,while
providingaquickreferenceforcodethatcanbewrittenfortheP1suchas intvalue=
analogRead(A2);
Peripheral
Type Qty
Input(I)/
Output(O)
FT[1]/
3V3[2]
Digital 24 I/O FT/3V3
Analog(ADC) 13 I 3V3
Analog(DAC) 2 O 3V3
SPI 2 I/O 3V3
I2S 1 I/O 3V3
I2C 1 I/O FT
CAN 1 I/O 3V3[4]
USB 1 I/O 3V3
PWM 12[3] O 3V3
Notes:
[1]FT=5.0Vtolerantpins.AllpinsexceptA3andDACare5Vtolerant(whennotinanalogmode).If
usedasa5Vinputthepull-up/pull-downresistormustbedisabled.
[2]3V3=3.3Vmaxpins.
[3]PWMisavailableonD0,D1,D2,D3,A4,A5,WKP,RX,TX,P1S0,P1S1,P1S6withacaveat:PWMtimer
peripheralisduplicatedontwopins(A5/D2)and(A4/D3)for10totalindependentPWMoutputs.For
example:PWMmaybeusedonA5whileD2isusedasaGPIO,orD2asaPWMwhileA5isusedasan
analoginput.HoweverA5andD2cannotbeusedasindependentlycontrolledPWMoutputsatthe
sametime.P1S6requiresSystemFeatureWi-FiPowersaveClocktobedisabled.SeeSystemFeatures
inFirmwareReference.
[4]Technicallythesepinsare5.0Vtolerant,butsinceyouwouldn'toperatethemwitha5.0V
transceiverit'spropertoclassifythemas3.3V.
WhenusingtheP1module,itisveryimportanttorememberthatyourdevicemusthaveanRGBLED
toshowtheusertheconnectivitystatus.AlsorequiredisaSETUPandRESETbuttontoentervarious
DeviceModes.BydefaulttheRGBLEDoutputsareconfiguredforaCommonAnodetypeofLED.
ThesecomponentsshouldbewiredaccordingtotheP1ReferenceDesign-UserI/O.RGBpinsmay
beaccessedincodeas:RGBR,RGBGandRGBB.
PERIPHERALSANDGPIO
RGBLED,SETUPANDRESETBUTTON