ex3a.asm

来自「nRF24E1 sample transmit & receiver」· 汇编 代码 · 共 32 行

ASM
32
字号
;= ex3a.asm ====================================================================
;
; Copyright (C) 2003, 2004 Nordic Semiconductor
;
; This file is distributed in the hope that it will be useful, but WITHOUT
; WARRANTY OF ANY KIND.
; 
; Author(s): Ole Saether
;
; DESCRIPTION:
;
;   PWM example program.
;
;   The functionality is the same as in ex3c.c.
;
; ASSEMBLER:
;
;   You need as31.exe to assemble this program. It can be downloaded from this
;   web page: http://www.pjrc.com/tech/8051/
;
; $Revision: 3 $
;
;===============================================================================
                 .equ    P0_ALT,     0x95
                 .equ    PWMCON,     0xa9
                 .equ    PWMDUTY,    0xaa

                 mov     P0_ALT, #0x80   ; Enable PWM output
                 mov     PWMCON, #0xc0   ; Enable 8 bit PWM with min prescaler
                 mov     PWMDUTY, #10    ; High 10 out of 255 periods
here:            sjmp    here

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?