DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

UPD780076GC-XXX-AB8 View Datasheet(PDF) - NEC => Renesas Technology

Part Name
Description
Manufacturer
UPD780076GC-XXX-AB8
NEC
NEC => Renesas Technology 
UPD780076GC-XXX-AB8 Datasheet PDF : 415 Pages
First Prev 401 402 403 404 405 406 407 408 409 410 Next Last
CHAPTER 13 APPLICATIONS OF KEY INPUT
(2) Example of use
EXTRN KEYDATA,CHATCT,KEYIN
EXTBIT KEYCHG
VETM3 CSEG
DW
AT 1EH
INTTM3
MAINDAT DSEG SADDR
CT5MS: DS
1
.
.
..
TMC2=#00100110B
CLR1 TMMK3
CT5MS=#3
; Sets vector address of watch timer
PM3=#00000000B
SET1 PUO.4
CHATCT=#3
.
.
.
.
if_bit(KEYCHG)
CLR1 KEYCHG
; Key input processing
endif
...
.
;**********************************************
;
Watch timer interrupt processing
;
Interval time: 1.95 ms
;**********************************************
INTTM3:
...
.
DBNZ CT5MS,$RTNTM3
MOV
CT5MS,#3
CALL !ANKEYIN
RTNTM3:
.
...
RETI
; Sets P3 in output mode
; Pulls P4 up
; Initial setting of chattering counter
; Key changed?
; 1.95 ms interrupt
; 1.95 ms × 3 elapses
375

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]