SyncMOS SM39R Series Microcontroller KBI Function Usage Guide

This document is SM39R series KBI function usage method


SyncMOS SM39R Series Microcontroller KBI Function Usage Guide - cover page
Brand
SyncMOS
Category
microcontrollers
Document type
Application Note
Language
Chinese
Pages
6
File format
PDF
File size
119 KB
Published
30 October, 2023
Updated
30 October, 2023
MD5 checksum
C448DF51E4AEC283C66D88928F8254D3

About this manual

This application note describes the KBI (Keyboard Button Input) function of the SyncMOS SM39R series and lists the applicable parts SM39R16A2, SM39R12A2 and SM39R08A2. It explains how four Port 0 I/O pins can be configured as KBI inputs with independent flags and a shared interrupt vector at 0x5B, and notes that the function can be used for a 2x2 matrix keypad scan or other applications.

The note documents the KBLS, KBE, KBF, KBD, IEN1 and IRCON registers, including bit definitions, trigger-level selection, de-bounce settings and interrupt enable/flag handling. It also provides a KBI interrupt vector table and C and assembly reference programs for initializing KBI and handling KBI interrupts. This manual is written in Chinese.

What's inside

  • Applicable Products
  • KBI Usage Instructions
  • KBI Registers
  • KBLS Register
  • KBE Register
  • KBF Register
  • KBD Register
  • IEN1 and IRCON Registers
  • Interrupt Vector Table
  • KBI Interrupt Reference Program

Specifications

KBI I/O count4 I/O
KBI interrupt vector0x5B
Trigger levelProgrammable high or low
Default de-bounce time320 ms
KBLS register address93h
KBE register address94h
KBF register address95h
KBD register address96h

Frequently asked questions

How many I/O pins can be configured for KBI?

The document states that four I/O pins on Port 0 can be configured for KBI.

Can the KBI trigger level be set to high or low?

Yes, the trigger level can be set by program to low level or high level.

What interrupt vector address does KBI use?

KBI uses the shared interrupt vector address 0x5B.

How are the KBI flags cleared?

The KBF flags must be cleared by software.

Download PDF (119 KB)

More SyncMOS Manuals


View all SyncMOS manuals →