; ; ******************************************* ; ; * SUBROUTINE ASCII TRANSMIT SAMPLE TABLE * ; ; ******************************************* ; ; Transmit table of 'Sample time' TAB 'Sample value' ; ; subroutine calls: - ; Call registerbank: don't care ; Return registerbank: BANK0 ; ; ************************************************* ; ; * SUBROUTINE ASCII TRANSMIT CURRENT SAMPLE * ; ; ************************************************* ; ; Transmit current sample time and current sample value into ascii format ; ; ascii record definition for one sample at timebase equal or slower than 1s/div: ; ; current time TAB current sample CR LF ; ; ************************************************* ; ; * SUBROUTINE BINARY TRANSMIT CURRENT SAMPLE * ; ; ************************************************* ; ; Transmit current sample time and current sample value into binary format ; ; binary record definition (11-bytes) for one sample at timebase equal or slower than 1s/div: ; ; [2-bytes binary record type] : A'B' + A'S' ; [16-bit length record] : H'0B' + H'00' ; [triggermode + timebase] : BIT7,BIT6 = TRIGGERMODE - BIT6...BIT0=TIMEBASE ; [hold + memory + ac/dc + probesetting + sensitivity] : BIT7=HOLD - BIT6=MEMORY - BIT5=AC/DC - BIT4=PROBE X1/X10 - BIT3...BIT0=VOLT/DIV ; [8-bits dc-reference] ; [24-bit sample time] : [LOWEST BYTE][MID BYTE][HIGHEST BYTE] (timeresolution 0.1s) ; [8-bit sample value] ; ; ************************************************* ; ; * SUBROUTINE BINARY TRANSMIT OF ALL SAMPLES * ; ; ************************************************* ; ; Transmit setting and all sample values into binary format ; ; binary record definition (266-bytes) for all samples ; ; [2-bytes binary record type] : A'B' + A'A' ; [16-bit length record] : H'0A' + H'01' ; [triggermode + timebase] : BIT7,BIT6 = TRIGGERMODE - BIT6...BIT0=TIMEBASE ; [hold + memory + ac/dc + probesetting + sensitivity] : BIT7=HOLD - BIT6=MEMORY - BIT5=AC/DC - BIT4=PROBE X1/X10 - BIT3...BIT0=VOLT/DIV ; [8-bits dc-reference] ; [8-bit start address] : H'00' ; [8-bit realtimesample pointer]: REALTIMESAMPLE_POINTER ; [8-BIT unused] : H'00' ; 256 x [8-bit sample value] ; ; ************************************************** ; ; * SUBROUTINE BINARY TRANSMIT OF REALTIME SAMPLES * ; ; ************************************************** ; ; Transmit setting and sample values of realtime sampling into binary format ; ; binary record definition ((10+numberofsamples)bytes) for sample block ; ; [2-bytes binary record type] : A'B' + A'R' ; [16-bit length record] : [LOW BYTE][HIGH BYTE] (10 + REALTIMESAMPLE_POINTER - SEND_SAMPLE_START_ADDRESS) ; [triggermode + timebase] : BIT7,BIT6 = TRIGGERMODE - BIT6...BIT0=TIMEBASE ; [hold + memory + ac/dc + probesetting + sensitivity] : BIT7=HOLD - BIT6=MEMORY - BIT5=AC/DC - BIT4=PROBE X1/X10 - BIT3...BIT0=VOLT/DIV ; [8-bits dc-reference] ; [8-bit start address] : SEND_SAMPLE_START_ADDRESS ; [8-bit end address+1] : SEND_SAMPLE_END_ADDRESS+1 ; [8-BIT unused] : H'00' ; number of samples x [8-bit sample value] ; ; *********************************************************** ; ; * SUBROUTINE TRANSMIT SCREENDUMP AS WINDOWS BITMAP FORMAT * ; ; *********************************************************** ; ; Transmit screendump into windows 2-color bmp-format (192 x 112 pixels) ; TRANSMIT_SCREENDUMP_AS_BITMAP BITMAPHEADER_TABLE 'BM' H'424D',H'BE0A',H'0000',H'0000',H'0000',H'3E00',H'0000',H'2800' H'0000',H'C000',H'0000',H'7000',H'0000',H'0100',H'0100',H'0000' H'0000',H'800A',H'0000',H'0000',H'0000',H'0000',H'0000',H'0200' H'0000',H'0200',H'0000',H'0000',H'0000',H'FFFF',H'FFFF' ; ***************************************************** ; * TRANSMIT CALIBRATION SEQUENCE FOR PCG10 GENERATOR * ; ***************************************************** ; ; ; Subroutine Call: - ; Input parameter: - ; Output parameter: - TRANSMIT_CAL_PCG10_SEQUENCE STRINGTABLE_CAL_PCG10_TRANSMIT ; "2 2400 0.0 5.000 0" ; "2 2400 0.0 5.000 0" ; "2 2400 2.5 5.000 0" ; "1 2400 0.0 7.071 0" ; "1 2400 0.0 1.414 0" ; "1 2400 0.0 1.414 0" ; "1 2400 0.0 0.354 0" ; "1 2400 0.0 0.354 0" ; "1 2400 0.0 7.071 0" ; "2 2400 0.0 3.000 0" ; "2 2400 0.0 5.000 0" ; "2 2400 0.0 5.000 0" ; "2 2400 0.0 5.000 0" ; "2 2400 0.0 5.000 0" ; ****************************************************************************************** ; ****************************************************************************************** ; END RS232C COMMUNICATION ROUTINES ; ****************************************************************************************** ; ******************************************************************************************