?? ex3a.asm
字號:
;= 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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -