NMRA ==== NMRA packets from the computer to the PIC should consist of 8-bit bytes. bits 6-0 contain the data to be sent to the track bit 7 is 1 if the byte is the last in the packet and 0 otherwise The first 14 data bits in the NMRA packet should be 1s. (i.e. the first two complete bytes should be 01111111 01111111) (packets beginning with some other sequence are reserved for non-NMRA messages) Maximum NMRA message length = 15 bytes (i.e. 105 bits). Messages longer than this will cause things to get confused at the moment. baud rate 9600 most significant bit first 8n1 Flash memory ID locations ========================= Byte 20 0000h bits 7-5 = 000 bits 4-0 PIC number (guaranteed to be in range 0..31 inclusive) Byte 20 0001h bit 7 1 for the main PIC (#0) 0 otherwise 0-6 currently unused, set to 0 I2C === (slave addresses will be 10xxxxx where xxxxx=PIC number above)