Data Sheet
CoreDeviceInterfaceSpecifications ModernRoboticsInc
Page8of10
ModernRoboticsCoreDeviceInterface
to1023.Ifthevoltagevalueissetoutsideoftheallowablerange,itwillbemodifiedtoforcethevaluein
range.
Theoutputfrequencyfieldwillsetthechanneloutputfrequencyintherange1–5,000Hzbasedonthe
valuebeingintherange1to5,000if
theModeis waveform(1,2or3).IfMode0isselected,thisfield
willbeover‐writtento0.
4.5 PWMOutput
ThePWMOutputports,P0andP1outputaPulseWidthModulated(PWM)signal.Eachportis
individuallycontrollableandtheoutputtime(ontime)and theperiodcanbothbeset.
TheP0/P1outputontim efieldsetsthepulsewidthforthechanneloutputinunits
of1µS.Settinga
valuewhichisgreaterthantheP0/P1outputperiodwillresultintheoutputbeingpermanentlysetto
logic1.
TheP0/P1outputperiodfieldsetsthepulserepetitionperiodforthechanneloutputinunitsof1µS.If
thePWMfeatureisbeingusedtogenerate
pulsesforastandardR/Cstyleservo,theoutputperiod
shouldbesetto20,000andtheoutputontimeshouldbesetwithintherange750–2,250formost
servos.Settingapulsewidthoutsidetheselimitsmaydamagetheservo.
4.6 LEDSet
TheCDIhastwobuiltinLEDs,oneredandonebluethatcanbecontrolledbytheuser.TheLEDsetfield,
0x17inthememorymapisabytecanbesetasfollowstoturnontheLEDs.
0x01–turnontheredLED
0x02–turn
ontheblueLED