📄 tx_serial.inc
字号:
;;*****************************************************************************
;;*****************************************************************************
;; FILENAME: TX_SERIAL.inc
;; Version: 2.2, Updated on 2003/11/18 at 15:02:31
;; Generated by PSoC Designer ver 4.1 BETA b923 : 11 December, 2003
;;
;; DESCRIPTION: Assembler declarations for the TX8 user module for the
;; 22/24/25/26/27xxx PSoC family of devices.
;;-----------------------------------------------------------------------------
;; Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************
include "m8c.inc"
;---------------------------------------------------
; Constants for TX_SERIAL API's
;---------------------------------------------------
;mask value for global int reg bit for TX instance
TX_SERIAL_bINT_MASK: equ 40h
;TX8 interrupt address
TX_SERIAL_INT_REG: equ 0e1h
; Old equate, will be removed in future release, Do not use.
bTX_SERIAL_INT_MASK: equ 40h
;------------------------------------
; Transmitter Parity masks
;------------------------------------
TX_SERIAL_PARITY_NONE: equ 00h
TX_SERIAL_PARITY_EVEN: equ 02h
TX_SERIAL_PARITY_ODD: equ 06h
;------------------------------------
; Transmitter Status Register masks
;------------------------------------
TX_SERIAL_TX_COMPLETE: equ 20h
TX_SERIAL_TX_BUFFER_EMPTY: equ 10h
; Do not use! old style equates. Will be moved
; in future versions.
TX8_PARITY_NONE: equ 00h
TX8_PARITY_EVEN: equ 02h
TX8_PARITY_ODD: equ 06h
TX8_TX_COMPLETE: equ 20h
TX8_TX_BUFFER_EMPTY: equ 10h
;----------------------------------------------------
; Register Address Constants for TX_SERIAL
;----------------------------------------------------
TX_SERIAL_CONTROL_REG: equ 3bh ; Control register
TX_SERIAL_TX_SHIFT_REG: equ 38h ; TX Shift Register register
TX_SERIAL_TX_BUFFER_REG: equ 39h ; TX Buffer Register
TX_SERIAL_FUNC_REG: equ 38h ; Function register
TX_SERIAL_INPUT_REG: equ 39h ; Input register
TX_SERIAL_OUTPUT_REG: equ 3ah ; Output register
; end of file TX_SERIAL.inc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -