User's Manual

©Ehong Technology Co.,Ltd 2014-2019. Page 10 of 14
6.2 PWMs
BT Module has 5 PWM.
PWM1: Cold light LED;
PWM2: Warm light LED;
PWM3: RED LED;
PWM4: Green LED;
PWM5: Blue LED.
The PWM1, PWM2 is default high level. Prevent the light from turning on after power on. Need
MOS to logic transformation.
6.3 UART
The MC16 embeds UART to implement full-duplex transmission and reception. Both TX and
RX interface are 4-layer FIFO interface. Hardware flow control is also support via RTS and
CTS.
Figure 3 Connection To Host Device
NoteThe maximum baud rate is 2400 baud during deep sleep.
6.4 I2C Master/ Slave
The MC16 embeds I2C hardware module, which could act as Master mode or Slave mode.
I2C is POPULAR inter-IC interface requiring only 2 bus lines, a serial data line (SDA) and a
serial clonk (SCL). M030 I2C module supports standard mode (100kbps), Fast-mode
(400kbps), Fast-mode plus (1Mbps) and High-speed mode (3.4Mbps) with restriction that
system clock must be by at least 10x of data rate. I2C module of the M030 acts as Slave
mode by default. I2C slave mode supports two sub modes including DMA and Mapping mode.
6.5 SPI
The MC16 embed SPI, which could act as Master mode or Slave mode. SPI is high-speed, full-
duplex and synchronous communication bus requiring 4bus lines including a chip select (CS)
line, a data input (DI) line, a data output (DO)line and a clock (CK) line. SPI for the M030 acts as
slave mode by default. SPI Slave mode support DMA.
EH-MC16 Data Sheet