//----------------------------------------------------------------------------- // Documentation File..: FISFool_Description.TXT //----------------------------------------------------------------------------- // Description.........: Functional description of FIS-Fool //----------------------------------------------------------------------------- // Author..............: Matthias Klumpp //----------------------------------------------------------------------------- -------------------------------------------------------------------------------- Basic Schematic: -------------------------------------------------------------------------------- Atmel AT90S2313 +----+ +-----------------+ Vcc----| R1 |-----1|!Reset (SCK) PB7|19 +----+ | (MISO)PB6|18 | (MOSI)PB5|17 GND-----||--------+--------4|XTAL2 PB4|16 C1 | | | --- | (OCI) PB3|15 +-+X1 | | +-+ | | --- | | C2 | | | GND-----||--------+--------5|XTAL1 PB2|14 | (AIN1)PB1|13 Vcc--+----+-------20|VCC (AIN0)PB0|12 | | +-10|GND | C3--- ---C4 | | (ICP) PD6|11-------------- Relay Control --- --- | | (T1) PD5| 9-------------- DATA | | | | (T0) PD4| 8-------------- CLOCK | | | | (INT1)PD3| 7 GND GND GND | (INT0)PD2| 6-------------- ENA | (TXD) PD1| 3-------+ | (RXD) PD0| 2----+ | +-----------------+ | +------ TX Data +--------- RX Data R1: 10k C1: 27p C2: 27p C3: 47u C4: 100n X1: 7.3728MHz crystal Note that X1 MUST be a 7.3728MHz crystal, because the signal timing done by the SW is tuned to that frequency. -------------------------------------------------------------------------------- Signal description: -------------------------------------------------------------------------------- Vcc...............: Positive supply voltage for uC (typically 5V) GND...............: Ground - Must be connected to "Data GND" of CDC DATA..............: Data signal to FIS CLOCK.............: Clock signal to FIS ENA...............: Enable signal to FIS Relay Control.....: Signal that is used to control any switch that selects the signal that's passed to the FIS (either radio or FIS-Fool) Output = high: - When FIS-Fool is active - FIS receives text from FIS-Fool Output = low : - When FIS-Fool was stopped - FIS receives text from radio TX Data...........: Serial data back to the serial controlling device (5V voltage level in case Vcc=5V) RX Data...........: Serial data to control the CDC-Remote (5V voltage level in case Vcc=5V) Note..............: - TX/RX Data can not be connected directly to a PC - A RS232 level converter (e.g. MAX232) has to be used for that. - Any other serial device (e.g. other micro controller) can communicate with the RX/TX data lines directly, if it uses the same Vcc. ------------------------------------------------------------------------------- RXD/TXD Communication: External serial transceiver <-> CDC Remote ------------------------------------------------------------------------------- Serial protocol parameters..: 9600 Baud 8 Data Bits 1 Stop Bit no parity LSB first Voltage level on RXD/TXD pin: Vcc ------------------------------------------------------------------------------- Serial Communication to/from "FIS Fool" Serial command Byte1 Byte2-31 (RXD) (RXD) Byte2-31 content Action ------------------------------------------------------------------------------- 0xFF none none uC outputs version info on serial TXD line: Byte1: Version info byte 1 Byte2: Version info byte 2 Byte3: Version info byte 3 Note: The version number can be calculated in the following way: Byte1: Not to be considered Version = (Byte1 * 0x10000) + (Byte2 * 0x100) + (Byte3) Example: Byte1 = 0x01 Byte2 = 0x86 Byte3 = 0xA0 Version = (0x01 * 0x10000) + (0x86 * 0x100) + (0xA0) = ( 0x10000 ) + ( 0x8600 ) + (0xA0) = 0x186A0 = 100000d = V1.0.00.0.0 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 0x10 none none uC stops sending FIS data and sets the relay outputs to connect the radio lines to the dashboard. Radio data will then be displayed. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 0x82 yes any ASCII character Static text for FIS line 1 followed by 0x00 (FIS displays only first 8 char's) 0x84 yes any ASCII character Static text for FIS line 2 followed by 0x00 (FIS displays only first 8 char's) 0x8A yes any ASCII character Scrolling text for FIS line 1 followed by 0x00 (FIS displays scrolls whole text) 0x8C yes any ASCII character Scrolling text for FIS line 2 followed by 0x00 (FIS displays scrolls whole text) General: - All ASCII data must be terminated with 0x00 - Any ASCII data longer than 30 characters will be ignored. - ASCII data shorter than 8 bytes (line length of FIS) is automatically filled with blanks. Examples: (1) Display first 8 char's in line 1 of FIS: HEX.......: 80,31,32,33,34,35,36,37,38,61,62,63,64,65,66,67,68,00 ASCII.....: --, 1, 2, 3, 4, 5, 6, 7, 8, a, b, c, d, e, f, g, h,-- FIS line1.: 12345678 FIS line2.: empty (2) Display first 8 char's in line 1 and line 2 of FIS: HEX.......: 80,31,32,33,34,35,36,37,38,00 ASCII.....: --, 1, 2, 3, 4, 5, 6, 7, 8,-- HEX.......: 81,61,62,63,64,65,66,67,68,00 ASCII.....: --, a, b, c, d, e, f, g, h,-- FIS line1.: 12345678 FIS line2.: abcdefgh (3) Display scrolling text in line 1 and line 2 of FIS: HEX.......: 80,31,32,33,34,35,36,37,38,39,00 ASCII.....: --, 1, 2, 3, 4, 5, 6, 7, 8, 9,-- HEX.......: 81,61,62,63,64,65,66,67,68,69,00 ASCII.....: --, a, b, c, d, e, f, g, h, i,-- FIS line1.: 1st 12345678 -> 2nd 23456789 ... FIS line2.: abcdefgh -> bcdefghi ...