FAQ
  • There is a part I want to describe in binary, and when I describe it in an expression such as 0b0101, it does not compile.
    How should I describe it in binary notation?
    • Binary notation is not supported.
      Please prepare the following macros and substitute them.
      Macro definition example:
      #define BIT8 (b7, b6, b5, b4, b3, b2, b1, b0) \\
      ((b7 << 7) | (b6 << 6) | (b5 << 5) | (b4 << 4) | (b3 << 3) | (b2 << 2) | (b1 << 1) | b0)
      #define BIT16 (b15, b14, b13, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1, b0) \\
      ((BIT8 (b15, b14, b13, b12, b11, b10, b9, b8) << 8) | \\
      BIT8 (b7, b6, b5, b4, b3, b2, b1, b0))
      Example of use:
      var8 = BIT8 (0,1,1,1, 0,1,0,1); / * = 0x75 * /
      var16 = BIT16 (0,0,0,0, 0,0,0,1, 0,0,1,0, 0,0,1,1); / * = 0x123 * /

      Related Products: ML610(Q)40x, ML610(Q)42x, ML610(Q)47x, ML610(Q)48x, ML610Q10x, ML610Q11x, ML610Q17x, ML610Q30x, ML610Q35x, ML610Q36x, ML610Q38x, ML610Q41x, ML610Q43x, ML610Q46x, ML620Q13x, ML620Q15x, ML620Q416/ML620Q418, ML620Q503H/ML620Q504H/ML620Q506H, ML62Q12xx, ML62Q13xx, ML62Q14xx, ML62Q15xx/ML62Q18xx, ML62Q16xx, ML62Q17xx

    • Products: General-purpose MCUs (16bit) , Speech Playback MCUs (8bit)