chiark / gitweb /
3/4/5 start of program to call error codes from flash
authorceb <ceb>
Sun, 3 Apr 2005 22:12:24 +0000 (22:12 +0000)
committerceb <ceb>
Sun, 3 Apr 2005 22:12:24 +0000 (22:12 +0000)
cebpic/README.protocol
cebpic/panic.asm [new file with mode: 0644]

index d0660057f09ba4637f6afa79445ecc614cd531b4..caaf33fb8843fb6fdb6a88e86ac8a7557d8475bd 100644 (file)
@@ -32,6 +32,12 @@ Byte 20 0001h
                                0 otherwise
                0-6             currently unused, set to 0
 
+Bytes 30 0000h - 3f ffffh
+               reserved for error messages, each 8 bytes long 
+               
+
+
+
 
 I2C
 ===
diff --git a/cebpic/panic.asm b/cebpic/panic.asm
new file mode 100644 (file)
index 0000000..5277854
--- /dev/null
@@ -0,0 +1,16 @@
+; to start, need to write into flash, starting at 30 0000h:
+; 10 10 10 00 | 1110 1110 | 1110 00 10 | 10 10
+
+;---------------------------------------------------------------------------
+; boilerplate:
+
+        include         /usr/share/gputils/header/p18f458.inc
+        radix           dec 
+
+;---------------------------------------------------------------------------
+; error messages
+
+error_SOS      equ     0       ; msg 0 = SOS
+
+;---------------------------------------------------------------------------
+