BC6040EC 40-key Keyboard Driver

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Price:¥2.85   

The BC6040EC is a single-chip, 40-key keyboard interface IC capable of connecting directly to a 5×8 keyboard matrix. It supports Normally Open (NO) or Normally Closed (NC) keys, combinations of both, or standard switches. Supported key types include metal contact switches and conductive rubber buttons. The BC6040EC facilitates the easy implementation of any type or quantity of combination keys and long-press functions.

Key Features:

  • Supports NO/NC keys

  • Supports an arbitrary number of key combinations

  • Supports arbitrary long-press detection

  • Single-wire interface (UART, 9600 Baud)

  • Direct key value output

  • Uses an inexpensive 455K ceramic resonator

  • Operating Voltage: 2.0–5.5V

  • Operating Current: 20µA (@2.5V)

  • Package: SSOP20

Interface & Connectivity: The BC6040EC uses a UART serial interface to output key values directly, simplifying program processing. Requiring only a single I/O line, it easily interfaces with various MCUs and PCs. It also allows for simple implementation of optocoupler isolation or conversion to an RS-485 interface for remote keyboard applications.

Software Support:

  • C Driver Library: A C-language driver library is provided. Using this library, users can implement a full-featured keyboard interface—including functions like long-press and key combinations—with fewer than 10 lines of code.

  • Arduino Compatible: The Arduino driver library is intergrated in the Official Arduino IDE Library Manager. Simply search for the chip part number and install.

Low Power Consumption: The BC6040EC features extremely low power consumption. At a supply voltage of 2.5V, it requires only 20µA. It can operate continuously for over 5 years on two AA batteries, making it suitable for various battery-powered devices.

Suggested Retail Price (MSRP):

  • 1000+ units: ¥2.85

  • 100–999 units: ¥3.40

  • 50–99 units: ¥3.99

  • 10–49 units: ¥4.49

  • 1–9 units: ¥5.99

Related Downloads

Related Products

BC6301 Key Matrix(5x6) Adapter Board

The BC6301 shares identical interface and protocol with the BC6040, differing only in the number of supported keys.

This is a complete BC6301 matrix keyboard interface circuit that requires only a single serial line to connect to the host. It features a breakout pin connector for a 6-row by 5-column keyboard matrix. The kit includes a 4×4 membrane keypad, enabling plug-and-play for microcontrollers (MCUs) and Arduino.

Key values are output directly via the UART port. In the simplest applications, the host side requires almost no programming, executing operations directly based on the received key values.

Typical Applications Include:

  • Evaluation: Evaluating the functionality of the BC6xxx series chips.

  • Arduino Integration: Functioning as an Arduino keyboard when paired with the driver library (search for “BC6301” in the Arduino IDE Library Manager to install).

  • PC Peripherals: Connecting to a computer via a USB-to-Serial adapter to serve as a dedicated keyboard for PC applications.

  • Prototyping: Serving as a development board for MCU systems, eliminating the need for custom PCB fabrication during the prototyping phase.

Retail Price: Kit starting from ¥19

Previous
Next
Keyboard Monitor
Show keyboard status in real time
BC6xxx BC7xxx Development Helper Software

When connected to a computer via a USB-to-Serial converter, this software allows you to view the current status of the BC6040 keyboard in real-time. It includes a serial data interpreter that displays the raw data actually received by the serial port alongside its interpreted meaning.

Portable Design: No installation is required. It is a single executable file that can run directly from a USB drive—simply unzip and launch.

Key Features:

  • View data transmitted by the keyboard in real-time.

  • Visually monitor the keyboard’s status.

  • Available for free download.