亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fg_ctrl.psm

?? 和picoblaze完全兼容的mcu ip core
?? PSM
?? 第 1 頁 / 共 5 頁
字號:
                       ; KCPSM3 Program - Control and calculation for Frequency Generator design using the
                       ;                 Spartan-3E Starter Kit.
                       ;
                       ; Interfaces with the rotary encoder and LCD display to enable a frequency to be set.
                       ; Converts the BCD frequency value into a binary integer and then performs the high
                       ; precision calculation necessary to derive the control numbers required by the high
                       ; performance Direct Digital Synthesis (DDS) circuit implemented in hardware.
                       ;
                       ; LEDs are connected and used as edit mode indicators.
                       ;
                       ; Substantial comments are included in line with the code below and should be used
                       ; in conjunction with the documentation provided with the complete reference design.
                       ;
                       ;
                       ;
                       ; Ken Chapman - Xilinx Ltd
                       ;
                       ; Version v1.00 - 13th July 2006
                       ;
                       ;**************************************************************************************
                       ;Port definitions
                       ;**************************************************************************************
                       ;
                       ;
                       ;
                       CONSTANT LED_port, 80               ;8 simple LEDs
                       CONSTANT LED0, 01                   ;     LED 0 - bit0
                       CONSTANT LED1, 02                   ;         1 - bit1
                       CONSTANT LED2, 04                   ;         2 - bit2
                       CONSTANT LED3, 08                   ;         3 - bit3
                       CONSTANT LED4, 10                   ;         4 - bit4
                       CONSTANT LED5, 20                   ;         5 - bit5
                       CONSTANT LED6, 40                   ;         6 - bit6
                       CONSTANT LED7, 80                   ;         7 - bit7
                       ;
                       ;
                       CONSTANT rotary_port, 00            ;Read status of rotary encoder
                       CONSTANT rotary_left, 01            ; Direction of last move Left=1 Right=0  - bit0
                       CONSTANT rotary_press, 02           ;     Centre press contact (active High) - bit1
                       ;
                       ;
                       ;LCD interface ports
                       ;
                       ;The master enable signal is not used by the LCD display itself
                       ;but may be required to confirm that LCD communication is active.
                       ;This is required on the Spartan-3E Starter Kit if the StrataFLASH
                       ;is used because it shares the same data pins and conflicts must be avoided.
                       ;
                       CONSTANT LCD_output_port, 40        ;LCD character module output data and control
                       CONSTANT LCD_E, 01                  ;   active High Enable        E - bit0
                       CONSTANT LCD_RW, 02                 ;   Read=1 Write=0           RW - bit1
                       CONSTANT LCD_RS, 04                 ;   Instruction=0 Data=1     RS - bit2
                       CONSTANT LCD_drive, 08              ;   Master enable (active High) - bit3
                       CONSTANT LCD_DB4, 10                ;   4-bit              Data DB4 - bit4
                       CONSTANT LCD_DB5, 20                ;   interface          Data DB5 - bit5
                       CONSTANT LCD_DB6, 40                ;                      Data DB6 - bit6
                       CONSTANT LCD_DB7, 80                ;                      Data DB7 - bit7
                       ;
                       ;
                       CONSTANT LCD_input_port, 01         ;LCD character module input data
                       CONSTANT LCD_read_DB4, 10           ;    4-bit           Data DB4 - bit4
                       CONSTANT LCD_read_DB5, 20           ;    interface       Data DB5 - bit5
                       CONSTANT LCD_read_DB6, 40           ;                    Data DB6 - bit6
                       CONSTANT LCD_read_DB7, 80           ;                    Data DB7 - bit7
                       ;
                       ;
                       ;
                       ;DDS control ports
                       ;
                       ;DDS control word is 32-bits
                       ;
                       CONSTANT DDS_control0_port, 02      ; dds_control_word(7:0)
                       CONSTANT DDS_control1_port, 04      ; dds_control_word(15:8)
                       CONSTANT DDS_control2_port, 08      ; dds_control_word(23:16)
                       CONSTANT DDS_control3_port, 10      ; dds_control_word(31:24)
                       ;
                       ;Frequency scaling control word is 5-bits
                       ;
                       CONSTANT DDS_scaling_port, 20       ; dds_scaling_word(4:0)
                       ;
                       ;
                       ;**************************************************************************************
                       ;Special Register usage
                       ;**************************************************************************************
                       ;
                       ;**************************************************************************************
                       ;Scratch Pad Memory Locations
                       ;**************************************************************************************
                       ;
                       CONSTANT rotary_status, 00          ;Status of rotary encoder
                       CONSTANT rotary_event, 80           ;  flag set by interrupt in 'rotary_status' - bit7
                       ;
                       CONSTANT ISR_preserve_s0, 01        ;Preserve s0 contents during ISR
                       ;
                       CONSTANT LED_pattern, 02            ;LED pattern used in rotation mode
                       ;
                       ;
                       ;BCD digits representing selected and displayed frequency
                       ;
                       CONSTANT BCD_digit0, 03             ; value           1
                       CONSTANT BCD_digit1, 04             ;                10
                       CONSTANT BCD_digit2, 05             ;               100
                       CONSTANT BCD_digit3, 06             ;             1,000
                       CONSTANT BCD_digit4, 07             ;            10,000
                       CONSTANT BCD_digit5, 08             ;           100,000
                       CONSTANT BCD_digit6, 09             ;         1,000,000
                       CONSTANT BCD_digit7, 0A             ;        10,000,000
                       CONSTANT BCD_digit8, 0B             ;       100,000,000
                       ;
                       ;
                       ;Binary integer representation of BCD value
                       ;
                       CONSTANT frequency0, 0C             ;LS byte
                       CONSTANT frequency1, 0D
                       CONSTANT frequency2, 0E
                       CONSTANT frequency3, 0F             ;MS byte
                       ;
                       ;
                       ;Control of frequency selection values
                       ;
                       CONSTANT cursor_position, 10        ; Pointer to edit position on LCD
                       CONSTANT edit_digit_pointer, 11     ; BCD digit to be changed
                       ;
                       ;
                       ;
                       ;80-bit product resulting from 32-bit frequency x 48-bit scaling constant
                       ;
                       CONSTANT product0, 12               ;LS byte
                       CONSTANT product1, 13
                       CONSTANT product2, 14
                       CONSTANT product3, 15
                       CONSTANT product4, 16
                       CONSTANT product5, 17
                       CONSTANT product6, 18
                       CONSTANT product7, 19
                       CONSTANT product8, 1A
                       CONSTANT product9, 1B               ;MS byte
                       ;
                       ;Local copies of the DDS control word and DDS scaling word
                       ;
                       CONSTANT DDS_control0, 1C           ; dds_control_word(7:0)
                       CONSTANT DDS_control1, 1D           ; dds_control_word(15:8)
                       CONSTANT DDS_control2, 1E           ; dds_control_word(23:16)
                       CONSTANT DDS_control3, 1F           ; dds_control_word(31:24)
                       CONSTANT DDS_scaling, 20            ; dds_scaling_word(4:0)
                       ;
                       ;**************************************************************************************
                       ; Useful data constants
                       ;**************************************************************************************
                       ;
                       ; To convert the frequency into a DDS control value a high precision scaling
                       ; factor is used. This is a 48-bit number which converts the frequency presented
                       ; as an 32-bit integer into the 32-bit value required by the phase accumulator
                       ; to synthesize the desired frequency. The scaling factor is derived using the
                       ; following method. First I will consider the scaling factor which results in the
                       ; desired frequency being generated directly at the output of the phase accumulator
                       ; which is suitable for low frequencies in which a few ns of jitter is acceptable.
                       ;
                       ; 'Fpa' is frequency generated by the MSB of the phase accumulator.
                       ; 'p' is number of phase accumulator which in this case is 32 bits.
                       ; 'clk' is the input clock frequency to the phase accumulator which is 200MHz.
                       ; 'N' is the DDS control word value which is also 'p' bits (32 in this case).
                       ;
                       ; Frequency at MSB of phase accumulator is then
                       ;
                       ;       Fpa = clk x N / (2^p)
                       ;
                       ; Note that the maximum value allowed for 'N' is (2^p)/2 which results in Fpa=clk/2.
                       ;  for 'N' greater than that value 'Fpa' would decrease in frequency (aliasing).
                       ;
                       ;
                       ; By simple reorganisation of the equation we can compute 'N'
                       ;
                       ;       N = Fpa x (2^p) / clk
                       ;
                       ;
                       ; Now it is easier to approach the next step using specific example.
                       ;
                       ; So for a frequency of Fpa = 1MHz then
                       ;       N = 1MHz x (2^32)/200MHz = 21474836.48
                       ;
                       ; We must use the nearest 32-bit integer value 21474836 and this in turn
                       ; is best viewed as the 32-bit hexadecimal value 0147AE14.
                       ;
                       ; In this case the value we have to work with is a 32-bit integer frequency
                       ; value of 1 million which is 000F4240.
                       ;
                       ; So now we need to translate the value 000F4240 into 0147AE14. This is
                       ; where a 48-bit scaling value is used together with a full precision multiplier
                       ; as this ensures adequate accuracy of the final frequency.
                       ;
                       ;        32-bit frequency value                  ffffffff
                       ;        48-bit scaling value              x ssssssssssss
                       ;                                    --------------------
                       ;        80-bit product              nnnnnnnnnnnnnnnnnnnn
                       ;
                       ; The art is to organise the scaling factor into the range where the most is made of
                       ; the 48-bit resolution available but which will result in the correct 32-bit output.
                       ; The way this is achieved is the select an appropriate 32-bits from the available 80-bit
                       ; product for use as 'N' and truncate 'y' least significant bits.
                       ;
                       ; From this we can deduce that for a target frequency 'Ft' at the input then the
                       ; scaling value 'S' is given by
                       ;
                       ;    S = N x (2^y) / Ft    with the condition that S < 2^48 but as large as possible
                       ;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久久久免费精品国产| 亚洲精品免费电影| 老司机免费视频一区二区| 精品视频一区三区九区| 亚洲色图在线看| 成人黄页在线观看| 欧美激情在线一区二区| 国产精品夜夜爽| 国产片一区二区三区| 国产999精品久久久久久| 国产色综合久久| 亚洲成人午夜电影| 91.com视频| 亚洲va欧美va人人爽午夜| 欧美乱妇一区二区三区不卡视频| 亚洲一区中文在线| 在线电影院国产精品| 蜜臀久久99精品久久久久久9| 日韩欧美国产午夜精品| 久久国产日韩欧美精品| 国产色爱av资源综合区| 粉嫩一区二区三区在线看| 国产精品午夜春色av| 99精品国产一区二区三区不卡| 亚洲精品福利视频网站| 91麻豆精品国产自产在线观看一区| 美女一区二区久久| 国产精品欧美经典| 在线观看区一区二| 日本视频在线一区| 久久久影视传媒| 成人午夜视频在线观看| 亚洲天堂a在线| 欧美夫妻性生活| 美女免费视频一区| 国产欧美综合色| 欧美伊人精品成人久久综合97| 日韩av电影一区| 国产午夜亚洲精品理论片色戒 | 日韩精品亚洲专区| 日韩欧美国产一二三区| 成人看片黄a免费看在线| 一区二区三区高清| 日韩美女视频在线| 99视频精品免费视频| 亚洲aaa精品| 日本一二三不卡| 欧美日韩成人一区| 成人久久视频在线观看| 首页国产欧美日韩丝袜| 中文字幕免费在线观看视频一区| 在线观看日产精品| 风间由美一区二区三区在线观看| 亚洲在线视频一区| 国产午夜精品一区二区三区嫩草| 在线一区二区三区做爰视频网站| 蜜乳av一区二区| 亚洲免费av高清| 久久精品一区四区| 欧美日韩aaa| 99视频精品免费视频| 久久激情综合网| 亚洲成人7777| 综合自拍亚洲综合图不卡区| 精品奇米国产一区二区三区| 在线免费观看成人短视频| 狠狠色丁香婷婷综合| 午夜激情综合网| 亚洲激情六月丁香| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美影视一区在线| 成人午夜av电影| 久久精品久久精品| 日本女优在线视频一区二区| 亚洲一区视频在线| 亚洲另类中文字| 欧美国产精品v| 精品国产电影一区二区| 在线不卡中文字幕播放| 91久久人澡人人添人人爽欧美| 国产大陆精品国产| 免费国产亚洲视频| 天天影视涩香欲综合网| 亚洲裸体在线观看| 中文字幕综合网| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产成人亚洲综合a∨猫咪| 日韩av一级片| 一区二区三区精品视频| 一区二区三区蜜桃| 一区二区三区欧美日| 亚洲人成精品久久久久| 国产精品国产三级国产三级人妇 | 精品在线视频一区| 日产欧产美韩系列久久99| 国产精品天干天干在观线| 久久久影院官网| 国产欧美日韩精品在线| 久久综合色婷婷| 亚洲精品在线电影| 欧美精品乱码久久久久久按摩| 色综合久久久久久久| 91在线你懂得| 色94色欧美sute亚洲线路一久| 9i看片成人免费高清| 国产成人综合亚洲91猫咪| 国产一区二区三区免费播放 | 综合激情成人伊人| 中文字幕在线观看一区二区| 亚洲欧洲制服丝袜| 亚洲另类春色校园小说| 亚洲大片在线观看| 免费成人在线视频观看| 国内外成人在线| 国产xxx精品视频大全| 成人av网站在线| 在线精品视频免费观看| 欧美人妖巨大在线| 日韩欧美精品在线视频| 国产片一区二区三区| 亚洲激情自拍视频| 日韩国产精品大片| 国产伦精品一区二区三区免费迷| 成人网在线播放| 精品视频色一区| 久久夜色精品国产噜噜av| 国产精品久久久久精k8| 亚洲风情在线资源站| 美女在线视频一区| 成人精品视频一区| 欧美人成免费网站| 久久久.com| 亚洲国产精品视频| 国产一区在线不卡| 欧美综合一区二区| 久久无码av三级| 亚洲午夜日本在线观看| 国产裸体歌舞团一区二区| 欧美少妇性性性| 国产视频在线观看一区二区三区| 亚洲精品免费看| 国产成人亚洲精品青草天美| 欧美吞精做爰啪啪高潮| 中文字幕国产一区| 日本在线不卡一区| 91丨九色丨尤物| 精品国产在天天线2019| 一区二区三区四区蜜桃| 国产精品一区2区| 欧美久久一区二区| 国产精品高潮久久久久无| 日本aⅴ免费视频一区二区三区| 成人午夜看片网址| 欧美电视剧在线看免费| 亚洲午夜激情网站| www.日韩在线| 国产婷婷精品av在线| 免费成人在线观看视频| 欧美优质美女网站| 国产欧美日韩在线看| 蜜桃视频在线一区| 欧美日韩一区高清| 亚洲欧美中日韩| 成人免费毛片高清视频| 7777精品伊人久久久大香线蕉的| 国产精品美女久久久久久 | 91国模大尺度私拍在线视频| 精品国产乱码久久久久久夜甘婷婷 | 国内欧美视频一区二区| 欧美一区二区三区视频在线观看| 亚洲在线视频一区| 色婷婷综合五月| 中文字幕一区免费在线观看| 国产一区二区三区在线观看精品| 欧美一级高清大全免费观看| 亚洲综合色视频| 91老师片黄在线观看| 国产精品不卡一区| 成人动漫一区二区| 国产精品亲子乱子伦xxxx裸| 风间由美中文字幕在线看视频国产欧美 | 一区二区在线看| 91蜜桃免费观看视频| 最新不卡av在线| 一本大道综合伊人精品热热| 国产精品国产三级国产普通话99 | 夜夜操天天操亚洲| 成人午夜在线播放| 国产精品欧美精品| 国产精品综合在线视频| 久久精品夜色噜噜亚洲aⅴ| 日韩国产在线一| 91精品欧美福利在线观看| 日韩激情一区二区| 国产精品美女一区二区| 成人免费高清视频在线观看| 日韩一区二区三区免费看| 久久精品国内一区二区三区| 欧美精品一区男女天堂| 国产高清成人在线|