Plecs { Name "prueba SPI 28379D master-slave" Version "4.5" CircuitModel "ContStateSpace" StartTime "0.0" TimeSpan "1.0" Timeout "" Solver "dopri" MaxStep "1e-3" InitStep "-1" FixedStep "Ts_controller" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "2" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "3" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AlgebraicLoopWithStateMachineMsg "3" AssertionAction "1" InitializationCommands "Ts_controller = 200e-6;\nTs_controller_2 = 100e-6;" InitialState "1" SystemState "" TaskingMode "1" TaskConfigurations "" CodeGenParameterInlining "2" CodeGenFloatingPointFormat "2" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" CodeGenTarget "TI2806x" CodeGenTargetSettings "AAAAfwAAAAAlUU1hcDxRU3RyaW5nLFFNYXA8UVN0cmluZyxRU3Rya" "W5nPiA+AAAAAAEAAAAOAFQASQAyADgAMAA2AHgAAAANAAAAEgB1AHMAZQBJAG4AdABPAHMAYwAAAA" "IAMQAAABgAdQBuAGkAZgBsAGEAcwBoAEYAaQBsAGUAAABcAC8AVQBzAGUAcgBzAC8AYgBlAGEAdAA" "vAHcAbwByAGsAcwBwAGEAYwBlAF8AdgA4AC8AZABlAHYAXwAyADgAMAA2ADkALwAyADgAMAA2ADkA" "LgBjAGMAeABtAGwAAAAWAHQAYQBzAGsARgByAGUAcQBUAG8AbAAAAAIAMQAAAA4AdABhAHMAawAyA" "EgAegAAAAYAMQAwADAAAAASAHMAeQBzAEMAbABrAE0ASAB6AAAABAA5ADAAAAAUAGkAbgBzAHQAYQ" "BsAGwARABpAHIAAABKAC8AVQBzAGUAcgBzAC8AYgBlAGEAdAAvAHcAbwByAGsAcwBwAGEAYwBlAF8" "AdgA4AC8AZABlAHYAXwAyADgAMAA2ADkALwBjAGcAAAAOAGcAZQBuAE8AbgBsAHkAAAACADIAAAAc" "AGUAeAB0AE0AbwBkAGUAUwBjAGkAUABpAG4AcwAAABAAWwAyADgALAAgADIAOQBdAAAAEgBlAHgAd" "ABDAGwAawBNAEgAegAAAAQAMgAwAAAACABjAGgAaQBwAAAAAgAxAAAAFgBiAHUAaQBsAGQAQwBvAG" "4AZgBpAGcAAAACADEAAAAaAFQAQQBSAEcARQBUAF8ARABFAFYASQBDAEX/////AAAAGgBFAFgAVAB" "FAFIATgBBAEwAXwBNAE8ARABFAAAAAgAx" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" EnableStateSpaceSplitting "2" DisplayStateSpaceSplitting "1" DiscretizationMethod "2" ExternalModeSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAAcAAAAYAF" "QAcgBpAGcAZwBlAHIAVgBhAGwAdQBlAAAAAgAwAAAAGABUAHIAaQBnAGcAZQByAEQAZQBsAGEAeQA" "AAAIAMAAAABwAVAByAGkAZwBnAGUAcgBDAGgAYQBuAG4AZQBsAAAABAAtADEAAAAWAFMAZQBuAHMA" "aQB0AGkAdgBpAHQAeQAAAAIAMAAAABYAUgBlAGYAcgBlAHMAaABSAGEAdABlAAAABAAyADAAAAAUA" "E4AdQBtAFMAYQBtAHAAbABlAHMAAAAIADgAMQA5ADIAAAAUAEQAZQBjAGkAbQBhAHQAaQBvAG4AAA" "ACADE=" AlgebraicLoopMethod "1" AlgebraicLoopTolerance "1e-6" ScriptsDialogGeometry "" ScriptsDialogSplitterPos "0" Schematic { Location [124, 45; 1118, 471] ZoomFactor 1.74609 SliderPosition [0, -1] ShowBrowser off BrowserWidth 100 Component { Type Subsystem Name "RESET" Show on Position [520, 75] Direction up Flipped off Frame [-30, -15; 30, 15] LabelPosition [0, 0] TreatAsAtomicUnit on SampleTime "-1" TaskingMode "1" CodeGenEnable on CodeGenSampleTime "100e-6" CodeGenDiscretizationMethod "2" CodeGenTarget "TI2837xS"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MAaQBtAGEAdABpAG8AbgAAAAIAMQ==" MaskDisplayLang "2" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Schematic { Location [0, 52; 1366, 708] ZoomFactor 5.81134 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 } } Component { Type Subsystem Name "28379D master1" Show on Position [230, 85] Direction up Flipped off Frame [-115, -50; 115, 50] LabelPosition [0, 53] LabelAlign up TreatAsAtomicUnit on SampleTime "-1" TaskingMode "2" TaskConfigurations "AAAACQAAAAACAAAACAAAAAAEAAAAFABTAGEAbQBwAGwAZQBUAGkA" "bQBlAAAACgAAAAACADAAAAAIAE4AYQBtAGUAAAAKAAAAABIAQgBhAHMAZQAgAHQAYQBzAGsAAAAOA" "EQAZQBmAGEAdQBsAHQAAAABAAEAAAAIAEMAbwByAGUAAAACAAAAAAAAAAAIAAAAAAQAAAAUAFMAYQ" "BtAHAAbABlAFQAaQBtAGUAAAAKAAAAAAwAMgAwADAAZQAtADYAAAAIAE4AYQBtAGUAAAAKAAAAAAw" "ATQBhAHMAdABlAHIAAAAOAEQAZQBmAGEAdQBsAHQAAAABAAAAAAAIAEMAbwByAGUAAAACAAAAAAA=" CodeGenEnable on CodeGenSampleTime "100e-6" CodeGenDiscretizationMethod "2" CodeGenTarget "TI2837xS" CodeGenTargetSettings "AAAAfwAAAAAlUU1hcDxRU3RyaW5nLFFNYXA8UVN0cmluZyxRU" "3RyaW5nPiA+AAAAAAEAAAAQAFQASQAyADgAMwA3AHgAUwAAAA4AAAASAHUAcwBlAEkAbgB0AE8Acw" "BjAAAAAgAxAAAAGAB1AG4AaQBmAGwAYQBzAGgARgBpAGwAZQAAAAAAAAAWAHQAYQBzAGsARgByAGU" "AcQBUAG8AbAAAAAIAMQAAABIAcwB5AHMAQwBsAGsATQBIAHoAAAAGADEAOQAwAAAAFABpAG4AcwB0" "AGEAbABsAEQAaQByAAAAAAAAAA4AZwBlAG4ATwBuAGwAeQAAAAIAMgAAABwAZQB4AHQATQBvAGQAZ" "QBTAGMAaQBQAGkAbgBzAAAAEABbADQAMwAsACAANAAyAF0AAAAiAGUAeAB0AE0AbwBkAGUAQgB1AG" "YAZgBlAHIAUwBpAHoAZQAAAAgAMQAwADAAMAAAABIAZQB4AHQAQwBsAGsATQBIAHoAAAAEADMAMAA" "AAAgAYwBoAGkAcAAAAAIAMQAAABYAYgB1AGkAbABkAEMAbwBuAGYAaQBnAAAAAgAyAAAACgBiAG8A" "YQByAGQAAAACADIAAAAaAFQAQQBSAEcARQBUAF8ARABFAFYASQBDAEUAAAAMADAAfAB8ADAAfAAwA" "AAAGgBFAFgAVABFAFIATgBBAEwAXwBNAE8ARABFAAAAAgAx" ExternalModeSettings "AAAAfwAAAAAWUU1hcDxRU3RyaW5nLFFTdHJpbmc+AAAAAAcAAA" "AYAFQAcgBpAGcAZwBlAHIAVgBhAGwAdQBlAAAAAgAwAAAAGABUAHIAaQBnAGcAZQByAEQAZQBsAGE" "AeQAAAAIAMAAAABwAVAByAGkAZwBnAGUAcgBDAGgAYQBuAG4AZQBsAAAABAAtADEAAAAWAFMAZQBu" "AHMAaQB0AGkAdgBpAHQAeQAAAAIAMAAAABYAUgBlAGYAcgBlAHMAaABSAGEAdABlAAAABAAyADAAA" "AAUAE4AdQBtAFMAYQBtAHAAbABlAHMAAAAIADgAMQA5ADIAAAAUAEQAZQBjAGkAbQBhAHQAaQBvAG" "4AAAACADE=" MaskDisplayLang "2" MaskIconFrame on MaskIconOpaque off MaskIconRotates on Terminal { Type Output Position [-5, -54] Direction up Index "1" } Terminal { Type Input Position [-115, -35] Direction left Index "1" } Terminal { Type Output Position [119, -35] Direction right Index "2" } Terminal { Type Input Position [-115, 35] Direction left Index "2" } Terminal { Type Input Position [-115, 45] Direction left Index "3" } Terminal { Type Input Position [115, 5] Direction right Index "4" } Terminal { Type Output Position [-119, 5] Direction left Index "3" } Terminal { Type Input Position [115, 35] Direction right Index "5" } Terminal { Type Input Position [115, 45] Direction right Index "6" } Schematic { Location [1104, 47; 2073, 698] ZoomFactor 0.995515 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Reference SrcComponent "TIC2000_Lib/Digital Out" Name "LED" Show on Position [730, 90] Direction up Flipped off Frame [-25, -20; 25, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "gpio" Value "34" Show on } Parameter { Variable "TargetPortIndices" Value "1" Show off } Terminal { Type Input Position [-25, 0] Direction left } } Component { Type Delay Name "Delay" Show off Position [640, 100] Direction right Flipped off Parameter { Variable "N" Value "1" Show off } Parameter { Variable "X0" Value "0" Show off } Parameter { Variable "Ts" Value "floor(0.5/Ts_controller)*Ts_controller" Show off } } Component { Type LogicalOperator Name "Logical\nOperator" Show off Position [640, 75] Direction down Flipped on Parameter { Variable "Operator" Value "6" Show off } Parameter { Variable "Inputs" Value "2" Show off } } Component { Type Display Name "Display5" Show off Position [365, 230] Direction up Flipped off Frame [-41, -41; 41, 41] LabelPosition [0, 44] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type Constant Name "Constant" Show off Position [95, 195] Direction right Flipped off Frame [-35, -10; 35, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "[1,2]" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Display Name "Display6" Show off Position [465, 75] Direction up Flipped off Frame [-31, -11; 31, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "0" Show off } } Component { Type Display Name "Display7" Show off Position [465, 125] Direction up Flipped off Frame [-31, -11; 31, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "0" Show off } } Component { Type Memory Name "Memory4" Show off Position [380, 125] Direction right Flipped off Parameter { Variable "X0" Value "0" Show off } } Component { Type Sum Name "Sum3" Show off Position [340, 125] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type Memory Name "Memory6" Show off Position [375, 75] Direction right Flipped off Parameter { Variable "X0" Value "0" Show off } } Component { Type Sum Name "Sum5" Show off Position [335, 75] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type Reference SrcComponent "TIC2000_Lib/SPI Master" Name "SPI Master" Show on Position [210, 175] Direction up Flipped off Frame [-25, -30; 25, 30] LabelPosition [0, 33] LabelAlign up Parameter { Variable "spi" Value "2" Show off } Parameter { Variable "clk" Value "5e6" Show off } Parameter { Variable "charlen" Value "7" Show off } Parameter { Variable "mode" Value "1" Show off } Parameter { Variable "pinset" Value "[63,64,65]" Show on } Parameter { Variable "csgpio" Value "66" Show on } Parameter { Variable "dim" Value "2" Show off } Parameter { Variable "offlineSimulation" Value "2" Show off } Parameter { Variable "TargetPortIndices" Value "2 3 4 5" Show off } Terminal { Type Output Position [29, 20] Direction right } Terminal { Type Input Position [-25, 20] Direction left } Terminal { Type Output Position [29, -20] Direction right } Terminal { Type Output Position [29, -10] Direction right } } Component { Type TaskFrame Name "Task Frame" Show off Position [280, 175] Direction up Flipped off Frame [-247, -132; 247, 132] Parameter { Variable "Task" Value "Master" Show off } } Component { Type Display Name "Display1" Show off Position [475, 365] Direction up Flipped off Frame [-46, -11; 46, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "0" Show off } } Component { Type Display Name "Display2" Show off Position [475, 430] Direction up Flipped off Frame [-46, -11; 46, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type Display Name "Display4" Show off Position [380, 520] Direction up Flipped off Frame [-46, -41; 46, 41] LabelPosition [0, 44] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "4" Show off } } Component { Type Constant Name "Constant1" Show off Position [85, 500] Direction right Flipped off Frame [-40, -10; 40, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "[21,22]" Show off } Parameter { Variable "DataType" Value "10" Show off } } Component { Type Reference SrcComponent "TIC2000_Lib/SPI Slave" Name "SPI Slave" Show on Position [205, 480] Direction up Flipped off Frame [-25, -30; 25, 30] LabelPosition [0, 33] LabelAlign up Parameter { Variable "spi" Value "1" Show off } Parameter { Variable "charlen" Value "7" Show off } Parameter { Variable "mode" Value "1" Show off } Parameter { Variable "dim" Value "2" Show off } Parameter { Variable "pinset" Value "[58,59,60,61]" Show on } Parameter { Variable "offlineSimulation" Value "2" Show off } Parameter { Variable "TargetPortIndices" Value "6 7 8 9" Show off } Terminal { Type Output Position [29, 20] Direction right } Terminal { Type Input Position [-25, 20] Direction left } Terminal { Type Output Position [29, -20] Direction right } Terminal { Type Output Position [29, -10] Direction right } } Component { Type Memory Name "Memory5" Show off Position [350, 430] Direction right Flipped off Parameter { Variable "X0" Value "0" Show off } } Component { Type Sum Name "Sum4" Show off Position [310, 430] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type Memory Name "Memory7" Show off Position [350, 365] Direction right Flipped off Parameter { Variable "X0" Value "0" Show off } } Component { Type Sum Name "Sum6" Show off Position [310, 365] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type Memory Name "Memory3" Show off Position [680, 195] Direction right Flipped off Parameter { Variable "X0" Value "0" Show off } } Component { Type Sum Name "Sum2" Show off Position [640, 195] Direction up Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } Parameter { Variable "DataType" Value "11" Show off } } Component { Type Display Name "Display3" Show off Position [760, 195] Direction up Flipped off Frame [-31, -11; 31, 11] LabelPosition [0, 14] LabelAlign up Parameter { Variable "Notation" Value "1" Show off } Parameter { Variable "Precision" Value "0" Show off } } Component { Type Constant Name "Constant2" Show off Position [595, 195] Direction right Flipped off Frame [-15, -10; 15, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "1" Show off } Parameter { Variable "DataType" Value "10" Show off } } Connection { Type Signal SrcComponent "Logical\nOperator" SrcTerminal 1 Points [610, 75] DstComponent "Delay" DstTerminal 1 } Connection { Type Signal SrcComponent "Delay" SrcTerminal 2 Points [670, 100; 670, 90] Branch { DstComponent "Logical\nOperator" DstTerminal 2 } Branch { DstComponent "LED" DstTerminal 1 } } Connection { Type Signal SrcComponent "Sum3" SrcTerminal 1 DstComponent "Memory4" DstTerminal 1 } Connection { Type Signal SrcComponent "SPI Master" SrcTerminal 4 Points [275, 165; 275, 125] DstComponent "Sum3" DstTerminal 2 } Connection { Type Signal SrcComponent "Memory4" SrcTerminal 2 Points [405, 125] Branch { DstComponent "Display7" DstTerminal 1 } Branch { Points [405, 150] DstComponent "Sum3" DstTerminal 3 } } Connection { Type Signal SrcComponent "Sum5" SrcTerminal 1 DstComponent "Memory6" DstTerminal 1 } Connection { Type Signal SrcComponent "SPI Master" SrcTerminal 3 Points [255, 155; 255, 75] DstComponent "Sum5" DstTerminal 2 } Connection { Type Signal SrcComponent "Memory6" SrcTerminal 2 Points [400, 75] Branch { Points [400, 100] DstComponent "Sum5" DstTerminal 3 } Branch { DstComponent "Display6" DstTerminal 1 } } Connection { Type Signal SrcComponent "Constant" SrcTerminal 1 DstComponent "SPI Master" DstTerminal 2 } Connection { Type Signal SrcComponent "Sum4" SrcTerminal 1 DstComponent "Memory5" DstTerminal 1 } Connection { Type Signal SrcComponent "SPI Slave" SrcTerminal 4 Points [275, 470; 275, 430] DstComponent "Sum4" DstTerminal 2 } Connection { Type Signal SrcComponent "Memory5" SrcTerminal 2 Points [385, 430] Branch { DstComponent "Display2" DstTerminal 1 } Branch { Points [385, 455] DstComponent "Sum4" DstTerminal 3 } } Connection { Type Signal SrcComponent "Sum6" SrcTerminal 1 DstComponent "Memory7" DstTerminal 1 } Connection { Type Signal SrcComponent "SPI Slave" SrcTerminal 3 Points [255, 460; 255, 365] DstComponent "Sum6" DstTerminal 2 } Connection { Type Signal SrcComponent "Memory7" SrcTerminal 2 Points [385, 365] Branch { DstComponent "Display1" DstTerminal 1 } Branch { Points [385, 390] DstComponent "Sum6" DstTerminal 3 } } Connection { Type Signal SrcComponent "Constant1" SrcTerminal 1 DstComponent "SPI Slave" DstTerminal 2 } Connection { Type Signal SrcComponent "SPI Slave" SrcTerminal 1 Points [285, 500; 285, 520] DstComponent "Display4" DstTerminal 1 } Connection { Type Signal SrcComponent "Sum2" SrcTerminal 1 DstComponent "Memory3" DstTerminal 1 } Connection { Type Signal SrcComponent "Memory3" SrcTerminal 2 Points [705, 195] Branch { DstComponent "Display3" DstTerminal 1 } Branch { Points [705, 225; 640, 225] DstComponent "Sum2" DstTerminal 3 } } Connection { Type Signal SrcComponent "Constant2" SrcTerminal 1 DstComponent "Sum2" DstTerminal 2 } Connection { Type Signal SrcComponent "SPI Master" SrcTerminal 1 Points [285, 195; 285, 230] DstComponent "Display5" DstTerminal 1 } } } Connection { Type Signal SrcComponent "28379D master1" SrcTerminal 7 Points [100, 90] DstComponent "28379D master1" DstTerminal 2 } Connection { Type Signal SrcComponent "28379D master1" SrcTerminal 3 Points [360, 50] DstComponent "28379D master1" DstTerminal 6 } Annotation { Name "LaunchpadXL" Position [50, 15] } Annotation { Name "dasddasads" Position [160, 545] } } } DemoSignature "raUTSpXiFIFYqMjp43L6jSnz6B7wbQy7hG89ylf3VjU="