diff --git a/PIC_Simulator/Form1.Designer.cs b/PIC_Simulator/Form1.Designer.cs
index f3949dc..222761c 100644
--- a/PIC_Simulator/Form1.Designer.cs
+++ b/PIC_Simulator/Form1.Designer.cs
@@ -28,223 +28,225 @@
///
private void InitializeComponent()
{
- this.label1 = new System.Windows.Forms.Label();
- this.box_CodeView = new System.Windows.Forms.RichTextBox();
- this.lbl_path = new System.Windows.Forms.Label();
- this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
- this.cmd_Start = new System.Windows.Forms.Button();
- this.cmd_next = new System.Windows.Forms.Button();
- this.cmd_reset = new System.Windows.Forms.Button();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.cmdOpenFile = new System.Windows.Forms.ToolStripMenuItem();
- this.programmÖffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.beendenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.hilfeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.cmdOpenDoc = new System.Windows.Forms.ToolStripMenuItem();
- this.label4 = new System.Windows.Forms.Label();
- this.lvMemory = new System.Windows.Forms.ListView();
- this.Index = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader14 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader15 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.columnHeader16 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.cmd_Stop = new System.Windows.Forms.Button();
- this.insertTime = new System.Windows.Forms.TextBox();
- this.lvSpecial = new System.Windows.Forms.ListView();
- this.c1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.c2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.lbStack = new System.Windows.Forms.ListBox();
- this.btn_RA_Tris_7 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_6 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_5 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_4 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_3 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_2 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_1 = new System.Windows.Forms.Button();
- this.btn_RA_1 = new System.Windows.Forms.Button();
- this.btn_RA_2 = new System.Windows.Forms.Button();
- this.btn_RA_3 = new System.Windows.Forms.Button();
- this.btn_RA_4 = new System.Windows.Forms.Button();
- this.btn_RA_5 = new System.Windows.Forms.Button();
- this.btn_RA_6 = new System.Windows.Forms.Button();
- this.btn_RA_7 = new System.Windows.Forms.Button();
- this.label2 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.btn_RB_1 = new System.Windows.Forms.Button();
- this.btn_RB_2 = new System.Windows.Forms.Button();
- this.btn_RB_3 = new System.Windows.Forms.Button();
- this.btn_RB_4 = new System.Windows.Forms.Button();
- this.btn_RB_5 = new System.Windows.Forms.Button();
- this.btn_RB_6 = new System.Windows.Forms.Button();
- this.btn_RB_7 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_1 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_2 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_3 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_4 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_5 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_6 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_7 = new System.Windows.Forms.Button();
- this.btn_RB_0 = new System.Windows.Forms.Button();
- this.btn_RB_Tris_0 = new System.Windows.Forms.Button();
- this.btn_RA_0 = new System.Windows.Forms.Button();
- this.btn_RA_Tris_0 = new System.Windows.Forms.Button();
- this.edRS232Log = new System.Windows.Forms.TextBox();
- this.cbxComPorts = new System.Windows.Forms.ComboBox();
- this.btnRSConnect = new System.Windows.Forms.Button();
- this.btnRSDisconnect = new System.Windows.Forms.Button();
- this.label6 = new System.Windows.Forms.Label();
- this.edClockAddr = new System.Windows.Forms.TextBox();
- this.edClockBit = new System.Windows.Forms.TextBox();
- this.btnClockStart = new System.Windows.Forms.Button();
- this.edCLockFreq = new System.Windows.Forms.TextBox();
- this.WakeUpButton = new System.Windows.Forms.Button();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.BackColor = System.Drawing.SystemColors.Control;
- this.label1.Location = new System.Drawing.Point(29, 78);
- this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(0, 13);
- this.label1.TabIndex = 1;
- //
- // box_CodeView
- //
- this.box_CodeView.Location = new System.Drawing.Point(8, 77);
- this.box_CodeView.Margin = new System.Windows.Forms.Padding(2);
- this.box_CodeView.Name = "box_CodeView";
- this.box_CodeView.ReadOnly = true;
- this.box_CodeView.Size = new System.Drawing.Size(626, 600);
- this.box_CodeView.TabIndex = 3;
- this.box_CodeView.Text = "";
- this.box_CodeView.WordWrap = false;
- this.box_CodeView.DoubleClick += new System.EventHandler(this.box_CodeView_DoubleClick);
- //
- // lbl_path
- //
- this.lbl_path.AutoSize = true;
- this.lbl_path.Location = new System.Drawing.Point(87, 469);
- this.lbl_path.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.lbl_path.Name = "lbl_path";
- this.lbl_path.Size = new System.Drawing.Size(0, 13);
- this.lbl_path.TabIndex = 4;
- //
- // openFileDialog1
- //
- this.openFileDialog1.FileName = "openFileDialog1";
- //
- // cmd_Start
- //
- this.cmd_Start.Location = new System.Drawing.Point(11, 29);
- this.cmd_Start.Margin = new System.Windows.Forms.Padding(2);
- this.cmd_Start.Name = "cmd_Start";
- this.cmd_Start.Size = new System.Drawing.Size(50, 23);
- this.cmd_Start.TabIndex = 5;
- this.cmd_Start.Text = "Start";
- this.cmd_Start.UseVisualStyleBackColor = true;
- this.cmd_Start.Click += new System.EventHandler(this.cmd_Start_Click);
- //
- // cmd_next
- //
- this.cmd_next.Location = new System.Drawing.Point(126, 31);
- this.cmd_next.Margin = new System.Windows.Forms.Padding(2);
- this.cmd_next.Name = "cmd_next";
- this.cmd_next.Size = new System.Drawing.Size(50, 21);
- this.cmd_next.TabIndex = 6;
- this.cmd_next.Text = "Schritt";
- this.cmd_next.UseVisualStyleBackColor = true;
- this.cmd_next.Click += new System.EventHandler(this.cmd_next_Click);
- //
- // cmd_reset
- //
- this.cmd_reset.Location = new System.Drawing.Point(190, 31);
- this.cmd_reset.Margin = new System.Windows.Forms.Padding(2);
- this.cmd_reset.Name = "cmd_reset";
- this.cmd_reset.Size = new System.Drawing.Size(50, 21);
- this.cmd_reset.TabIndex = 7;
- this.cmd_reset.Text = "Reset";
- this.cmd_reset.UseVisualStyleBackColor = true;
- this.cmd_reset.Click += new System.EventHandler(this.cmd_reset_Click);
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.label1 = new System.Windows.Forms.Label();
+ this.box_CodeView = new System.Windows.Forms.RichTextBox();
+ this.lbl_path = new System.Windows.Forms.Label();
+ this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
+ this.cmd_Start = new System.Windows.Forms.Button();
+ this.cmd_next = new System.Windows.Forms.Button();
+ this.cmd_reset = new System.Windows.Forms.Button();
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+ this.cmdOpenFile = new System.Windows.Forms.ToolStripMenuItem();
+ this.programmÖffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.beendenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.hilfeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.cmdOpenDoc = new System.Windows.Forms.ToolStripMenuItem();
+ this.label4 = new System.Windows.Forms.Label();
+ this.lvMemory = new System.Windows.Forms.ListView();
+ this.Index = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader14 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader15 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.columnHeader16 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.cmd_Stop = new System.Windows.Forms.Button();
+ this.insertTime = new System.Windows.Forms.TextBox();
+ this.lvSpecial = new System.Windows.Forms.ListView();
+ this.c1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.c2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.lbStack = new System.Windows.Forms.ListBox();
+ this.btn_RA_Tris_7 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_6 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_5 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_4 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_3 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_2 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_1 = new System.Windows.Forms.Button();
+ this.btn_RA_1 = new System.Windows.Forms.Button();
+ this.btn_RA_2 = new System.Windows.Forms.Button();
+ this.btn_RA_3 = new System.Windows.Forms.Button();
+ this.btn_RA_4 = new System.Windows.Forms.Button();
+ this.btn_RA_5 = new System.Windows.Forms.Button();
+ this.btn_RA_6 = new System.Windows.Forms.Button();
+ this.btn_RA_7 = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.btn_RB_1 = new System.Windows.Forms.Button();
+ this.btn_RB_2 = new System.Windows.Forms.Button();
+ this.btn_RB_3 = new System.Windows.Forms.Button();
+ this.btn_RB_4 = new System.Windows.Forms.Button();
+ this.btn_RB_5 = new System.Windows.Forms.Button();
+ this.btn_RB_6 = new System.Windows.Forms.Button();
+ this.btn_RB_7 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_1 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_2 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_3 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_4 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_5 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_6 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_7 = new System.Windows.Forms.Button();
+ this.btn_RB_0 = new System.Windows.Forms.Button();
+ this.btn_RB_Tris_0 = new System.Windows.Forms.Button();
+ this.btn_RA_0 = new System.Windows.Forms.Button();
+ this.btn_RA_Tris_0 = new System.Windows.Forms.Button();
+ this.edRS232Log = new System.Windows.Forms.TextBox();
+ this.cbxComPorts = new System.Windows.Forms.ComboBox();
+ this.btnRSConnect = new System.Windows.Forms.Button();
+ this.btnRSDisconnect = new System.Windows.Forms.Button();
+ this.label6 = new System.Windows.Forms.Label();
+ this.edClockAddr = new System.Windows.Forms.TextBox();
+ this.edClockBit = new System.Windows.Forms.TextBox();
+ this.btnClockStart = new System.Windows.Forms.Button();
+ this.edCLockFreq = new System.Windows.Forms.TextBox();
+ this.WakeUpButton = new System.Windows.Forms.Button();
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.menuStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.SystemColors.Control;
+ this.label1.Location = new System.Drawing.Point(29, 78);
+ this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(0, 13);
+ this.label1.TabIndex = 1;
+ //
+ // box_CodeView
+ //
+ this.box_CodeView.Location = new System.Drawing.Point(8, 77);
+ this.box_CodeView.Margin = new System.Windows.Forms.Padding(2);
+ this.box_CodeView.Name = "box_CodeView";
+ this.box_CodeView.ReadOnly = true;
+ this.box_CodeView.Size = new System.Drawing.Size(626, 600);
+ this.box_CodeView.TabIndex = 3;
+ this.box_CodeView.Text = "";
+ this.box_CodeView.WordWrap = false;
+ this.box_CodeView.DoubleClick += new System.EventHandler(this.box_CodeView_DoubleClick);
+ //
+ // lbl_path
+ //
+ this.lbl_path.AutoSize = true;
+ this.lbl_path.Location = new System.Drawing.Point(87, 469);
+ this.lbl_path.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lbl_path.Name = "lbl_path";
+ this.lbl_path.Size = new System.Drawing.Size(0, 13);
+ this.lbl_path.TabIndex = 4;
+ //
+ // openFileDialog1
+ //
+ this.openFileDialog1.FileName = "openFileDialog1";
+ //
+ // cmd_Start
+ //
+ this.cmd_Start.Location = new System.Drawing.Point(11, 29);
+ this.cmd_Start.Margin = new System.Windows.Forms.Padding(2);
+ this.cmd_Start.Name = "cmd_Start";
+ this.cmd_Start.Size = new System.Drawing.Size(50, 23);
+ this.cmd_Start.TabIndex = 5;
+ this.cmd_Start.Text = "Start";
+ this.cmd_Start.UseVisualStyleBackColor = true;
+ this.cmd_Start.Click += new System.EventHandler(this.cmd_Start_Click);
+ //
+ // cmd_next
+ //
+ this.cmd_next.Location = new System.Drawing.Point(126, 31);
+ this.cmd_next.Margin = new System.Windows.Forms.Padding(2);
+ this.cmd_next.Name = "cmd_next";
+ this.cmd_next.Size = new System.Drawing.Size(50, 21);
+ this.cmd_next.TabIndex = 6;
+ this.cmd_next.Text = "Schritt";
+ this.cmd_next.UseVisualStyleBackColor = true;
+ this.cmd_next.Click += new System.EventHandler(this.cmd_next_Click);
+ //
+ // cmd_reset
+ //
+ this.cmd_reset.Location = new System.Drawing.Point(190, 31);
+ this.cmd_reset.Margin = new System.Windows.Forms.Padding(2);
+ this.cmd_reset.Name = "cmd_reset";
+ this.cmd_reset.Size = new System.Drawing.Size(50, 21);
+ this.cmd_reset.TabIndex = 7;
+ this.cmd_reset.Text = "Reset";
+ this.cmd_reset.UseVisualStyleBackColor = true;
+ this.cmd_reset.Click += new System.EventHandler(this.cmd_reset_Click);
+ //
+ // menuStrip1
+ //
+ this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmdOpenFile,
this.hilfeToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2);
- this.menuStrip1.Size = new System.Drawing.Size(1298, 24);
- this.menuStrip1.TabIndex = 9;
- this.menuStrip1.Text = "menuStrip1";
- //
- // cmdOpenFile
- //
- this.cmdOpenFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+ this.menuStrip1.Name = "menuStrip1";
+ this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2);
+ this.menuStrip1.Size = new System.Drawing.Size(1298, 24);
+ this.menuStrip1.TabIndex = 9;
+ this.menuStrip1.Text = "menuStrip1";
+ //
+ // cmdOpenFile
+ //
+ this.cmdOpenFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.programmÖffnenToolStripMenuItem,
this.beendenToolStripMenuItem});
- this.cmdOpenFile.Name = "cmdOpenFile";
- this.cmdOpenFile.Size = new System.Drawing.Size(46, 20);
- this.cmdOpenFile.Text = "Datei";
- //
- // programmÖffnenToolStripMenuItem
- //
- this.programmÖffnenToolStripMenuItem.Name = "programmÖffnenToolStripMenuItem";
- this.programmÖffnenToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.programmÖffnenToolStripMenuItem.Text = "Programm öffnen";
- this.programmÖffnenToolStripMenuItem.Click += new System.EventHandler(this.programmÖffnenToolStripMenuItem_Click);
- //
- // beendenToolStripMenuItem
- //
- this.beendenToolStripMenuItem.Name = "beendenToolStripMenuItem";
- this.beendenToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.beendenToolStripMenuItem.Text = "Beenden";
- this.beendenToolStripMenuItem.Click += new System.EventHandler(this.beendenToolStripMenuItem_Click);
- //
- // hilfeToolStripMenuItem
- //
- this.hilfeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.cmdOpenFile.Name = "cmdOpenFile";
+ this.cmdOpenFile.Size = new System.Drawing.Size(46, 20);
+ this.cmdOpenFile.Text = "Datei";
+ //
+ // programmÖffnenToolStripMenuItem
+ //
+ this.programmÖffnenToolStripMenuItem.Name = "programmÖffnenToolStripMenuItem";
+ this.programmÖffnenToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
+ this.programmÖffnenToolStripMenuItem.Text = "Programm öffnen";
+ this.programmÖffnenToolStripMenuItem.Click += new System.EventHandler(this.programmÖffnenToolStripMenuItem_Click);
+ //
+ // beendenToolStripMenuItem
+ //
+ this.beendenToolStripMenuItem.Name = "beendenToolStripMenuItem";
+ this.beendenToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
+ this.beendenToolStripMenuItem.Text = "Beenden";
+ this.beendenToolStripMenuItem.Click += new System.EventHandler(this.beendenToolStripMenuItem_Click);
+ //
+ // hilfeToolStripMenuItem
+ //
+ this.hilfeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmdOpenDoc});
- this.hilfeToolStripMenuItem.Name = "hilfeToolStripMenuItem";
- this.hilfeToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
- this.hilfeToolStripMenuItem.Text = "Hilfe";
- //
- // cmdOpenDoc
- //
- this.cmdOpenDoc.Name = "cmdOpenDoc";
- this.cmdOpenDoc.Size = new System.Drawing.Size(195, 22);
- this.cmdOpenDoc.Text = "Dokumentation öffnen";
- this.cmdOpenDoc.Click += new System.EventHandler(this.cmdOpenDoc_Click);
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(778, 29);
- this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(95, 13);
- this.label4.TabIndex = 10;
- this.label4.Text = "Quarzfrequenz in s";
- //
- // lvMemory
- //
- this.lvMemory.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.hilfeToolStripMenuItem.Name = "hilfeToolStripMenuItem";
+ this.hilfeToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
+ this.hilfeToolStripMenuItem.Text = "Hilfe";
+ //
+ // cmdOpenDoc
+ //
+ this.cmdOpenDoc.Name = "cmdOpenDoc";
+ this.cmdOpenDoc.Size = new System.Drawing.Size(195, 22);
+ this.cmdOpenDoc.Text = "Dokumentation öffnen";
+ this.cmdOpenDoc.Click += new System.EventHandler(this.cmdOpenDoc_Click);
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(778, 29);
+ this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(95, 13);
+ this.label4.TabIndex = 10;
+ this.label4.Text = "Quarzfrequenz in s";
+ //
+ // lvMemory
+ //
+ this.lvMemory.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.Index,
this.columnHeader1,
this.columnHeader2,
@@ -262,649 +264,671 @@
this.columnHeader14,
this.columnHeader15,
this.columnHeader16});
- this.lvMemory.Location = new System.Drawing.Point(711, 78);
- this.lvMemory.Margin = new System.Windows.Forms.Padding(2);
- this.lvMemory.Name = "lvMemory";
- this.lvMemory.Size = new System.Drawing.Size(576, 354);
- this.lvMemory.TabIndex = 14;
- this.lvMemory.UseCompatibleStateImageBehavior = false;
- this.lvMemory.View = System.Windows.Forms.View.Details;
- //
- // Index
- //
- this.Index.Text = " ";
- this.Index.Width = 48;
- //
- // columnHeader1
- //
- this.columnHeader1.Text = "0";
- this.columnHeader1.Width = 32;
- //
- // columnHeader2
- //
- this.columnHeader2.Text = "1";
- this.columnHeader2.Width = 32;
- //
- // columnHeader3
- //
- this.columnHeader3.Text = "2";
- this.columnHeader3.Width = 32;
- //
- // columnHeader4
- //
- this.columnHeader4.Text = "3";
- this.columnHeader4.Width = 32;
- //
- // columnHeader5
- //
- this.columnHeader5.Text = "4";
- this.columnHeader5.Width = 32;
- //
- // columnHeader6
- //
- this.columnHeader6.Text = "5";
- this.columnHeader6.Width = 32;
- //
- // columnHeader7
- //
- this.columnHeader7.Text = "6";
- this.columnHeader7.Width = 32;
- //
- // columnHeader8
- //
- this.columnHeader8.Text = "7";
- this.columnHeader8.Width = 32;
- //
- // columnHeader9
- //
- this.columnHeader9.Text = "8";
- this.columnHeader9.Width = 32;
- //
- // columnHeader10
- //
- this.columnHeader10.Text = "9";
- this.columnHeader10.Width = 32;
- //
- // columnHeader11
- //
- this.columnHeader11.Text = "A";
- this.columnHeader11.Width = 32;
- //
- // columnHeader12
- //
- this.columnHeader12.Text = "B";
- this.columnHeader12.Width = 32;
- //
- // columnHeader13
- //
- this.columnHeader13.Text = "C";
- this.columnHeader13.Width = 32;
- //
- // columnHeader14
- //
- this.columnHeader14.Text = "D";
- this.columnHeader14.Width = 32;
- //
- // columnHeader15
- //
- this.columnHeader15.Text = "E";
- this.columnHeader15.Width = 32;
- //
- // columnHeader16
- //
- this.columnHeader16.Text = "F";
- this.columnHeader16.Width = 32;
- //
- // cmd_Stop
- //
- this.cmd_Stop.Location = new System.Drawing.Point(64, 30);
- this.cmd_Stop.Margin = new System.Windows.Forms.Padding(2);
- this.cmd_Stop.Name = "cmd_Stop";
- this.cmd_Stop.Size = new System.Drawing.Size(50, 22);
- this.cmd_Stop.TabIndex = 15;
- this.cmd_Stop.Text = "Stop";
- this.cmd_Stop.UseVisualStyleBackColor = true;
- this.cmd_Stop.Click += new System.EventHandler(this.cmd_Stop_Click);
- //
- // insertTime
- //
- this.insertTime.Location = new System.Drawing.Point(894, 31);
- this.insertTime.Margin = new System.Windows.Forms.Padding(2);
- this.insertTime.Name = "insertTime";
- this.insertTime.Size = new System.Drawing.Size(47, 20);
- this.insertTime.TabIndex = 17;
- this.insertTime.Text = "500";
- //
- // lvSpecial
- //
- this.lvSpecial.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.lvMemory.Location = new System.Drawing.Point(711, 78);
+ this.lvMemory.Margin = new System.Windows.Forms.Padding(2);
+ this.lvMemory.Name = "lvMemory";
+ this.lvMemory.Size = new System.Drawing.Size(576, 354);
+ this.lvMemory.TabIndex = 14;
+ this.lvMemory.UseCompatibleStateImageBehavior = false;
+ this.lvMemory.View = System.Windows.Forms.View.Details;
+ //
+ // Index
+ //
+ this.Index.Text = " ";
+ this.Index.Width = 48;
+ //
+ // columnHeader1
+ //
+ this.columnHeader1.Text = "0";
+ this.columnHeader1.Width = 32;
+ //
+ // columnHeader2
+ //
+ this.columnHeader2.Text = "1";
+ this.columnHeader2.Width = 32;
+ //
+ // columnHeader3
+ //
+ this.columnHeader3.Text = "2";
+ this.columnHeader3.Width = 32;
+ //
+ // columnHeader4
+ //
+ this.columnHeader4.Text = "3";
+ this.columnHeader4.Width = 32;
+ //
+ // columnHeader5
+ //
+ this.columnHeader5.Text = "4";
+ this.columnHeader5.Width = 32;
+ //
+ // columnHeader6
+ //
+ this.columnHeader6.Text = "5";
+ this.columnHeader6.Width = 32;
+ //
+ // columnHeader7
+ //
+ this.columnHeader7.Text = "6";
+ this.columnHeader7.Width = 32;
+ //
+ // columnHeader8
+ //
+ this.columnHeader8.Text = "7";
+ this.columnHeader8.Width = 32;
+ //
+ // columnHeader9
+ //
+ this.columnHeader9.Text = "8";
+ this.columnHeader9.Width = 32;
+ //
+ // columnHeader10
+ //
+ this.columnHeader10.Text = "9";
+ this.columnHeader10.Width = 32;
+ //
+ // columnHeader11
+ //
+ this.columnHeader11.Text = "A";
+ this.columnHeader11.Width = 32;
+ //
+ // columnHeader12
+ //
+ this.columnHeader12.Text = "B";
+ this.columnHeader12.Width = 32;
+ //
+ // columnHeader13
+ //
+ this.columnHeader13.Text = "C";
+ this.columnHeader13.Width = 32;
+ //
+ // columnHeader14
+ //
+ this.columnHeader14.Text = "D";
+ this.columnHeader14.Width = 32;
+ //
+ // columnHeader15
+ //
+ this.columnHeader15.Text = "E";
+ this.columnHeader15.Width = 32;
+ //
+ // columnHeader16
+ //
+ this.columnHeader16.Text = "F";
+ this.columnHeader16.Width = 32;
+ //
+ // cmd_Stop
+ //
+ this.cmd_Stop.Location = new System.Drawing.Point(64, 30);
+ this.cmd_Stop.Margin = new System.Windows.Forms.Padding(2);
+ this.cmd_Stop.Name = "cmd_Stop";
+ this.cmd_Stop.Size = new System.Drawing.Size(50, 22);
+ this.cmd_Stop.TabIndex = 15;
+ this.cmd_Stop.Text = "Stop";
+ this.cmd_Stop.UseVisualStyleBackColor = true;
+ this.cmd_Stop.Click += new System.EventHandler(this.cmd_Stop_Click);
+ //
+ // insertTime
+ //
+ this.insertTime.Location = new System.Drawing.Point(894, 31);
+ this.insertTime.Margin = new System.Windows.Forms.Padding(2);
+ this.insertTime.Name = "insertTime";
+ this.insertTime.Size = new System.Drawing.Size(47, 20);
+ this.insertTime.TabIndex = 17;
+ this.insertTime.Text = "500";
+ //
+ // lvSpecial
+ //
+ this.lvSpecial.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.c1,
this.c2});
- this.lvSpecial.Location = new System.Drawing.Point(640, 438);
- this.lvSpecial.Margin = new System.Windows.Forms.Padding(2);
- this.lvSpecial.Name = "lvSpecial";
- this.lvSpecial.Size = new System.Drawing.Size(269, 239);
- this.lvSpecial.TabIndex = 18;
- this.lvSpecial.UseCompatibleStateImageBehavior = false;
- this.lvSpecial.View = System.Windows.Forms.View.Details;
- //
- // c1
- //
- this.c1.Text = "Name";
- this.c1.Width = 128;
- //
- // c2
- //
- this.c2.Text = "Wert";
- this.c2.Width = 128;
- //
- // lbStack
- //
- this.lbStack.FormattingEnabled = true;
- this.lbStack.Location = new System.Drawing.Point(640, 78);
- this.lbStack.Name = "lbStack";
- this.lbStack.Size = new System.Drawing.Size(66, 355);
- this.lbStack.TabIndex = 19;
- //
- // btn_RA_Tris_7
- //
- this.btn_RA_Tris_7.Location = new System.Drawing.Point(913, 459);
- this.btn_RA_Tris_7.Name = "btn_RA_Tris_7";
- this.btn_RA_Tris_7.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_7.TabIndex = 20;
- this.btn_RA_Tris_7.Text = "i";
- this.btn_RA_Tris_7.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_7.Click += new System.EventHandler(this.btn_RA_Tris_7_Click);
- //
- // btn_RA_Tris_6
- //
- this.btn_RA_Tris_6.Location = new System.Drawing.Point(940, 459);
- this.btn_RA_Tris_6.Name = "btn_RA_Tris_6";
- this.btn_RA_Tris_6.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_6.TabIndex = 21;
- this.btn_RA_Tris_6.Text = "i";
- this.btn_RA_Tris_6.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_6.Click += new System.EventHandler(this.btn_RA_Tris_6_Click);
- //
- // btn_RA_Tris_5
- //
- this.btn_RA_Tris_5.Location = new System.Drawing.Point(967, 459);
- this.btn_RA_Tris_5.Name = "btn_RA_Tris_5";
- this.btn_RA_Tris_5.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_5.TabIndex = 22;
- this.btn_RA_Tris_5.Text = "i";
- this.btn_RA_Tris_5.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_5.Click += new System.EventHandler(this.btn_RA_Tris_5_Click);
- //
- // btn_RA_Tris_4
- //
- this.btn_RA_Tris_4.Location = new System.Drawing.Point(994, 459);
- this.btn_RA_Tris_4.Name = "btn_RA_Tris_4";
- this.btn_RA_Tris_4.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_4.TabIndex = 23;
- this.btn_RA_Tris_4.Text = "i";
- this.btn_RA_Tris_4.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_4.Click += new System.EventHandler(this.btn_RA_Tris_4_Click);
- //
- // btn_RA_Tris_3
- //
- this.btn_RA_Tris_3.Location = new System.Drawing.Point(1021, 459);
- this.btn_RA_Tris_3.Name = "btn_RA_Tris_3";
- this.btn_RA_Tris_3.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_3.TabIndex = 24;
- this.btn_RA_Tris_3.Text = "i";
- this.btn_RA_Tris_3.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_3.Click += new System.EventHandler(this.btn_RA_Tris_3_Click);
- //
- // btn_RA_Tris_2
- //
- this.btn_RA_Tris_2.Location = new System.Drawing.Point(1048, 459);
- this.btn_RA_Tris_2.Name = "btn_RA_Tris_2";
- this.btn_RA_Tris_2.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_2.TabIndex = 25;
- this.btn_RA_Tris_2.Text = "i";
- this.btn_RA_Tris_2.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_2.Click += new System.EventHandler(this.btn_RA_Tris_2_Click);
- //
- // btn_RA_Tris_1
- //
- this.btn_RA_Tris_1.Location = new System.Drawing.Point(1075, 459);
- this.btn_RA_Tris_1.Name = "btn_RA_Tris_1";
- this.btn_RA_Tris_1.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_1.TabIndex = 26;
- this.btn_RA_Tris_1.Text = "i";
- this.btn_RA_Tris_1.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_1.Click += new System.EventHandler(this.btn_RA_Tris_1_Click);
- //
- // btn_RA_1
- //
- this.btn_RA_1.Location = new System.Drawing.Point(1075, 488);
- this.btn_RA_1.Name = "btn_RA_1";
- this.btn_RA_1.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_1.TabIndex = 33;
- this.btn_RA_1.Text = "0";
- this.btn_RA_1.UseVisualStyleBackColor = true;
- this.btn_RA_1.Click += new System.EventHandler(this.btn_RA_1_Click);
- //
- // btn_RA_2
- //
- this.btn_RA_2.Location = new System.Drawing.Point(1048, 488);
- this.btn_RA_2.Name = "btn_RA_2";
- this.btn_RA_2.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_2.TabIndex = 32;
- this.btn_RA_2.Text = "0";
- this.btn_RA_2.UseVisualStyleBackColor = true;
- this.btn_RA_2.Click += new System.EventHandler(this.btn_RA_2_Click);
- //
- // btn_RA_3
- //
- this.btn_RA_3.Location = new System.Drawing.Point(1021, 488);
- this.btn_RA_3.Name = "btn_RA_3";
- this.btn_RA_3.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_3.TabIndex = 31;
- this.btn_RA_3.Text = "0";
- this.btn_RA_3.UseVisualStyleBackColor = true;
- this.btn_RA_3.Click += new System.EventHandler(this.btn_RA_3_Click);
- //
- // btn_RA_4
- //
- this.btn_RA_4.Location = new System.Drawing.Point(994, 488);
- this.btn_RA_4.Name = "btn_RA_4";
- this.btn_RA_4.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_4.TabIndex = 30;
- this.btn_RA_4.Text = "0";
- this.btn_RA_4.UseVisualStyleBackColor = true;
- this.btn_RA_4.Click += new System.EventHandler(this.btn_RA_4_Click);
- //
- // btn_RA_5
- //
- this.btn_RA_5.Location = new System.Drawing.Point(967, 488);
- this.btn_RA_5.Name = "btn_RA_5";
- this.btn_RA_5.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_5.TabIndex = 29;
- this.btn_RA_5.Text = "0";
- this.btn_RA_5.UseVisualStyleBackColor = true;
- this.btn_RA_5.Click += new System.EventHandler(this.btn_RA_5_Click);
- //
- // btn_RA_6
- //
- this.btn_RA_6.Location = new System.Drawing.Point(940, 488);
- this.btn_RA_6.Name = "btn_RA_6";
- this.btn_RA_6.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_6.TabIndex = 28;
- this.btn_RA_6.Text = "0";
- this.btn_RA_6.UseVisualStyleBackColor = true;
- this.btn_RA_6.Click += new System.EventHandler(this.btn_RA_6_Click);
- //
- // btn_RA_7
- //
- this.btn_RA_7.Location = new System.Drawing.Point(913, 488);
- this.btn_RA_7.Name = "btn_RA_7";
- this.btn_RA_7.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_7.TabIndex = 27;
- this.btn_RA_7.Text = "0";
- this.btn_RA_7.UseVisualStyleBackColor = true;
- this.btn_RA_7.Click += new System.EventHandler(this.btn_RA_7_Click);
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(915, 438);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(22, 13);
- this.label2.TabIndex = 34;
- this.label2.Text = "RA";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(915, 524);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(22, 13);
- this.label5.TabIndex = 49;
- this.label5.Text = "RB";
- //
- // btn_RB_1
- //
- this.btn_RB_1.Location = new System.Drawing.Point(1075, 574);
- this.btn_RB_1.Name = "btn_RB_1";
- this.btn_RB_1.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_1.TabIndex = 48;
- this.btn_RB_1.Text = "0";
- this.btn_RB_1.UseVisualStyleBackColor = true;
- this.btn_RB_1.Click += new System.EventHandler(this.btn_RB_1_Click);
- //
- // btn_RB_2
- //
- this.btn_RB_2.Location = new System.Drawing.Point(1048, 574);
- this.btn_RB_2.Name = "btn_RB_2";
- this.btn_RB_2.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_2.TabIndex = 47;
- this.btn_RB_2.Text = "0";
- this.btn_RB_2.UseVisualStyleBackColor = true;
- this.btn_RB_2.Click += new System.EventHandler(this.btn_RB_2_Click);
- //
- // btn_RB_3
- //
- this.btn_RB_3.Location = new System.Drawing.Point(1021, 574);
- this.btn_RB_3.Name = "btn_RB_3";
- this.btn_RB_3.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_3.TabIndex = 46;
- this.btn_RB_3.Text = "0";
- this.btn_RB_3.UseVisualStyleBackColor = true;
- this.btn_RB_3.Click += new System.EventHandler(this.btn_RB_3_Click);
- //
- // btn_RB_4
- //
- this.btn_RB_4.Location = new System.Drawing.Point(994, 574);
- this.btn_RB_4.Name = "btn_RB_4";
- this.btn_RB_4.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_4.TabIndex = 45;
- this.btn_RB_4.Text = "0";
- this.btn_RB_4.UseVisualStyleBackColor = true;
- this.btn_RB_4.Click += new System.EventHandler(this.btn_RB_4_Click);
- //
- // btn_RB_5
- //
- this.btn_RB_5.Location = new System.Drawing.Point(967, 574);
- this.btn_RB_5.Name = "btn_RB_5";
- this.btn_RB_5.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_5.TabIndex = 44;
- this.btn_RB_5.Text = "0";
- this.btn_RB_5.UseVisualStyleBackColor = true;
- this.btn_RB_5.Click += new System.EventHandler(this.btn_RB_5_Click);
- //
- // btn_RB_6
- //
- this.btn_RB_6.Location = new System.Drawing.Point(940, 574);
- this.btn_RB_6.Name = "btn_RB_6";
- this.btn_RB_6.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_6.TabIndex = 43;
- this.btn_RB_6.Text = "0";
- this.btn_RB_6.UseVisualStyleBackColor = true;
- this.btn_RB_6.Click += new System.EventHandler(this.btn_RB_6_Click);
- //
- // btn_RB_7
- //
- this.btn_RB_7.Location = new System.Drawing.Point(913, 574);
- this.btn_RB_7.Name = "btn_RB_7";
- this.btn_RB_7.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_7.TabIndex = 42;
- this.btn_RB_7.Text = "0";
- this.btn_RB_7.UseVisualStyleBackColor = true;
- this.btn_RB_7.Click += new System.EventHandler(this.btn_RB_7_Click);
- //
- // btn_RB_Tris_1
- //
- this.btn_RB_Tris_1.Location = new System.Drawing.Point(1075, 545);
- this.btn_RB_Tris_1.Name = "btn_RB_Tris_1";
- this.btn_RB_Tris_1.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_1.TabIndex = 41;
- this.btn_RB_Tris_1.Text = "i";
- this.btn_RB_Tris_1.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_1.Click += new System.EventHandler(this.btn_RB_Tris_1_Click);
- //
- // btn_RB_Tris_2
- //
- this.btn_RB_Tris_2.Location = new System.Drawing.Point(1048, 545);
- this.btn_RB_Tris_2.Name = "btn_RB_Tris_2";
- this.btn_RB_Tris_2.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_2.TabIndex = 40;
- this.btn_RB_Tris_2.Text = "i";
- this.btn_RB_Tris_2.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_2.Click += new System.EventHandler(this.btn_RB_Tris_2_Click);
- //
- // btn_RB_Tris_3
- //
- this.btn_RB_Tris_3.Location = new System.Drawing.Point(1021, 545);
- this.btn_RB_Tris_3.Name = "btn_RB_Tris_3";
- this.btn_RB_Tris_3.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_3.TabIndex = 39;
- this.btn_RB_Tris_3.Text = "i";
- this.btn_RB_Tris_3.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_3.Click += new System.EventHandler(this.btn_RB_Tris_3_Click);
- //
- // btn_RB_Tris_4
- //
- this.btn_RB_Tris_4.Location = new System.Drawing.Point(994, 545);
- this.btn_RB_Tris_4.Name = "btn_RB_Tris_4";
- this.btn_RB_Tris_4.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_4.TabIndex = 38;
- this.btn_RB_Tris_4.Text = "i";
- this.btn_RB_Tris_4.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_4.Click += new System.EventHandler(this.btn_RB_Tris_4_Click);
- //
- // btn_RB_Tris_5
- //
- this.btn_RB_Tris_5.Location = new System.Drawing.Point(967, 545);
- this.btn_RB_Tris_5.Name = "btn_RB_Tris_5";
- this.btn_RB_Tris_5.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_5.TabIndex = 37;
- this.btn_RB_Tris_5.Text = "i";
- this.btn_RB_Tris_5.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_5.Click += new System.EventHandler(this.btn_RB_Tris_5_Click);
- //
- // btn_RB_Tris_6
- //
- this.btn_RB_Tris_6.Location = new System.Drawing.Point(940, 545);
- this.btn_RB_Tris_6.Name = "btn_RB_Tris_6";
- this.btn_RB_Tris_6.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_6.TabIndex = 36;
- this.btn_RB_Tris_6.Text = "i";
- this.btn_RB_Tris_6.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_6.Click += new System.EventHandler(this.btn_RB_Tris_6_Click);
- //
- // btn_RB_Tris_7
- //
- this.btn_RB_Tris_7.Location = new System.Drawing.Point(913, 545);
- this.btn_RB_Tris_7.Name = "btn_RB_Tris_7";
- this.btn_RB_Tris_7.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_7.TabIndex = 35;
- this.btn_RB_Tris_7.Text = "i";
- this.btn_RB_Tris_7.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_7.Click += new System.EventHandler(this.btn_RB_Tris_7_Click);
- //
- // btn_RB_0
- //
- this.btn_RB_0.Location = new System.Drawing.Point(1102, 574);
- this.btn_RB_0.Name = "btn_RB_0";
- this.btn_RB_0.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_0.TabIndex = 53;
- this.btn_RB_0.Text = "0";
- this.btn_RB_0.UseVisualStyleBackColor = true;
- this.btn_RB_0.Click += new System.EventHandler(this.btn_RB_0_Click);
- //
- // btn_RB_Tris_0
- //
- this.btn_RB_Tris_0.Location = new System.Drawing.Point(1102, 545);
- this.btn_RB_Tris_0.Name = "btn_RB_Tris_0";
- this.btn_RB_Tris_0.Size = new System.Drawing.Size(21, 23);
- this.btn_RB_Tris_0.TabIndex = 52;
- this.btn_RB_Tris_0.Text = "i";
- this.btn_RB_Tris_0.UseVisualStyleBackColor = true;
- this.btn_RB_Tris_0.Click += new System.EventHandler(this.btn_RB_Tris_0_Click);
- //
- // btn_RA_0
- //
- this.btn_RA_0.Location = new System.Drawing.Point(1102, 488);
- this.btn_RA_0.Name = "btn_RA_0";
- this.btn_RA_0.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_0.TabIndex = 51;
- this.btn_RA_0.Text = "0";
- this.btn_RA_0.UseVisualStyleBackColor = true;
- this.btn_RA_0.Click += new System.EventHandler(this.btn_RA_0_Click);
- //
- // btn_RA_Tris_0
- //
- this.btn_RA_Tris_0.Location = new System.Drawing.Point(1102, 459);
- this.btn_RA_Tris_0.Name = "btn_RA_Tris_0";
- this.btn_RA_Tris_0.Size = new System.Drawing.Size(21, 23);
- this.btn_RA_Tris_0.TabIndex = 50;
- this.btn_RA_Tris_0.Text = "i";
- this.btn_RA_Tris_0.UseVisualStyleBackColor = true;
- this.btn_RA_Tris_0.Click += new System.EventHandler(this.btn_RA_Tris_0_Click);
- //
- // edRS232Log
- //
- this.edRS232Log.Location = new System.Drawing.Point(1129, 494);
- this.edRS232Log.Multiline = true;
- this.edRS232Log.Name = "edRS232Log";
- this.edRS232Log.Size = new System.Drawing.Size(157, 183);
- this.edRS232Log.TabIndex = 54;
- //
- // cbxComPorts
- //
- this.cbxComPorts.FormattingEnabled = true;
- this.cbxComPorts.Location = new System.Drawing.Point(1129, 438);
- this.cbxComPorts.Name = "cbxComPorts";
- this.cbxComPorts.Size = new System.Drawing.Size(157, 21);
- this.cbxComPorts.TabIndex = 55;
- //
- // btnRSConnect
- //
- this.btnRSConnect.Location = new System.Drawing.Point(1129, 465);
- this.btnRSConnect.Name = "btnRSConnect";
- this.btnRSConnect.Size = new System.Drawing.Size(75, 23);
- this.btnRSConnect.TabIndex = 56;
- this.btnRSConnect.Text = "Connect";
- this.btnRSConnect.UseVisualStyleBackColor = true;
- this.btnRSConnect.Click += new System.EventHandler(this.btnRSConnect_Click);
- //
- // btnRSDisconnect
- //
- this.btnRSDisconnect.Location = new System.Drawing.Point(1212, 464);
- this.btnRSDisconnect.Name = "btnRSDisconnect";
- this.btnRSDisconnect.Size = new System.Drawing.Size(75, 23);
- this.btnRSDisconnect.TabIndex = 57;
- this.btnRSDisconnect.Text = "Disconnect";
- this.btnRSDisconnect.UseVisualStyleBackColor = true;
- this.btnRSDisconnect.Click += new System.EventHandler(this.btnRSDisconnect_Click);
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(915, 610);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(56, 13);
- this.label6.TabIndex = 58;
- this.label6.Text = "Taktgeber";
- //
- // edClockAddr
- //
- this.edClockAddr.Location = new System.Drawing.Point(918, 626);
- this.edClockAddr.Name = "edClockAddr";
- this.edClockAddr.Size = new System.Drawing.Size(64, 20);
- this.edClockAddr.TabIndex = 59;
- this.edClockAddr.Text = "0x20";
- //
- // edClockBit
- //
- this.edClockBit.Location = new System.Drawing.Point(994, 626);
- this.edClockBit.Name = "edClockBit";
- this.edClockBit.Size = new System.Drawing.Size(64, 20);
- this.edClockBit.TabIndex = 60;
- this.edClockBit.Text = "3";
- //
- // btnClockStart
- //
- this.btnClockStart.Location = new System.Drawing.Point(1064, 626);
- this.btnClockStart.Name = "btnClockStart";
- this.btnClockStart.Size = new System.Drawing.Size(49, 23);
- this.btnClockStart.TabIndex = 61;
- this.btnClockStart.Text = "Start";
- this.btnClockStart.UseVisualStyleBackColor = true;
- this.btnClockStart.Click += new System.EventHandler(this.btnClockStart_Click);
- //
- // edCLockFreq
- //
- this.edCLockFreq.Location = new System.Drawing.Point(918, 652);
- this.edCLockFreq.Name = "edCLockFreq";
- this.edCLockFreq.Size = new System.Drawing.Size(140, 20);
- this.edCLockFreq.TabIndex = 62;
- this.edCLockFreq.Text = "1500";
- //
- // WakeUpButton
- //
- this.WakeUpButton.Location = new System.Drawing.Point(254, 31);
- this.WakeUpButton.Name = "WakeUpButton";
- this.WakeUpButton.Size = new System.Drawing.Size(63, 21);
- this.WakeUpButton.TabIndex = 63;
- this.WakeUpButton.Text = "Wake Up";
- this.WakeUpButton.UseVisualStyleBackColor = true;
- this.WakeUpButton.Click += new System.EventHandler(this.button1_Click);
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1298, 692);
- this.Controls.Add(this.WakeUpButton);
- this.Controls.Add(this.edCLockFreq);
- this.Controls.Add(this.btnClockStart);
- this.Controls.Add(this.edClockBit);
- this.Controls.Add(this.edClockAddr);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.btnRSDisconnect);
- this.Controls.Add(this.btnRSConnect);
- this.Controls.Add(this.cbxComPorts);
- this.Controls.Add(this.edRS232Log);
- this.Controls.Add(this.btn_RB_0);
- this.Controls.Add(this.btn_RB_Tris_0);
- this.Controls.Add(this.btn_RA_0);
- this.Controls.Add(this.btn_RA_Tris_0);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.btn_RB_1);
- this.Controls.Add(this.btn_RB_2);
- this.Controls.Add(this.btn_RB_3);
- this.Controls.Add(this.btn_RB_4);
- this.Controls.Add(this.btn_RB_5);
- this.Controls.Add(this.btn_RB_6);
- this.Controls.Add(this.btn_RB_7);
- this.Controls.Add(this.btn_RB_Tris_1);
- this.Controls.Add(this.btn_RB_Tris_2);
- this.Controls.Add(this.btn_RB_Tris_3);
- this.Controls.Add(this.btn_RB_Tris_4);
- this.Controls.Add(this.btn_RB_Tris_5);
- this.Controls.Add(this.btn_RB_Tris_6);
- this.Controls.Add(this.btn_RB_Tris_7);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.btn_RA_1);
- this.Controls.Add(this.btn_RA_2);
- this.Controls.Add(this.btn_RA_3);
- this.Controls.Add(this.btn_RA_4);
- this.Controls.Add(this.btn_RA_5);
- this.Controls.Add(this.btn_RA_6);
- this.Controls.Add(this.btn_RA_7);
- this.Controls.Add(this.btn_RA_Tris_1);
- this.Controls.Add(this.btn_RA_Tris_2);
- this.Controls.Add(this.btn_RA_Tris_3);
- this.Controls.Add(this.btn_RA_Tris_4);
- this.Controls.Add(this.btn_RA_Tris_5);
- this.Controls.Add(this.btn_RA_Tris_6);
- this.Controls.Add(this.btn_RA_Tris_7);
- this.Controls.Add(this.lbStack);
- this.Controls.Add(this.lvSpecial);
- this.Controls.Add(this.insertTime);
- this.Controls.Add(this.cmd_Stop);
- this.Controls.Add(this.lvMemory);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.cmd_reset);
- this.Controls.Add(this.cmd_next);
- this.Controls.Add(this.cmd_Start);
- this.Controls.Add(this.lbl_path);
- this.Controls.Add(this.box_CodeView);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Margin = new System.Windows.Forms.Padding(2);
- this.Name = "Form1";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "PIC Simulator";
- this.Load += new System.EventHandler(this.Form1_Load);
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
+ this.lvSpecial.Location = new System.Drawing.Point(640, 438);
+ this.lvSpecial.Margin = new System.Windows.Forms.Padding(2);
+ this.lvSpecial.Name = "lvSpecial";
+ this.lvSpecial.Size = new System.Drawing.Size(269, 239);
+ this.lvSpecial.TabIndex = 18;
+ this.lvSpecial.UseCompatibleStateImageBehavior = false;
+ this.lvSpecial.View = System.Windows.Forms.View.Details;
+ //
+ // c1
+ //
+ this.c1.Text = "Name";
+ this.c1.Width = 128;
+ //
+ // c2
+ //
+ this.c2.Text = "Wert";
+ this.c2.Width = 128;
+ //
+ // lbStack
+ //
+ this.lbStack.FormattingEnabled = true;
+ this.lbStack.Location = new System.Drawing.Point(640, 78);
+ this.lbStack.Name = "lbStack";
+ this.lbStack.Size = new System.Drawing.Size(66, 355);
+ this.lbStack.TabIndex = 19;
+ //
+ // btn_RA_Tris_7
+ //
+ this.btn_RA_Tris_7.Location = new System.Drawing.Point(913, 459);
+ this.btn_RA_Tris_7.Name = "btn_RA_Tris_7";
+ this.btn_RA_Tris_7.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_7.TabIndex = 20;
+ this.btn_RA_Tris_7.Text = "i";
+ this.btn_RA_Tris_7.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_7.Click += new System.EventHandler(this.btn_RA_Tris_7_Click);
+ //
+ // btn_RA_Tris_6
+ //
+ this.btn_RA_Tris_6.Location = new System.Drawing.Point(940, 459);
+ this.btn_RA_Tris_6.Name = "btn_RA_Tris_6";
+ this.btn_RA_Tris_6.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_6.TabIndex = 21;
+ this.btn_RA_Tris_6.Text = "i";
+ this.btn_RA_Tris_6.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_6.Click += new System.EventHandler(this.btn_RA_Tris_6_Click);
+ //
+ // btn_RA_Tris_5
+ //
+ this.btn_RA_Tris_5.Location = new System.Drawing.Point(967, 459);
+ this.btn_RA_Tris_5.Name = "btn_RA_Tris_5";
+ this.btn_RA_Tris_5.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_5.TabIndex = 22;
+ this.btn_RA_Tris_5.Text = "i";
+ this.btn_RA_Tris_5.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_5.Click += new System.EventHandler(this.btn_RA_Tris_5_Click);
+ //
+ // btn_RA_Tris_4
+ //
+ this.btn_RA_Tris_4.Location = new System.Drawing.Point(994, 459);
+ this.btn_RA_Tris_4.Name = "btn_RA_Tris_4";
+ this.btn_RA_Tris_4.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_4.TabIndex = 23;
+ this.btn_RA_Tris_4.Text = "i";
+ this.btn_RA_Tris_4.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_4.Click += new System.EventHandler(this.btn_RA_Tris_4_Click);
+ //
+ // btn_RA_Tris_3
+ //
+ this.btn_RA_Tris_3.Location = new System.Drawing.Point(1021, 459);
+ this.btn_RA_Tris_3.Name = "btn_RA_Tris_3";
+ this.btn_RA_Tris_3.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_3.TabIndex = 24;
+ this.btn_RA_Tris_3.Text = "i";
+ this.btn_RA_Tris_3.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_3.Click += new System.EventHandler(this.btn_RA_Tris_3_Click);
+ //
+ // btn_RA_Tris_2
+ //
+ this.btn_RA_Tris_2.Location = new System.Drawing.Point(1048, 459);
+ this.btn_RA_Tris_2.Name = "btn_RA_Tris_2";
+ this.btn_RA_Tris_2.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_2.TabIndex = 25;
+ this.btn_RA_Tris_2.Text = "i";
+ this.btn_RA_Tris_2.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_2.Click += new System.EventHandler(this.btn_RA_Tris_2_Click);
+ //
+ // btn_RA_Tris_1
+ //
+ this.btn_RA_Tris_1.Location = new System.Drawing.Point(1075, 459);
+ this.btn_RA_Tris_1.Name = "btn_RA_Tris_1";
+ this.btn_RA_Tris_1.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_1.TabIndex = 26;
+ this.btn_RA_Tris_1.Text = "i";
+ this.btn_RA_Tris_1.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_1.Click += new System.EventHandler(this.btn_RA_Tris_1_Click);
+ //
+ // btn_RA_1
+ //
+ this.btn_RA_1.Location = new System.Drawing.Point(1075, 488);
+ this.btn_RA_1.Name = "btn_RA_1";
+ this.btn_RA_1.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_1.TabIndex = 33;
+ this.btn_RA_1.Text = "0";
+ this.btn_RA_1.UseVisualStyleBackColor = true;
+ this.btn_RA_1.Click += new System.EventHandler(this.btn_RA_1_Click);
+ //
+ // btn_RA_2
+ //
+ this.btn_RA_2.Location = new System.Drawing.Point(1048, 488);
+ this.btn_RA_2.Name = "btn_RA_2";
+ this.btn_RA_2.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_2.TabIndex = 32;
+ this.btn_RA_2.Text = "0";
+ this.btn_RA_2.UseVisualStyleBackColor = true;
+ this.btn_RA_2.Click += new System.EventHandler(this.btn_RA_2_Click);
+ //
+ // btn_RA_3
+ //
+ this.btn_RA_3.Location = new System.Drawing.Point(1021, 488);
+ this.btn_RA_3.Name = "btn_RA_3";
+ this.btn_RA_3.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_3.TabIndex = 31;
+ this.btn_RA_3.Text = "0";
+ this.btn_RA_3.UseVisualStyleBackColor = true;
+ this.btn_RA_3.Click += new System.EventHandler(this.btn_RA_3_Click);
+ //
+ // btn_RA_4
+ //
+ this.btn_RA_4.Location = new System.Drawing.Point(994, 488);
+ this.btn_RA_4.Name = "btn_RA_4";
+ this.btn_RA_4.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_4.TabIndex = 30;
+ this.btn_RA_4.Text = "0";
+ this.btn_RA_4.UseVisualStyleBackColor = true;
+ this.btn_RA_4.Click += new System.EventHandler(this.btn_RA_4_Click);
+ //
+ // btn_RA_5
+ //
+ this.btn_RA_5.Location = new System.Drawing.Point(967, 488);
+ this.btn_RA_5.Name = "btn_RA_5";
+ this.btn_RA_5.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_5.TabIndex = 29;
+ this.btn_RA_5.Text = "0";
+ this.btn_RA_5.UseVisualStyleBackColor = true;
+ this.btn_RA_5.Click += new System.EventHandler(this.btn_RA_5_Click);
+ //
+ // btn_RA_6
+ //
+ this.btn_RA_6.Location = new System.Drawing.Point(940, 488);
+ this.btn_RA_6.Name = "btn_RA_6";
+ this.btn_RA_6.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_6.TabIndex = 28;
+ this.btn_RA_6.Text = "0";
+ this.btn_RA_6.UseVisualStyleBackColor = true;
+ this.btn_RA_6.Click += new System.EventHandler(this.btn_RA_6_Click);
+ //
+ // btn_RA_7
+ //
+ this.btn_RA_7.Location = new System.Drawing.Point(913, 488);
+ this.btn_RA_7.Name = "btn_RA_7";
+ this.btn_RA_7.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_7.TabIndex = 27;
+ this.btn_RA_7.Text = "0";
+ this.btn_RA_7.UseVisualStyleBackColor = true;
+ this.btn_RA_7.Click += new System.EventHandler(this.btn_RA_7_Click);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(915, 438);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(22, 13);
+ this.label2.TabIndex = 34;
+ this.label2.Text = "RA";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(915, 524);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(22, 13);
+ this.label5.TabIndex = 49;
+ this.label5.Text = "RB";
+ //
+ // btn_RB_1
+ //
+ this.btn_RB_1.Location = new System.Drawing.Point(1075, 574);
+ this.btn_RB_1.Name = "btn_RB_1";
+ this.btn_RB_1.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_1.TabIndex = 48;
+ this.btn_RB_1.Text = "0";
+ this.btn_RB_1.UseVisualStyleBackColor = true;
+ this.btn_RB_1.Click += new System.EventHandler(this.btn_RB_1_Click);
+ //
+ // btn_RB_2
+ //
+ this.btn_RB_2.Location = new System.Drawing.Point(1048, 574);
+ this.btn_RB_2.Name = "btn_RB_2";
+ this.btn_RB_2.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_2.TabIndex = 47;
+ this.btn_RB_2.Text = "0";
+ this.btn_RB_2.UseVisualStyleBackColor = true;
+ this.btn_RB_2.Click += new System.EventHandler(this.btn_RB_2_Click);
+ //
+ // btn_RB_3
+ //
+ this.btn_RB_3.Location = new System.Drawing.Point(1021, 574);
+ this.btn_RB_3.Name = "btn_RB_3";
+ this.btn_RB_3.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_3.TabIndex = 46;
+ this.btn_RB_3.Text = "0";
+ this.btn_RB_3.UseVisualStyleBackColor = true;
+ this.btn_RB_3.Click += new System.EventHandler(this.btn_RB_3_Click);
+ //
+ // btn_RB_4
+ //
+ this.btn_RB_4.Location = new System.Drawing.Point(994, 574);
+ this.btn_RB_4.Name = "btn_RB_4";
+ this.btn_RB_4.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_4.TabIndex = 45;
+ this.btn_RB_4.Text = "0";
+ this.btn_RB_4.UseVisualStyleBackColor = true;
+ this.btn_RB_4.Click += new System.EventHandler(this.btn_RB_4_Click);
+ //
+ // btn_RB_5
+ //
+ this.btn_RB_5.Location = new System.Drawing.Point(967, 574);
+ this.btn_RB_5.Name = "btn_RB_5";
+ this.btn_RB_5.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_5.TabIndex = 44;
+ this.btn_RB_5.Text = "0";
+ this.btn_RB_5.UseVisualStyleBackColor = true;
+ this.btn_RB_5.Click += new System.EventHandler(this.btn_RB_5_Click);
+ //
+ // btn_RB_6
+ //
+ this.btn_RB_6.Location = new System.Drawing.Point(940, 574);
+ this.btn_RB_6.Name = "btn_RB_6";
+ this.btn_RB_6.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_6.TabIndex = 43;
+ this.btn_RB_6.Text = "0";
+ this.btn_RB_6.UseVisualStyleBackColor = true;
+ this.btn_RB_6.Click += new System.EventHandler(this.btn_RB_6_Click);
+ //
+ // btn_RB_7
+ //
+ this.btn_RB_7.Location = new System.Drawing.Point(913, 574);
+ this.btn_RB_7.Name = "btn_RB_7";
+ this.btn_RB_7.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_7.TabIndex = 42;
+ this.btn_RB_7.Text = "0";
+ this.btn_RB_7.UseVisualStyleBackColor = true;
+ this.btn_RB_7.Click += new System.EventHandler(this.btn_RB_7_Click);
+ //
+ // btn_RB_Tris_1
+ //
+ this.btn_RB_Tris_1.Location = new System.Drawing.Point(1075, 545);
+ this.btn_RB_Tris_1.Name = "btn_RB_Tris_1";
+ this.btn_RB_Tris_1.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_1.TabIndex = 41;
+ this.btn_RB_Tris_1.Text = "i";
+ this.btn_RB_Tris_1.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_1.Click += new System.EventHandler(this.btn_RB_Tris_1_Click);
+ //
+ // btn_RB_Tris_2
+ //
+ this.btn_RB_Tris_2.Location = new System.Drawing.Point(1048, 545);
+ this.btn_RB_Tris_2.Name = "btn_RB_Tris_2";
+ this.btn_RB_Tris_2.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_2.TabIndex = 40;
+ this.btn_RB_Tris_2.Text = "i";
+ this.btn_RB_Tris_2.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_2.Click += new System.EventHandler(this.btn_RB_Tris_2_Click);
+ //
+ // btn_RB_Tris_3
+ //
+ this.btn_RB_Tris_3.Location = new System.Drawing.Point(1021, 545);
+ this.btn_RB_Tris_3.Name = "btn_RB_Tris_3";
+ this.btn_RB_Tris_3.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_3.TabIndex = 39;
+ this.btn_RB_Tris_3.Text = "i";
+ this.btn_RB_Tris_3.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_3.Click += new System.EventHandler(this.btn_RB_Tris_3_Click);
+ //
+ // btn_RB_Tris_4
+ //
+ this.btn_RB_Tris_4.Location = new System.Drawing.Point(994, 545);
+ this.btn_RB_Tris_4.Name = "btn_RB_Tris_4";
+ this.btn_RB_Tris_4.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_4.TabIndex = 38;
+ this.btn_RB_Tris_4.Text = "i";
+ this.btn_RB_Tris_4.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_4.Click += new System.EventHandler(this.btn_RB_Tris_4_Click);
+ //
+ // btn_RB_Tris_5
+ //
+ this.btn_RB_Tris_5.Location = new System.Drawing.Point(967, 545);
+ this.btn_RB_Tris_5.Name = "btn_RB_Tris_5";
+ this.btn_RB_Tris_5.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_5.TabIndex = 37;
+ this.btn_RB_Tris_5.Text = "i";
+ this.btn_RB_Tris_5.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_5.Click += new System.EventHandler(this.btn_RB_Tris_5_Click);
+ //
+ // btn_RB_Tris_6
+ //
+ this.btn_RB_Tris_6.Location = new System.Drawing.Point(940, 545);
+ this.btn_RB_Tris_6.Name = "btn_RB_Tris_6";
+ this.btn_RB_Tris_6.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_6.TabIndex = 36;
+ this.btn_RB_Tris_6.Text = "i";
+ this.btn_RB_Tris_6.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_6.Click += new System.EventHandler(this.btn_RB_Tris_6_Click);
+ //
+ // btn_RB_Tris_7
+ //
+ this.btn_RB_Tris_7.Location = new System.Drawing.Point(913, 545);
+ this.btn_RB_Tris_7.Name = "btn_RB_Tris_7";
+ this.btn_RB_Tris_7.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_7.TabIndex = 35;
+ this.btn_RB_Tris_7.Text = "i";
+ this.btn_RB_Tris_7.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_7.Click += new System.EventHandler(this.btn_RB_Tris_7_Click);
+ //
+ // btn_RB_0
+ //
+ this.btn_RB_0.Location = new System.Drawing.Point(1102, 574);
+ this.btn_RB_0.Name = "btn_RB_0";
+ this.btn_RB_0.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_0.TabIndex = 53;
+ this.btn_RB_0.Text = "0";
+ this.btn_RB_0.UseVisualStyleBackColor = true;
+ this.btn_RB_0.Click += new System.EventHandler(this.btn_RB_0_Click);
+ //
+ // btn_RB_Tris_0
+ //
+ this.btn_RB_Tris_0.Location = new System.Drawing.Point(1102, 545);
+ this.btn_RB_Tris_0.Name = "btn_RB_Tris_0";
+ this.btn_RB_Tris_0.Size = new System.Drawing.Size(21, 23);
+ this.btn_RB_Tris_0.TabIndex = 52;
+ this.btn_RB_Tris_0.Text = "i";
+ this.btn_RB_Tris_0.UseVisualStyleBackColor = true;
+ this.btn_RB_Tris_0.Click += new System.EventHandler(this.btn_RB_Tris_0_Click);
+ //
+ // btn_RA_0
+ //
+ this.btn_RA_0.Location = new System.Drawing.Point(1102, 488);
+ this.btn_RA_0.Name = "btn_RA_0";
+ this.btn_RA_0.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_0.TabIndex = 51;
+ this.btn_RA_0.Text = "0";
+ this.btn_RA_0.UseVisualStyleBackColor = true;
+ this.btn_RA_0.Click += new System.EventHandler(this.btn_RA_0_Click);
+ //
+ // btn_RA_Tris_0
+ //
+ this.btn_RA_Tris_0.Location = new System.Drawing.Point(1102, 459);
+ this.btn_RA_Tris_0.Name = "btn_RA_Tris_0";
+ this.btn_RA_Tris_0.Size = new System.Drawing.Size(21, 23);
+ this.btn_RA_Tris_0.TabIndex = 50;
+ this.btn_RA_Tris_0.Text = "i";
+ this.btn_RA_Tris_0.UseVisualStyleBackColor = true;
+ this.btn_RA_Tris_0.Click += new System.EventHandler(this.btn_RA_Tris_0_Click);
+ //
+ // edRS232Log
+ //
+ this.edRS232Log.Location = new System.Drawing.Point(1129, 494);
+ this.edRS232Log.Multiline = true;
+ this.edRS232Log.Name = "edRS232Log";
+ this.edRS232Log.Size = new System.Drawing.Size(157, 183);
+ this.edRS232Log.TabIndex = 54;
+ //
+ // cbxComPorts
+ //
+ this.cbxComPorts.FormattingEnabled = true;
+ this.cbxComPorts.Location = new System.Drawing.Point(1129, 438);
+ this.cbxComPorts.Name = "cbxComPorts";
+ this.cbxComPorts.Size = new System.Drawing.Size(157, 21);
+ this.cbxComPorts.TabIndex = 55;
+ //
+ // btnRSConnect
+ //
+ this.btnRSConnect.Location = new System.Drawing.Point(1129, 465);
+ this.btnRSConnect.Name = "btnRSConnect";
+ this.btnRSConnect.Size = new System.Drawing.Size(75, 23);
+ this.btnRSConnect.TabIndex = 56;
+ this.btnRSConnect.Text = "Connect";
+ this.btnRSConnect.UseVisualStyleBackColor = true;
+ this.btnRSConnect.Click += new System.EventHandler(this.btnRSConnect_Click);
+ //
+ // btnRSDisconnect
+ //
+ this.btnRSDisconnect.Location = new System.Drawing.Point(1212, 464);
+ this.btnRSDisconnect.Name = "btnRSDisconnect";
+ this.btnRSDisconnect.Size = new System.Drawing.Size(75, 23);
+ this.btnRSDisconnect.TabIndex = 57;
+ this.btnRSDisconnect.Text = "Disconnect";
+ this.btnRSDisconnect.UseVisualStyleBackColor = true;
+ this.btnRSDisconnect.Click += new System.EventHandler(this.btnRSDisconnect_Click);
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(915, 610);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(56, 13);
+ this.label6.TabIndex = 58;
+ this.label6.Text = "Taktgeber";
+ //
+ // edClockAddr
+ //
+ this.edClockAddr.Location = new System.Drawing.Point(918, 626);
+ this.edClockAddr.Name = "edClockAddr";
+ this.edClockAddr.Size = new System.Drawing.Size(64, 20);
+ this.edClockAddr.TabIndex = 59;
+ this.edClockAddr.Text = "0x20";
+ //
+ // edClockBit
+ //
+ this.edClockBit.Location = new System.Drawing.Point(994, 626);
+ this.edClockBit.Name = "edClockBit";
+ this.edClockBit.Size = new System.Drawing.Size(64, 20);
+ this.edClockBit.TabIndex = 60;
+ this.edClockBit.Text = "3";
+ //
+ // btnClockStart
+ //
+ this.btnClockStart.Location = new System.Drawing.Point(1064, 626);
+ this.btnClockStart.Name = "btnClockStart";
+ this.btnClockStart.Size = new System.Drawing.Size(49, 23);
+ this.btnClockStart.TabIndex = 61;
+ this.btnClockStart.Text = "Start";
+ this.btnClockStart.UseVisualStyleBackColor = true;
+ this.btnClockStart.Click += new System.EventHandler(this.btnClockStart_Click);
+ //
+ // edCLockFreq
+ //
+ this.edCLockFreq.Location = new System.Drawing.Point(918, 652);
+ this.edCLockFreq.Name = "edCLockFreq";
+ this.edCLockFreq.Size = new System.Drawing.Size(140, 20);
+ this.edCLockFreq.TabIndex = 62;
+ this.edCLockFreq.Text = "1500";
+ //
+ // WakeUpButton
+ //
+ this.WakeUpButton.Location = new System.Drawing.Point(254, 31);
+ this.WakeUpButton.Name = "WakeUpButton";
+ this.WakeUpButton.Size = new System.Drawing.Size(63, 21);
+ this.WakeUpButton.TabIndex = 63;
+ this.WakeUpButton.Text = "Wake Up";
+ this.WakeUpButton.UseVisualStyleBackColor = true;
+ this.WakeUpButton.Click += new System.EventHandler(this.button1_Click);
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(341, 18);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(126, 23);
+ this.button1.TabIndex = 64;
+ this.button1.Text = "Watchdog An";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click_1);
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(341, 48);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(126, 23);
+ this.button2.TabIndex = 65;
+ this.button2.Text = "Watchdog Aus";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1298, 692);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.WakeUpButton);
+ this.Controls.Add(this.edCLockFreq);
+ this.Controls.Add(this.btnClockStart);
+ this.Controls.Add(this.edClockBit);
+ this.Controls.Add(this.edClockAddr);
+ this.Controls.Add(this.label6);
+ this.Controls.Add(this.btnRSDisconnect);
+ this.Controls.Add(this.btnRSConnect);
+ this.Controls.Add(this.cbxComPorts);
+ this.Controls.Add(this.edRS232Log);
+ this.Controls.Add(this.btn_RB_0);
+ this.Controls.Add(this.btn_RB_Tris_0);
+ this.Controls.Add(this.btn_RA_0);
+ this.Controls.Add(this.btn_RA_Tris_0);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.btn_RB_1);
+ this.Controls.Add(this.btn_RB_2);
+ this.Controls.Add(this.btn_RB_3);
+ this.Controls.Add(this.btn_RB_4);
+ this.Controls.Add(this.btn_RB_5);
+ this.Controls.Add(this.btn_RB_6);
+ this.Controls.Add(this.btn_RB_7);
+ this.Controls.Add(this.btn_RB_Tris_1);
+ this.Controls.Add(this.btn_RB_Tris_2);
+ this.Controls.Add(this.btn_RB_Tris_3);
+ this.Controls.Add(this.btn_RB_Tris_4);
+ this.Controls.Add(this.btn_RB_Tris_5);
+ this.Controls.Add(this.btn_RB_Tris_6);
+ this.Controls.Add(this.btn_RB_Tris_7);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.btn_RA_1);
+ this.Controls.Add(this.btn_RA_2);
+ this.Controls.Add(this.btn_RA_3);
+ this.Controls.Add(this.btn_RA_4);
+ this.Controls.Add(this.btn_RA_5);
+ this.Controls.Add(this.btn_RA_6);
+ this.Controls.Add(this.btn_RA_7);
+ this.Controls.Add(this.btn_RA_Tris_1);
+ this.Controls.Add(this.btn_RA_Tris_2);
+ this.Controls.Add(this.btn_RA_Tris_3);
+ this.Controls.Add(this.btn_RA_Tris_4);
+ this.Controls.Add(this.btn_RA_Tris_5);
+ this.Controls.Add(this.btn_RA_Tris_6);
+ this.Controls.Add(this.btn_RA_Tris_7);
+ this.Controls.Add(this.lbStack);
+ this.Controls.Add(this.lvSpecial);
+ this.Controls.Add(this.insertTime);
+ this.Controls.Add(this.cmd_Stop);
+ this.Controls.Add(this.lvMemory);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.cmd_reset);
+ this.Controls.Add(this.cmd_next);
+ this.Controls.Add(this.cmd_Start);
+ this.Controls.Add(this.lbl_path);
+ this.Controls.Add(this.box_CodeView);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.menuStrip1);
+ this.MainMenuStrip = this.menuStrip1;
+ this.Margin = new System.Windows.Forms.Padding(2);
+ this.Name = "Form1";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "PIC Simulator";
+ this.Load += new System.EventHandler(this.Form1_Load);
+ this.menuStrip1.ResumeLayout(false);
+ this.menuStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
}
@@ -991,6 +1015,8 @@
private System.Windows.Forms.Button btnClockStart;
private System.Windows.Forms.TextBox edCLockFreq;
private System.Windows.Forms.Button WakeUpButton;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
}
}
diff --git a/PIC_Simulator/Form1.cs b/PIC_Simulator/Form1.cs
index f6a14b9..b52a66e 100644
--- a/PIC_Simulator/Form1.cs
+++ b/PIC_Simulator/Form1.cs
@@ -528,6 +528,16 @@ namespace PIC_Simulator
{
programm.IsSleeping = false; //Kein WatchdogTimer implementiert, Sleep durch button deaktiviert
}
+
+ private void button1_Click_1(object sender, EventArgs e)
+ {
+ programm.WatchDog.Aktiviert = true;
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ programm.WatchDog.Aktiviert = false;
+ }
}
}
diff --git a/PIC_Simulator/PIC/PICProgramm.cs b/PIC_Simulator/PIC/PICProgramm.cs
index 33d9ea4..aa0a8e6 100644
--- a/PIC_Simulator/PIC/PICProgramm.cs
+++ b/PIC_Simulator/PIC/PICProgramm.cs
@@ -127,23 +127,17 @@ namespace PIC_Simulator.PIC
public uint TaktgeberAdresse = 0;
public uint TaktgeberBitnummer = 0;
+ public PICTimer Zaehler;
+ public PICWatchDog WatchDog;
+
public PICProgramm()
{
+ Zaehler = new PICTimer(this);
+ WatchDog = new PICWatchDog(this);
+
// Anfangswerte
- SetRegisterOhneBank(ADDR_PCL, 0x00);
- SetRegisterOhneBank(ADDR_STATUS, 0x18);
- SetRegisterOhneBank(ADDR_PCLATH, 0x00);
- SetRegisterOhneBank(ADDR_INTCON, 0x00);
-
- SetRegisterOhneBank(ADDR_OPTION, 0xFF);
- SetRegisterOhneBank(ADDR_TRIS_A, 0x1F);
- SetRegisterOhneBank(ADDR_TRIS_B, 0xFF);
-
- SetRegisterOhneBank(ADDR_EECON1, 0x00);
- SetRegisterOhneBank(ADDR_EECON2, 0x00);
-
- PCCounter = 0;
+ Reset();
}
public void Laden(string code)
@@ -237,7 +231,7 @@ namespace PIC_Simulator.PIC
}
}
- if (IsSleeping) return false;
+ if (IsSleeping) { WatchDog.Aktualisieren(1, frequenz); return false;}
uint cycleCount = 1;
@@ -664,7 +658,17 @@ namespace PIC_Simulator.PIC
// of the WDT. Status bits TO and PD are
// set.
- //TODO
+ WatchDog.Reset();
+
+ if (GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PSA))
+ {
+ SetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS0, false);
+ SetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS1, false);
+ SetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS2, false);
+ }
+
+ SetRegisterOhneBank(ADDR_STATUS, STATUS_BIT_TO, true);
+ SetRegisterOhneBank(ADDR_STATUS, STATUS_BIT_PD, true);
}
else if (aktueller_befehl.befehl == GOTO)
{
@@ -795,103 +799,13 @@ namespace PIC_Simulator.PIC
PCCounter++;
Stepcount++;
- TimerBerechnen(cycleCount);
+ Zaehler.TimerBerechnen(cycleCount);
+
+ WatchDog.Aktualisieren(cycleCount, frequenz);
return PCCounter >= befehle.Count;
}
- private bool prev_RA4 = false;
- private void TimerBerechnen(uint cycles)
- {
- bool tmr_mode = GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_T0CS);
- bool edge_mode = GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_T0SE);
-
- if (!tmr_mode)
- {
- bool curr_A4 = GetRegisterOhneBank(ADDR_PORT_A, 4);
-
- if (edge_mode)
- {
- if (prev_RA4 && !curr_A4)
- {
- TimerHochzaehlen(cycles);
- }
- }
- else
- {
- if (!prev_RA4 && curr_A4)
- {
- TimerHochzaehlen(cycles);
- }
- }
- }
- else
- {
- TimerHochzaehlen(cycles);
- }
-
- prev_RA4 = GetRegisterOhneBank(ADDR_PORT_A, 4);
- }
-
- private uint prescale_cntr = 0; // Zähler für timer
-
- private void TimerHochzaehlen(uint cycles)
- {
- uint current = GetRegisterOhneBank(ADDR_TMR0);
- uint scale = BerechneVorskalierung();
-
- prescale_cntr += cycles;
-
- while (prescale_cntr >= scale)
- {
- prescale_cntr -= scale;
-
- uint Result = current + 1;
- if (Result > 0xFF)
- {
- //TODO Interrupt PIT_TIMER
- }
-
- Result %= 0x100;
-
- uint tmp_psc = prescale_cntr;
- SetRegisterOhneBank(ADDR_TMR0, Result);
- prescale_cntr = tmp_psc;
- }
- }
-
- private uint BerechneVorskalierung()
- {
- bool prescale_mode = GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PSA);
-
- uint scale = 0;
- scale += GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS2) ? 1U : 0U;
- scale *= 2;
- scale += GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS1) ? 1U : 0U;
- scale *= 2;
- scale += GetRegisterOhneBank(ADDR_OPTION, OPTION_BIT_PS0) ? 1U : 0U;
-
- return prescale_mode ? 1 : (SHL(2, scale));
- }
-
- private uint UIntPower(uint x, uint power)
- {
- if (power == 0)
- return 1;
- if (power == 1)
- return x;
- // ----------------------
- int n = 15;
- while ((power <<= 1) >= 0)
- n--;
-
- uint tmp = x;
- while (--n > 0)
- tmp = tmp * tmp *
- (((power <<= 1) < 0) ? x : 1);
- return tmp;
- }
-
public void SetRegisterOhneBank(uint index, uint wert)
{
// register die nur einmal auf bank1 + 2 existieren
@@ -1043,5 +957,29 @@ namespace PIC_Simulator.PIC
return (byte)(bit ? (val | SHL(1, pos)) : (val & ~SHL(1, pos)));
}
+ public void Reset()
+ {
+ Register = new byte[0x100];
+
+ Latch_RA = 0;
+ Latch_RB = 0;
+
+ Register_W = 0;
+ Stack.Clear();
+
+ SetRegisterOhneBank(ADDR_PCL, 0x00);
+ SetRegisterOhneBank(ADDR_STATUS, 0x18);
+ SetRegisterOhneBank(ADDR_PCLATH, 0x00);
+ SetRegisterOhneBank(ADDR_INTCON, 0x00);
+
+ SetRegisterOhneBank(ADDR_OPTION, 0xFF);
+ SetRegisterOhneBank(ADDR_TRIS_A, 0x1F);
+ SetRegisterOhneBank(ADDR_TRIS_B, 0xFF);
+
+ SetRegisterOhneBank(ADDR_EECON1, 0x00);
+ SetRegisterOhneBank(ADDR_EECON2, 0x00);
+
+ PCCounter = 0;
+ }
}
}
diff --git a/PIC_Simulator/PIC/PICTimer.cs b/PIC_Simulator/PIC/PICTimer.cs
new file mode 100644
index 0000000..89f5c53
--- /dev/null
+++ b/PIC_Simulator/PIC/PICTimer.cs
@@ -0,0 +1,87 @@
+
+namespace PIC_Simulator.PIC
+{
+ class PICTimer
+ {
+ private PICProgramm programm;
+
+ public PICTimer(PICProgramm p)
+ {
+ programm = p;
+ }
+
+ private bool prev_RA4 = false;
+ public void TimerBerechnen(uint cycles)
+ {
+ bool tmr_mode = programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_T0CS);
+ bool edge_mode = programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_T0SE);
+
+ if (!tmr_mode)
+ {
+ bool curr_A4 = programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 4);
+
+ if (edge_mode)
+ {
+ if (prev_RA4 && !curr_A4)
+ {
+ TimerHochzaehlen(cycles);
+ }
+ }
+ else
+ {
+ if (!prev_RA4 && curr_A4)
+ {
+ TimerHochzaehlen(cycles);
+ }
+ }
+ }
+ else
+ {
+ TimerHochzaehlen(cycles);
+ }
+
+ prev_RA4 = programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 4);
+ }
+
+ private uint prescale_cntr = 0; // Zähler für timer
+
+ private void TimerHochzaehlen(uint cycles)
+ {
+ uint current = programm.GetRegisterOhneBank(PICProgramm.ADDR_TMR0);
+ uint scale = BerechneVorskalierung();
+
+ prescale_cntr += cycles;
+
+ while (prescale_cntr >= scale)
+ {
+ prescale_cntr -= scale;
+
+ uint Result = current + 1;
+ if (Result > 0xFF)
+ {
+ //TODO Interrupt PIT_TIMER
+ }
+
+ Result %= 0x100;
+
+ uint tmp_psc = prescale_cntr;
+ programm.SetRegisterOhneBank(PICProgramm.ADDR_TMR0, Result);
+ prescale_cntr = tmp_psc;
+ }
+ }
+
+ private uint BerechneVorskalierung()
+ {
+ bool prescale_mode = programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PSA);
+
+ uint scale = 0;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS2) ? 1U : 0U;
+ scale *= 2;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS1) ? 1U : 0U;
+ scale *= 2;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS0) ? 1U : 0U;
+
+ return prescale_mode ? 1 : (PICProgramm.SHL(2, scale));
+ }
+ }
+}
diff --git a/PIC_Simulator/PIC/PICWatchDog.cs b/PIC_Simulator/PIC/PICWatchDog.cs
new file mode 100644
index 0000000..694e273
--- /dev/null
+++ b/PIC_Simulator/PIC/PICWatchDog.cs
@@ -0,0 +1,86 @@
+
+namespace PIC_Simulator.PIC
+{
+ class PICWatchDog
+ {
+ private PICProgramm programm;
+
+ private const double TIME_OUT = 0.018; // 18ms;
+
+ public uint Prescale = 1;
+
+ private double time; // in s
+
+ public bool Aktiviert = false;
+
+ public PICWatchDog(PICProgramm p)
+ {
+ programm = p;
+ time = 0;
+ }
+
+ public void Aktualisieren(uint cycles, float frequenz)
+ {
+ if (Aktiviert)
+ {
+ time += (1.0 / frequenz) * cycles;
+
+ if (time > TIME_OUT * GetPreScale())
+ {
+ WDReset();
+ }
+ }
+ else
+ {
+ time = 0;
+ }
+ }
+
+ private void WDReset()
+ {
+ if (!programm.IsSleeping)
+ {
+ // >> WATCHDOG RESET <<
+
+ time = 0;
+
+ programm.Reset();
+ programm.SetRegisterOhneBank(PICProgramm.ADDR_STATUS, PICProgramm.STATUS_BIT_TO, false);
+ }
+ else
+ {
+ // >> Wake Up <<
+
+ time = 0;
+
+ programm.IsSleeping = false;
+ }
+ }
+
+ private uint GetPreScale()
+ {
+ bool prescale_mode = !programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PSA);
+
+ uint scale = 0;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS2) ? 1U : 0U;
+ scale *= 2;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS1) ? 1U : 0U;
+ scale *= 2;
+ scale += programm.GetRegisterOhneBank(PICProgramm.ADDR_OPTION, PICProgramm.OPTION_BIT_PS0) ? 1U : 0U;
+
+ Prescale = prescale_mode ? 1 : (PICProgramm.SHL(1, scale));
+
+ return Prescale;
+ }
+
+ public void Reset()
+ {
+ time = 0;
+ }
+
+ public double GetPerc()
+ {
+ return time / (TIME_OUT * Prescale);
+ }
+ }
+}
diff --git a/PIC_Simulator/PIC_Simulator.csproj b/PIC_Simulator/PIC_Simulator.csproj
index 3992113..509fcb7 100644
--- a/PIC_Simulator/PIC_Simulator.csproj
+++ b/PIC_Simulator/PIC_Simulator.csproj
@@ -52,6 +52,8 @@
Form1.cs
+
+