Data Sheet

CoreDeviceInterfaceSpecifications ModernRoboticsInc
Page8of10
ModernRoboticsCoreDeviceInterface
to1023.Ifthevoltagevalueissetoutsideoftheallowablerange,itwillbemodifiedtoforcethevaluein
range.
Theoutputfrequencyfieldwillsetthechanneloutputfrequencyintherange15,000Hzbasedonthe
valuebeingintherange1to5,000if
theModeis waveform(1,2or3).IfMode0isselected,thisfield
willbeoverwrittento0.
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,000andtheoutputontimeshouldbesetwithintherange7502,250formost
servos.Settingapulsewidthoutsidetheselimitsmaydamagetheservo.
4.6 LEDSet
TheCDIhastwobuiltinLEDs,oneredandonebluethatcanbecontrolledbytheuser.TheLEDsetfield,
0x17inthememorymapisabytecanbesetasfollowstoturnontheLEDs.
0x01turnontheredLED
0x02turn
ontheblueLED
