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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dac_ctrl.psm

?? 環(huán)境ISE
?? PSM
?? 第 1 頁 / 共 3 頁
字號:
 store_channel_B: STORE s0, chan_B_lsb            ;store value for D/A output
                  STORE s1, chan_B_msb
                  ;
                  ;
                  ;Channel C is a square wave of 2KHz.
                  ;
                  ;Since the sample rate is 8KHz, this square wave is formed of two samples at a
                  ;low level and two samples at a high level. This is used to demonstrate when the
                  ;D/A converter output actually changes and how to determine the voltage levels.
                  ;It is also used indirectly to form the signal for channel A.
                  ;
                  ;The low level voltage is 0.50v.
                  ;   The 12-bit value is therefore 4096 x 0.5 / 2.5 = 819 (333 hex)
                  ;
                  ;The high level voltage is 2.00v.
                  ;   The 12-bit value is therefore 4096 x 2.0 / 2.5 = 3277 (CCD hex)
                  ;
                  ;
                  FETCH s2, square_count          ;read sample counter
                  TEST s2, 02                     ;bit 1 has correct frequency
                  JUMP NZ, square_high
                  LOAD s1, 03                     ;Set low level
                  LOAD s0, 33
                  JUMP store_channel_C
     square_high: LOAD s1, 0C                     ;Set high level
                  LOAD s0, CD
 store_channel_C: STORE s0, chan_C_lsb            ;store value for D/A output
                  STORE s1, chan_C_msb
                  ADD s2, 01                      ;increment sampel count
                  STORE s2, square_count          ;store new sample count
                  ;
                  ;Sine wave for channel D
                  ;
                  ;A synthesis algorithm is used to generate a stable 770Hz sine wave
                  ;which is one of the 8 tines used in DTMF telephone dialing.
                  ;
                  CALL calc_next_sine
                  SR0 s9                          ;reduce value to 12-bits
                  SRA s8
                  SR0 s9
                  SRA s8
                  SR0 s9
                  SRA s8
                  ADD s9, 08                      ;Scale signed number to mid-rail of unsigned output
                  STORE s9, chan_D_msb            ;store value for D/A output
                  STORE s8, chan_D_lsb
                  ;
                  ;
                  ;Drive LEDs with simple binary count of the samples to indicate
                  ;that the design is active.
                  ;
                  FETCH s0, sample_count_lsb      ;read sample counter
                  FETCH s1, sample_count_msb
                  ADD s0, 01                      ;increment counter
                  ADDCY s1, 00
                  STORE s0, sample_count_lsb      ;store new value
                  STORE s1, sample_count_msb
                  OUTPUT s1, LED_port             ;upper bits are 31.25Hz and lower
                  ;
                  JUMP warm_start                 ;wait for next interrupt
                  ;
                  ;**************************************************************************************
                  ;Sine wave synthesis algorithm
                  ;**************************************************************************************
                  ;
                  ;This example is set to generate 770Hz at a sample rate of 8KHz. 770Hz is one of
                  ;the eight DTMF frequences. Please see design documentation for more details.
                  ;
  init_sine_wave: LOAD s0, 24                     ;initial value 9216 (2400 hex)
                  STORE s0, sine_y_msb
                  LOAD s0, 00
                  STORE s0, sine_y_lsb
                  LOAD s0, 00                     ;initial delayed value 0 (0000 hex)
                  STORE s0, sine_y1_msb
                  STORE s0, sine_y1_lsb
                  LOAD s0, D2                     ;Coefficient for 770Hz is UFIX_16_15 value 53913/32768 = 1.64529
                  STORE s0, sine_k_msb
                  LOAD s0, 99
                  STORE s0, sine_k_lsb
                  RETURN
                  ;
                  ;
                  ;Calculate a new output sample for a single tone.
                  ;
                  ;The tone sample is generated as a 16-bit signed integer.
                  ;The waveform is virtually full scale deflection for a 15-bit integer
                  ;such that the addition of two tones for DTMF will not exceed the 16-bits
                  ;provided by two registers.
                  ;
                  ;Obtain current values from wscratch pad memory
                  ;
  calc_next_sine: FETCH sF, sine_y_msb            ;[sF,sE] is Y
                  FETCH sE, sine_y_lsb
                  FETCH sD, sine_y1_msb           ;[sD,sC] is Y1
                  FETCH sC, sine_y1_lsb
                  FETCH sB, sine_k_msb            ;[sB,sA] is K
                  FETCH sA, sine_k_lsb
                  ;
                  ;16-bit signed by 16-bit unsigned multiplication. [s9,s8]=[sB,sA]x[sF,sE]
                  ;
                  ;The unsigned number is of format UFIX_16_15 resulting
                  ;in a FIX_32_15 product. Since only the integer part of the
                  ;product is to be retained as a 16-bit value, their is no
                  ;shift of the result on the last cycle of the multiplication.
                  ;Execution requires a maximum of 145 instructions.
                  ;
                  LOAD s9, 00                     ;clear temporary result registers [s9,s8]
                  LOAD s8, 00
                  LOAD s0, 10                     ;16 bit multiply
       mult_loop: SRX s9                          ;signed divide result by 2
                  SRA s8
                  SR0 sB                          ;shift coefficient
                  SRA sA
                  JUMP NC, no_mult_add            ;test for active bit
                  ADD s8, sE                      ;16-bit signed addition
                  ADDCY s9, sF
     no_mult_add: SUB s0, 01                      ;test for 16 cycles
                  JUMP NZ, mult_loop
                  ;
                  ;Subtract of delayed sample
                  ;
                  SUB s8, sC                      ;16-bit signed subtract
                  SUBCY s9, sD
                  ;
                  ;Update scratch pad memory with new sample values
                  ;
                  STORE sF, sine_y1_msb           ;delayed sample gets previous output
                  STORE sE, sine_y1_lsb
                  STORE s9, sine_y_msb            ;new current sample
                  STORE s8, sine_y_lsb
                  RETURN
                  ;
                  ;
                  ;**************************************************************************************
                  ;SPI communication routines for D/A Converter
                  ;**************************************************************************************
                  ;
                  ;These routines will work with two output ports and one input port which should be
                  ;defined as follows using CONSTANT directives.
                  ;   (replace 'pp' with appropriate port address in each case)
                  ;In the list of CONSTANT directives, only the ones marked with a * are really required
                  ;for the D/A Converter system. The other directives are to control (disable) or
                  ;communicate with the other SPI components on the same SPI bus of the Spartan-3E Starter Kit.
                  ;
                  ;
                  ;
                  ;CONSTANT SPI_control_port, pp       ;SPI clock and chip selects     *
                  ;CONSTANT SPI_sck, 01                ;                  SCK - bit0   *
                  ;CONSTANT SPI_rom_cs, 02             ;    serial rom select - bit1
                  ;CONSTANT SPI_spare_control, 04      ;                spare - bit2
                  ;CONSTANT SPI_amp_cs, 08             ;     amplifier select - bit3
                  ;CONSTANT SPI_adc_conv, 10           ;          A/D convert - bit4
                  ;CONSTANT SPI_dac_cs, 20             ;           D/A select - bit5   *
                  ;CONSTANT SPI_amp_shdn, 40           ;       amplifier SHDN - bit6
                  ;CONSTANT SPI_dac_clr, 80            ;            D/A clear - bit7   *
                  ;
                  ;CONSTANT SPI_output_port, pp        ;SPI data output                *
                  ;CONSTANT SPI_sdo, 80                ;   SDO - bit7                  *
                  ;
                  ;CONSTANT SPI_input_port, pp         ;SPI data input                 *
                  ;CONSTANT SPI_sdi, 80                ;             SDI - bit7        *
                  ;CONSTANT SPI_amp_sdi, 40            ;   amplifier SDI - bit6
                  ;
                  ;
                  ;
                  ;
                  ;Initialise SPI bus
                  ;
                  ;This routine should be used to initialise the SPI bus.
                  ;The SCK clock is made low.
                  ;Device selections are made inactive as follows
                  ;   SPI_sck      = 0      Clock is Low (required)
                  ;   SPI_rom_cs   = 1      Deselect ROM
                  ;   spare        = 1      spare control bit
                  ;   SPI_amp_cs   = 1      Deselect amplifier
                  ;   SPI_adc_conv = 0      A/D convert ready to apply positive pulse
                  ;   SPI_dac_cs   = 1      Deselect D/A
                  ;   SPI_amp_shdn = 0      Amplifier active and available
                  ;   SPI_dac_clr  = 1      D/A clear off
                  ;
        SPI_init: LOAD s0, AE                     ;normally AE
                  OUTPUT s0, SPI_control_port
                  RETURN
                  ;
                  ;
                  ;
                  ;Send and receive one byte to and from the SPI D/A converter.
                  ;
                  ;The data supplied in register 's2' is transmitted to the SPI bus and
                  ;at the same time the received byte is used to replace the value in 's2'.
                  ;The SCK clock is generated by software and results in a communication rate of
                  ;2.5Mbit/s with a 50MHz clock.
                  ;
                  ;Note that you must have previously selected the required device on the bus
                  ;before attempting communication and you must subsequently deselect the device
                  ;when appropriate.
                  ;
                  ;Entry to this routine assumes that register s0 defines the state of the SPI
                  ;control signals including SCK which should be Low. The easiest way to achieve this is
                  ;to use the SPI_init routine before calling this one for the first time.
                  ;
                  ;As a 'master' the signal sequence is as follows..
                  ;   Transmit data bit on SDO line
                  ;   Drive SCK transition from low to high
                  ;   Receive data bit from SDI line (D/A transmits on previous falling edge)
                  ;   Drive SCK transition from high to low.
                  ;
                  ;Important note
                  ;   The received data bit must be captured some time before SCK goes low.
                  ;   However the combination of relatively slow clock to output time of the
                  ;   LTC2624 combined with the low drive strength of its SDO output means that
                  ;   the received bit needs maximum time to settle. Therefore this routine
                  ;   schedules the read as late as it can.
                  ;
   SPI_dac_tx_rx: LOAD s1, 08                     ;8-bits to transmit and receive
