📄 pwm3.mdl
字号:
Model {
Name "PWM3"
Version 5.1
SaveDefaultBlockParams on
SampleTimeColors on
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
SortedOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks on
CloseFcn "rtwprivate ssgencode ModelCloseRequest MC_AD"
Created "Wed Jun 13 23:02:07 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "fwornle"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Sep 23 18:01:59 2006"
ModelVersionFormat "1.%<AutoIncrement:390>"
ConfigurationManager "none"
SimParamPage "RTW"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm_mc9S12"
ExtModeMexArgs "2, 0, 115200"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 10000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "external"
Solver "ode1"
SolverMode "SingleTasking"
StartTime "0.0"
StopTime "9999999"
MaxOrder 5
MaxStep "0.02"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.01"
RelTol "1e-3"
AbsTol "1e-6"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt off
BooleanDataType off
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "mc9S12.tlc"
RTWTemplateMakefile "mc9S12.tmf"
RTWMakeCommand "make_mc9S12"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
RTWOptions " -aCore_time=\"RTI\" -aCycTI_pin=5 -aDebug2SCI0=0 -"
"aEnforceIntegerDowncast=1 -aExtMode=1 -aExtModeTesting=0 -aFoldNonRolledExpr="
"1 -aForceParamTrailComments=0 -aGenerateComments=1 -aGenerateReport=0 -aHasFu"
"zzyBlocks=0 -aHasRFComms=0 -aHasTimers=\"0x00000000\" -aIgnoreCustomStorageCl"
"asses=0 -aIncDataTypeInIds=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0"
" -aInlineParameters=0 -aInlinedPrmAccess=\"Literals\" -aLCDdispErrors=1 -aLoc"
"alBlockOutputs=1 -aLogVarNameModifier=\"rt_\" -aMATLAB_comms_port=\"SCI1\" -a"
"MaxRTWIdLen=31 -aMem_Map=\"Flash_flat\" -aNumFreePortSCI0=0 -aNumFreePortSCI1"
"=0 -aPrefixModelToSubsysFcnNames=1 -aPurelyIntegerCode=0 -aRFCommsServerChann"
"els=1 -aRTWVerbose=1 -aRollThreshold=5 -aRun_Immediately=0 -aSCI0=\"idle\" -a"
"SCI1=\"MCOM\" -aSerTI_pin=6 -aShowEliminatedStatements=1 -aStaticLibraryRebui"
"ld=0 -aTarget_board=\"Dragon-12\" -aTimerBasePeriod=0 -aTimerPrescaler=0 -aTi"
"merPrescalerMask=0 -aTiming_signals=0 -abaudrate=115200 -aport=\"COM2\" -atim"
"eport=\"PORTB\""
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
ShowAdditionalParam off
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ShowAdditionalParam off
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Inport
Port "1"
PortDimensions "-1"
ShowAdditionalParam off
LatchInput off
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "PWM3"
Location [380, 81, 989, 698]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [80, 40, 110, 70]
}
Block {
BlockType Constant
Name "Constant1"
Position [80, 435, 110, 465]
}
Block {
BlockType Constant
Name "Constant2"
Position [80, 140, 110, 170]
}
Block {
BlockType Constant
Name "Constant3"
Position [80, 240, 110, 270]
}
Block {
BlockType Constant
Name "Constant4"
Position [80, 535, 110, 565]
}
Block {
BlockType Gain
Name "Gain"
Position [250, 40, 280, 70]
Gain "40"
}
Block {
BlockType Gain
Name "Gain1"
Position [250, 435, 280, 465]
Gain "10"
}
Block {
BlockType Gain
Name "Gain2"
Position [250, 140, 280, 170]
Gain "10"
}
Block {
BlockType Gain
Name "Gain3"
Position [250, 240, 280, 270]
Gain "30"
}
Block {
BlockType Gain
Name "Gain4"
Position [250, 535, 280, 565]
Gain "50"
}
Block {
BlockType SubSystem
Name "Pulse width modulation"
Ports [1]
Position [395, 15, 525, 95]
AncestorBlock "mc9S12tool/Pulse width modulation"
FontSize 12
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_PWM_In_blkref')"
MaskPromptString "Sample time|Resolution |PWM period (8"
"-bit : up to 0.699 s, 16-bit : up to 179 s)|Pulse pin (PTP) |Sign port "
" |Sign pin |Saturation input level [simulated voltag"
"e]|Signal monitoring"
MaskStyleString "edit,popup(8 bit|16 bit),edit,popup(0 (8-bit)|"
"1 (8-bit / 16-bit)|2 (8-bit)|3 (8-bit / 16-bit)|4 (8-bit)|5 (8-bit / 16-"
"bit)|6 (8-bit)|7 (8-bit / 16-bit)),popup(PORTA|PORTB|PTH|PTJ|PTM|PTP|PTT|PT"
"S),popup(0|1|2|3|4|5|6|7),edit,checkbox"
MaskTunableValueString "on,on,on,off,off,off,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,"
MaskVariables "sampletime=@1;resolution=@2;PWMper=@3;pulse_pin"
"=@4;sign_port=@5;sign_pin=@6;Vmax=@7;sig_mon=@8;"
MaskInitialization "[pulsepinstr, signportstr, signpinstr, periodst"
"r, clkABstr, resstr] = mbc_pwmoutput(sampletime, resolution, PWMper, pulse_pi"
"n, sign_port, sign_pin, Vmax, sig_mon);"
MaskDisplay "fprintf('PWM-%s, %s-bit\\nPulse pin: PTP.%s\\nS"
"ign pin: %s.%s\\nPeriod: %s (s)\\nSaturation: %d', clkABstr, resstr, pulsepin"
"str, signportstr, signpinstr, periodstr, Vmax)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01 |16 bit|1|1 (8-bit / 16-bit)|PTH|1|100|of"
"f"
System {
Name "Pulse width modulation"
Location [440, 403, 875, 514]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [50, 40, 70, 60]
FontSize 12
}
Block {
BlockType "S-Function"
Name "MC"
Tag "MC9S12target_pwm"
Ports [1]
Position [140, 30, 255, 70]
List {
ListType RTWdata
pulsepinStr "1"
pulsepinMask "2"
signportStr "PTH"
signportddrStr "DDRH"
signpinMask "2"
signpinStr "1"
resolutionStr "16"
CLKselectStr "0"
useSCLStr "1"
PCKStr "7"
PWMSCLStr "184"
PERIODStr "510"
}
FontSize 12
FunctionName "pwm_sfcn_9S12"
Parameters "sampletime, PWMper, pulse_pin, sign_port, s"
"ign_pin, Vmax, sig_mon"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MC"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Pulse width modulation1"
Ports [1]
Position [395, 410, 525, 490]
AncestorBlock "mc9S12tool/Pulse width modulation"
List {
ListType RTWdata
pulsepinStr "3"
pulsepinMask "8"
signportStr "PTH"
signportddrStr "DDRH"
signpinMask "4"
signpinStr "2"
resolutionStr "16"
CLKselectStr "1"
useSCLStr "1"
PCKStr "1"
PWMSCLStr "184"
PERIODStr "65217"
}
FontSize 12
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_PWM_In_blkref')"
MaskPromptString "Sample time|Resolution |PWM period (8"
"-bit : up to 0.699 s, 16-bit : up to 179 s)|Pulse pin (PTP) |Sign port "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -