參數(shù)資料
型號: PSD311L
英文描述: Field Programmable Microcontroller Peripherals(可編程邏輯,16K位SRAM,19個可編程I/O,通用PLD有12個輸入)
中文描述: 現(xiàn)場可編程微控制器外圍設(shè)備(可編程邏輯,16K的位的SRAM,19余個可編程輸入/輸出,通用PLD的有12個輸入)
文件頁數(shù): 5/18頁
文件大?。?/td> 179K
代理商: PSD311L
PSD3XX – Application Note 020
1-177
Table Look-up
and
Interpolation
RSEG at 22H
IN–VAL: dsb 1
TABLE_LOW: dsw 1
TABLE_HIGH: dsw 1
IN_DIF: dsw 1
IN_DIFB: equ IN_DIF :byte
TAB_DIF: dsw 1
OUT: dsw 1
RESULT: dsw 1
OUT_DIF: dsl 1
;Actual Input Value
;Upper Input–Lower Input
;Upper Output– Lower Output
;Delta Out
CSEG at 2080H
LD
SP, #100h
Look:
LDB
SHRB
ANDB
AL, IN_VAL
AL, #3
AL, #11111110B
;Load temp with Actual Value
;Divide the byte by 8
;Insure AL is a word address
;This effectively divides AL by 2
;so AL = IN_VAL/16
;Load byte AL to word AX
LDBZE AX, AL
LD
TABLE_LOW, TABLE [AX]
;TABLE_LOW is loaded with the value
;in the table at table location AX
LD
TABLE_HIGH, (TABLE+2)[AX]
;TABLE_HIGH is loaded with the value
;in the table at table loc. AX+2
;(The next value in the table)
SUB
TAB_DIF, TABLE_HIGH, TABLE_LOW
;TAB_DIF=TABLE_HIGH – TABLE_LOW
ANDB
IN_DIFB, IN_VAL, #0FH
;IN_DIFB=least significant 4 bits of
;IN_VAL
;Load byte IN_DIFB to word IN_DIF
LDBZE IN_DIF,IN_DIFB
MUL
OUT_DIF, IN_DIF, TAB_DIF
;Output_difference =
;Input_difference * Table_difference
;Divide by 16 (2**4)
SHRAL OUT_DIF, #4
ADD
OUT, OUT_DIF, TABLE_LOW
;Add output difference to output
;generated with truncated IN_VAL as input
;Round to 12–bit answer
;Round up if Carry = 1
SHRA
ADDC
OUT, #4
OUT, ZERO
No_Inc:
ST
BR
OUT, RESULT
Look
;Store OUT to RESULT
;Branch to “Look”
CSEG
at 2100h
Table:
DCW
DCW
DCW
DCW
DCW
0000H, 2000H, 3400H, 4C00H ;A random function
5D00H, 6A00H, 7200H, 7800H
7B00H, 7D00H, 7600H, 6D00H
5D00H, 4B00H, 3400H, 2200H
1000H
END
相關(guān)PDF資料
PDF描述
PSD311 Field Programmable Microcontroller Peripherals(可編程邏輯,16K位SRAM,19個可編程I/O,通用PLD有12個輸入)
PSD312-15IB Field-Programmable Peripheral
PSD312-20IB Field-Programmable Peripheral
PSD313-90A Hi-Rel Fixed Voltage Low Dropout 3-Terminal Negative Regulator; Qualified Part Number similar to OM2990-5STM
PSD313-90KA Hi-Rel Fixed Voltage Low Dropout 3-Terminal Negative Regulator; A OM2990-5STM with Standard Packaging
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PSD311L-15J 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Field-Programmable Peripheral
PSD311L-15JI 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Field-Programmable Peripheral
PSD311L-15LI 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Field-Programmable Peripheral
PSD311L-15LM 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Field-Programmable Peripheral
PSD311L-15U 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Field-Programmable Peripheral