📄 baud.inc
字号:
;;*****************************************************************************
;;*****************************************************************************
;; FILENAME: Baud.inc
;; Version: 2.2, Updated on 2003/11/10 at 16:38:18
;; Generated by PSoC Designer ver 4.1 BETA b923 : 11 December, 2003
;;
;; DESCRIPTION: Assembler declarations for the Counter8 user module interface
;; for the 22/24/27/28xxx PSoC family of devices
;;-----------------------------------------------------------------------------
;; Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************
include "m8c.inc"
;--------------------------------------------------
; Constants for Baud API's.
;--------------------------------------------------
Baud_CONTROL_REG_START_BIT: equ 0x01 ; Control register start bit
Baud_INT_REG: equ 0x0e1
Baud_INT_MASK: equ 0x20
;--------------------------------------------------
; Constants for Baud user defined values
;--------------------------------------------------
Baud_PERIOD: equ 0x19
Baud_COMPARE_VALUE: equ 0x01
;--------------------------------------------------
; Register Address Constants for Baud
;--------------------------------------------------
Baud_COUNTER_REG: equ 0x34 ; DR0 Counter register
Baud_PERIOD_REG: equ 0x35 ; DR1 Period register
Baud_COMPARE_REG: equ 0x36 ; DR2 CompareValue register
Baud_CONTROL_REG: equ 0x37 ; Control register
Baud_FUNC_REG: equ 0x34 ; Function register
Baud_INPUT_REG: equ 0x35 ; Input register
Baud_OUTPUT_REG: equ 0x36 ; Output register
;--------------------------------------------------
; Baud Macro 'Functions'
;--------------------------------------------------
macro Baud_Start_M
or reg[Baud_CONTROL_REG], Baud_CONTROL_REG_START_BIT
endm
macro Baud_Stop_M
and reg[Baud_CONTROL_REG], ~Baud_CONTROL_REG_START_BIT
endm
macro Baud_EnableInt_M
M8C_EnableIntMask Baud_INT_REG, Baud_INT_MASK
endm
macro Baud_DisableInt_M
M8C_DisableIntMask Baud_INT_REG, Baud_INT_MASK
endm
; end of file Baud.inc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -