Data Sheet

GPIO and interfaces
Every GPIO can be configured as Input, Output and Interrupt, and can also be configured
as weak pull-up, strong pull-up, weak pull-low or floating mode.
Except ADC, all interfaces are possible to map to different GPIOs by software. The
interface including:
1. I2C: it supports 100KHz and 400KHz modes, 7-bit and 10-bit address
2. I2S: either master or slave mode can be enabled
3. UART: Asynchronous Rx/Tx, up to almost 1Mbps, supports parity and 9 bit-data
4. PWM: 6 channels PWM is multiplex with GPIO, and the frequency is base on the main
clock (16MHz) as the following equation:
Freq_PWM=16MHz/(N_prescaler x N_top_count);
where the value in N_top_count register controls the frequency
and the Duty cycle is controlled by the following equation:
Duty_cycle_PWM=N_threshold/N_top_count
where the value in N_threshold, together with N_top_count, control
the duty cycle
5. Quadrature decoder: it can interface and decode signal from quadrature-encoded
sensor, both mechanical and optical sensors. Input debounce filters is included.
6. Keyscan: it supports up to 16 rows by 18 columns key matrix. Multi-key-press support
and de-bounce time is configurable.
7. Analog to Digital converter (ADC) : Up to 10 12-bit SAR ADC, and two inputs are with
PGA, which provides a software configurable 0 to 42dB with 3dB steps.
8. PGA provides 42dB gain range from 0dB to 42dB in 3dB steps.
PRBMD02 DATASHEET 1.10
K-SOLUTION
15