⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sub_power_on_uart_display.s

📁 该文件包含30F的电机控制程序
💻 S
字号:
;START_HEADER
;
; dsPIC30F6014 Demo Source File
; (c) Copyright 2005 Microchip Technology, All rights reserved
;
; --------------------------------------------------------------------------
; File Revision History:
; --------------------------------------------------------------------------
;
; $Log: sub_power_on_uart_display.s,v $
; Revision 1.3  2005/04/04 23:38:38  VasukiH
; Updated comments in header
;
; Revision 1.2  2005/04/04 23:14:15  VasukiH
; Updates for MPLAB C30 v1.30 compatiblity
;
; Revision 1.1.1.1  2003/08/23 00:38:33  VasukiH
; First import of demo source into CVS Repository
;
;
;
; --------------------------------------------------------------------------
;
; Software and Development Tools Info:
; --------------------------------------------------------------------------
; Tool                          Version
; --------------------------------------------------------------------------
; MPLAB IDE                     7.0
; MPLAB C30 Toolsuite           1.30
; dsPICDEM(TM) Processor Board  1.10
; --------------------------------------------------------------------------
;
; File Notes:
; 1. Displays the following message upon device power-up on a HyperTerminal
;    session window running at "57600 baud 8-N-1, No Flow Control"
;    configuration:
;    "Press Switch S1 on the expansion board to start demo!"
;
;END_HEADER


.include "p30fxxxx.inc"


.section .data
.global reset_string
reset_string:
                .byte 0x0A, 0x0D
                .ascii "Power-On Reset"
                .byte 0x0A, 0x0D
                .asciz "Press Switch S1 on the expansion board to start demo!"

.section .text
.global _sub_power_on_uart_display

_sub_power_on_uart_display:

        push.d  w0
        mov     #reset_string, w1
        mov     w1, U2TXPtr
        mov.b   [w1], w0
        mov.b   WREG, U2TXREG
        pop.d   w0
        return

.end



        

⌨️ 快捷键说明

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