參數(shù)資料
型號: 68HC05K0
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁數(shù): 8/12頁
文件大?。?/td> 111K
代理商: 68HC05K0
MOTOROLA
8
AN463/D
Listing
0026 ***************************************************************
0027 * INFRA RED REMOTE CONTROL FOR K0,K1 *
0028 ***************************************************************
0029 * WRITTEN BY A.BRESLIN 13.1.92 *
0030 ***************************************************************
0031 * THIS PROGRAM READS AND ENCODES A KEY FROM A 24 KEY KEYBOARD *
0032 * TO A FORM OF BIPHASE PULSE CODE MODULATION (PCM) FOR INFRA *
0033 * RED TRANSMISSION. IT USES THE TRANSMISSION PROTOCOL OF THE *
0034 * MC144105 IR REMOTE CONTROL TRANSMITTER *
0035 ***************************************************************
0036
0037
0038 0000 porta equ 00
0039 0001 portb equ 01
0040 0004 ddra equ 04
0041 0005 ddrb equ 05
0042 0008 tcsr equ $08
0043 0010 papd equ $10
0044
0045 00e0 org $e0
0046
0047 00e0 keyst1 rmb 1 ; initial code from keyboard
0048 00e1 keyst2 rmb 1 ; keycode
0049 00e2 keyst3 rmb 1 ; code transmitted
0050 00e3 dflag rmb 1 ; flag for last and 9th bits
0051
0052
0053 **************************************************************
0054 * THE PORTS ARE SET UP USING PORTA 0-3 AS INPUTS MAKING USE *
0055 * OF THE INTERNAL INTERUPT GENERATION ON THESE I/0 LINES. *
0056 * STOP MODE IS ENTERED UNTIL A KEY IS PRESSED *
0057 **************************************************************
0058
0059 0200 org $200
0060
0061 0200 9a start cli
0062 0201 ad 04 wpres bsr setup
0063 0203 9c rsp
0064 0204 8e stop
0065 0205 20 fa bra wpres
0066
0067 0207 a6 f0 setup lda #$f0 ; porta 0-3 inputs
0068 0209 b7 04 sta ddra ; 4-7 as outputs
0069 020b b7 00 sta porta ; set outputs high
0070 020d b7 10 sta papd ; 0-3 pulldown
0071 020f a6 03 lda #$03 ; portb 0-1 outputs
0072 0211 b7 05 sta ddrb
0073 0213 a6 01 lda #$01 ; set portb 0 high
0074 0215 b7 01 sta portb
0075 0217 81 rts
0076
0077
相關(guān)PDF資料
PDF描述
68HC05PL4 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC05PL4B 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705PL4 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705PL4B 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC908JB8FS Freescale Semiconductor, Inc.
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
68HC05K3DW 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC05K3P 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC05L5 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:General Release Specification
68HC05M68HC 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:HCMOS Microcontroller Unit
68HC05P4A 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:SPECIFICATION (General Release)