some 2008 cu trace stuff

Tue, 06 Dec 2011 11:04:33 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Tue, 06 Dec 2011 11:04:33 +0100
changeset 39
4b186b5ce145
parent 38
ff76255904c4
child 40
c36bf33489f9

some 2008 cu trace stuff

carrerashark/TRACE file | annotate | diff | comparison | revisions
carrerashark/main.c file | annotate | diff | comparison | revisions
--- a/carrerashark/TRACE	Mon Dec 05 17:14:32 2011 +0100
+++ b/carrerashark/TRACE	Tue Dec 06 11:04:33 2011 +0100
@@ -7,6 +7,30 @@
 0x1822 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
 0x1826 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
 
+2008 CU init sequence (without pitlane addon):
+0x260 0x360 0x2a0 0x80 0x2e0 0x4fc0 0xd0e2 0x181c 0x52fe 0x8e3f
+0x1f51 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+0x1020 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+0x1f2f 0x3d9 0x80 0x221 0x321 0x261 0x361 0x2a1 0x80 0x2e1
+0x1020 0x3c9 0x80 0x221 0x321 0x261 0x361 0x2a1 0x80 0x2e1
+
+2008 CU init sequence (with pitlane addon connected):
+0x3030 0x3030 0x3030 0x200 0x321 0x261 0x361 0x2a1 0x80 0x2e1
+0x1f51 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+0x1020 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+0x1f2f 0x3d9 0x80 0x221 0x321 0x260 0x360 0x2a0 0x80 0x2e0
+0x1e54 0x3c8 0x180 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+0x1e55 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0
+
+2008 CU idle (without pit addon):
+0x1e21 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+0x1e25 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+0x1e20 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+0x1e24 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+0x1e22 0x3c8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+0x1e26 0x3d8 0x80 0x220 0x320 0x260 0x360 0x2a0 0x80 0x2e0 *
+
+
 
 Pacecar Taste gedrückt (pacecar packet ändert sich):
     LED2 an: 0x3ce fuer 10 sec
--- a/carrerashark/main.c	Mon Dec 05 17:14:32 2011 +0100
+++ b/carrerashark/main.c	Tue Dec 06 11:04:33 2011 +0100
@@ -191,7 +191,7 @@
     PORTD |= _BV(PD7);
 
     RS232_init(); // initialize RS232 interface
-    RS232_puts_p(PSTR("CarreraShark 1.2\nA = Show all data live\nC = Show only when data changes"));
+    RS232_puts_p(PSTR("CarreraShark 1.2\nA = Show all data live\nC = Show only when prog high changes"));
 
     sei();
     i = 0;
@@ -204,7 +204,7 @@
             response = 0;
             RS232_puts( s );
             RS232_putc('\n');
-            while (1) ;
+            //while (1) ;
         }
 
         if (data != 0) {
@@ -216,7 +216,7 @@
                     if (showall == 0) {
                         // compare old & new cycle
                         cycle_changed = 0;
-                        for (i=0; i<10;i++ ) if (cycle[i] != cycle_old[i]) cycle_changed = 1;
+                        for (i=0; i<10;i++ ) if ( (cycle[i] & 0xff00) != (cycle_old[i] & 0xff00) ) cycle_changed = 1;
                     }
                     if ( (showall != 0) || (cycle_changed != 0) ) {
                         for (i=0; i<10;i++ ) {

mercurial