brymen_bm869s_ir_cable

Brymen 869s Serial PC-Comm DIY Cable.
git clone htps://git.e1e0.net/brymen_bm869s_ir_cable.git
Log | Files | Refs | README

bm869s.h (1957B)


      1 // Credit to user 'jesuscf' of the EEVBlog Forum.
      2 // The meaning of each of the bytes received from the multimeter
      3 // Byte 0
      4 #define AUTO 0x01
      5 #define R    0x02
      6 #define C    0x04
      7 #define H    0x08
      8 #define DC   0x10
      9 #define MAX  0x20
     10 #define MIN  0x40
     11 #define AVG  0x80
     12 // Byte 1
     13 #define AC_1         0x01
     14 #define T1           0x02
     15 #define temp_minus   0x04
     16 #define T2_1         0x08
     17 #define bar_scale    0x10
     18 #define bar_negative 0x20
     19 #define VFD          0x40
     20 #define negative_1   0x80
     21 // Segments for all digits
     22 #define seg_p 0x01 // Usually the dot of the previous number
     23 #define seg_e 0x02
     24 #define seg_f 0x04
     25 #define seg_a 0x08
     26 #define seg_d 0x10
     27 #define seg_c 0x20
     28 #define seg_g 0x40
     29 #define seg_b 0x80
     30 // Byte 2: 7-SEG 1
     31 #define DELTA  0x01
     32 // Byte 3: 7-SEG 2
     33 // Byte 4: 7-SEG 3
     34 // Byte 5: 7-SEG 4
     35 // Byte 6: 7-SEG 5
     36 // Byte 7: 7-SEG 5
     37 #define V_1 0x01
     38 // Byte 8
     39 #define u_2        0x01 // u as in micro
     40 #define m_2        0x02 // m as in milli
     41 #define A_2        0x04
     42 #define ma20       0x08
     43 #define negative_2 0x10
     44 #define AC_2       0x20
     45 #define T2_2       0x40
     46 #define battery    0x80
     47 // Byte 9: 7-SEG 7
     48 #define sound 0x01
     49 // Byte 10: 7-SEG 8
     50 // Byte 11: 7-SEG 8
     51 // Byte 12: 7-SEG 8
     52 // Byte 13
     53 #define M_2   0x01
     54 #define k_2   0x02
     55 #define Hz_2  0x04
     56 #define V_2   0x08
     57 #define S     0x10
     58 #define FARAD 0x20
     59 #define n     0x40
     60 #define A_1   0x80
     61 // Byte 14
     62 #define Hz_1 0x01
     63 #define dB   0x02
     64 #define m_1  0x04
     65 #define u_1  0x08
     66 #define OHM  0x10
     67 #define M_1  0x20
     68 #define k_1  0x40
     69 #define DUTY 0x80
     70 
     71 // The codes for some of letters and the numbers
     72 #define LETTER_C 0x1e
     73 #define LETTER_d 0xf2
     74 #define LETTER_F 0x4e
     75 #define LETTER_i 0x20
     76 #define LETTER_L 0x16
     77 #define LETTER_o 0x72
     78 #define BLANK    0x00
     79 #define DASH     0x40
     80 #define NUMBER_0 0xbe
     81 #define NUMBER_1 0xa0
     82 #define NUMBER_2 0xda
     83 #define NUMBER_3 0xf8
     84 #define NUMBER_4 0xe4
     85 #define NUMBER_5 0x7c
     86 #define NUMBER_6 0x7e
     87 #define NUMBER_7 0xa8
     88 #define NUMBER_8 0xfe
     89 #define NUMBER_9 0xfc