From: ceb Date: Sun, 3 Apr 2005 22:12:24 +0000 (+0000) Subject: 3/4/5 start of program to call error codes from flash X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=f546bb20188a13afc8749842aa8dc5aa72fff27d;p=trains.git 3/4/5 start of program to call error codes from flash --- diff --git a/cebpic/README.protocol b/cebpic/README.protocol index d066005..caaf33f 100644 --- a/cebpic/README.protocol +++ b/cebpic/README.protocol @@ -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 index 0000000..5277854 --- /dev/null +++ b/cebpic/panic.asm @@ -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 + +;--------------------------------------------------------------------------- +