next_SPI_dac_bit: OUTPUT s2, SPI_output_port      ;output data bit ready to be used on rising edge
                  XOR s0, SPI_sck                 ;clock High (bit0)
                  OUTPUT s0, SPI_control_port     ;drive clock High
                  XOR s0, SPI_sck                 ;prepare clock Low (bit0)
                  INPUT s3, SPI_input_port        ;read input bit
                  TEST s3, SPI_sdi                ;detect state of received bit
                  SLA s2                          ;shift new data into result and move to next transmit bit

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲码国产岛国毛片在线| 首页国产丝袜综合| 五月天婷婷综合| 福利电影一区二区| 欧美日韩精品一区二区三区四区| 不卡区在线中文字幕| 欧美三级视频在线观看 | 欧美日韩成人在线一区| 久久亚洲欧美国产精品乐播| 亚洲最大色网站| 国产99久久久国产精品免费看| 亚洲精品v日韩精品| 国精产品一区一区三区mba视频 | 国产精选一区二区三区| 91麻豆精品视频| 久久久久免费观看| 午夜视频一区二区三区| 99综合影院在线| 久久综合国产精品| 天天操天天干天天综合网| 91原创在线视频| 国产清纯白嫩初高生在线观看91 | 一区二区三区中文在线| 国产精品影视网| 欧美一区二区国产| 亚洲成人av在线电影| 色屁屁一区二区| 国产精品福利电影一区二区三区四区 | 极品少妇一区二区三区精品视频| 免费观看一级特黄欧美大片| 91蜜桃在线免费视频| 国产嫩草影院久久久久| 蜜臀精品一区二区三区在线观看 | 国产一区二区在线视频| 91精品一区二区三区久久久久久 | 99在线视频精品| 国产三级三级三级精品8ⅰ区| 欧美国产97人人爽人人喊| 国产一区二区三区香蕉| 91精品一区二区三区久久久久久| 久久久久国产精品麻豆ai换脸| 中文字幕亚洲在| 成人精品电影在线观看| 国产日韩亚洲欧美综合| 成人午夜激情影院| 1区2区3区欧美| 欧美专区在线观看一区| 香蕉av福利精品导航| 91精品国产高清一区二区三区蜜臀| 国产亚洲自拍一区| 成人av在线网| 怡红院av一区二区三区| 欧美日韩一二区| 男女视频一区二区| 国产日韩欧美一区二区三区综合| 久久久电影一区二区三区| 99免费精品在线观看| 欧美激情资源网| 99re成人精品视频| 天天色天天操综合| 久久久久久97三级| 色婷婷精品大视频在线蜜桃视频 | 精品成人a区在线观看| 国产成人在线免费| 亚洲乱码日产精品bd| 欧美一区二区三级| 风流少妇一区二区| 亚洲电影在线免费观看| 日韩精品在线看片z| av资源站一区| 秋霞电影网一区二区| 久久日一线二线三线suv| 99国产麻豆精品| 日韩av二区在线播放| 日本一区二区久久| 欧美人牲a欧美精品| 夫妻av一区二区| 麻豆国产欧美一区二区三区| 亚洲欧美经典视频| 欧美r级电影在线观看| aaa国产一区| 麻豆国产欧美一区二区三区| 1024精品合集| 久久影院电视剧免费观看| 日本丶国产丶欧美色综合| 久久99久久久久| 亚洲一区二区不卡免费| 久久久精品中文字幕麻豆发布| 午夜日韩在线观看| 国产欧美日韩一区二区三区在线观看 | 国产欧美视频一区二区三区| 欧美四级电影网| 欧美激情在线免费观看| 91国偷自产一区二区开放时间| 日韩欧美国产电影| 91精品国产综合久久久久久久久久| 亚洲第一成人在线| 99视频精品在线| 亚洲男人的天堂在线aⅴ视频| 91精品欧美一区二区三区综合在| 久久99热国产| 久久久久久久一区| 国产精品99久| 欧美成人三级电影在线| 精品午夜久久福利影院| 国产亚洲精品中文字幕| 丁香激情综合国产| 一片黄亚洲嫩模| 欧美一级爆毛片| 成人激情视频网站| 午夜久久久久久| 久久一区二区视频| 欧洲人成人精品| 高清在线不卡av| 午夜欧美大尺度福利影院在线看| 亚洲精品国产成人久久av盗摄| 精品国产一二三区| 国产99久久久国产精品潘金网站| 国产一区二区精品久久91| 亚洲欧洲三级电影| 久久综合国产精品| 亚洲免费观看高清完整版在线观看熊 | 一个色综合av| 国产精品动漫网站| 中文在线一区二区| 日韩一区二区免费在线电影| 91精品国产欧美一区二区成人| 蜜臀av性久久久久蜜臀aⅴ流畅 | 色婷婷av一区| 色婷婷激情综合| 欧美日韩一卡二卡| 欧美日韩国产综合草草| 91精品国产丝袜白色高跟鞋| 欧美日韩高清在线播放| 日韩女优av电影在线观看| 欧美成人猛片aaaaaaa| 久久蜜桃av一区精品变态类天堂| 91免费版在线| 欧美唯美清纯偷拍| 日韩久久久久久| 国产三级欧美三级日产三级99| 欧美日韩精品一区二区天天拍小说 | 国产人久久人人人人爽| 中文字幕日韩精品一区| 亚洲午夜电影在线观看| 青青国产91久久久久久| 国产精品夜夜嗨| 国产成人aaa| 91在线免费播放| 99国产一区二区三精品乱码| 91麻豆精品国产91久久久久久| 91尤物视频在线观看| 欧美男男青年gay1069videost| 国产麻豆午夜三级精品| 成人性生交大合| 欧美午夜精品久久久久久超碰| 国产精品一区专区| 欧美亚洲综合久久| 26uuu国产日韩综合| 国产精品久久久久久久久免费丝袜 | 亚洲欧洲韩国日本视频| 日韩成人伦理电影在线观看| 成人性生交大片免费看中文| 欧美三级日本三级少妇99| 久久日韩粉嫩一区二区三区| 丝袜亚洲另类欧美综合| 粉嫩高潮美女一区二区三区| 欧美日韩情趣电影| 1024国产精品| 国产69精品久久久久毛片| 欧美一区二区视频网站| 国产精品久久久久毛片软件| 精品亚洲欧美一区| 欧美精品日韩精品| 国产精品久久久久久户外露出| 国产清纯白嫩初高生在线观看91 | 一区二区三区蜜桃| 麻豆精品一区二区三区| 欧美亚男人的天堂| 国产精品成人一区二区艾草 | 亚洲国产成人午夜在线一区| 亚洲国产精品精华液网站| www.av精品| 国产拍揄自揄精品视频麻豆| 男女性色大片免费观看一区二区| 六月婷婷色综合| 色婷婷国产精品综合在线观看| 一本到高清视频免费精品| 日韩精品一区二区三区视频播放| 欧美精品日日鲁夜夜添| 亚洲男人都懂的| 成人av在线一区二区| 欧美极品少妇xxxxⅹ高跟鞋 | 国产精品天干天干在线综合| 狠狠色丁香婷婷综合| 日韩一区二区影院| 亚洲va韩国va欧美va| 欧美亚洲综合一区| 天堂久久久久va久久久久| 欧美久久一二区|