; ; TITLE 'B&O Datalink to Serial convertor' ; ; Copyright (c) 2006 Ivor Hewitt ; Licensed under the GNU GPL Version 2 or later ; LIST P=16F84 __CONFIG _WDT_OFF & _CP_OFF & _HS_OSC & _PWRTE_ON ERRORLEVEL -302 ;; beolink message processor ;; ;; listens for bang and olufsen beolink messages and relays them on as ;; serial hex strings in the format: "00 0000 00 00 00 \r\n" ;; representing 4 bits header, a series of 5 bits address and as many 8 bits message characters as necessary ;; ;; Serial protocol: 115200,N,8,1 ;; ;; Notes: ;; 1. Currently only tested with messages from a BEO4 or Ouverture ;; 2. 2-way comms to be implemented. ;; ;; Ivor Hewitt (ivor at ivor.org) ;; http://www.ivor.it ;; include "p16f84.inc" #define TXline 1 #define TXport PORTB,TXline #define TXbit (1<