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

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

?? adc_ctrl.psm

?? PicoBlaze 處理器放大器和 A/D 轉換器控制器 展示了 Linear Technology LTC6912-1 可編程增益放大器和 Linear Technology LTC1407A 模
?? PSM
?? 第 1 頁 / 共 5 頁
字號:
                    ADDCY s5, s3                        ;to restore value
                    SL0 s6                              ;shift '0' into result because subtract was not possible
      div10_shifts: SLA s7                              ;complete 16-bit shift left
                    SR0 s3                              ;divide '10' value by 2 (shift right 1 place)
                    SRA s2
                    SUB s1, 01                          ;count iterations
                    JUMP NZ, div10_loop
                    RETURN
                    ;
                    ;
                    ;**************************************************************************************
                    ;SPI communication routines for Spartan-3E Starter Kit
                    ;**************************************************************************************
                    ;
                    ;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, there are ports associated with all the SPI devices
                    ;provided on the board. Even if some devices are not used, it is vital that the remaining
                    ;devices are disabled. Leaving all signals connected and use of these routines will ensure
                    ;that all other devices are disabled when communicating with a particular device.
                    ;
                    ;
                    ;
                    ;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
                    ;
                    ;
                    ;
                    ;
                    ;**************************************************************************************
                    ;SPI communication routines for Programmable Amplifier
                    ;**************************************************************************************
                    ;
                    ;
                    ;Set the A and B channel gain of the Dual Amplifier (LTC6912-1).
                    ;
                    ;The gain value should be provided in the s2 register with the upper nibble
                    ;defining the gain for the B channel and lower nibble the gain for the A channel.
                    ; 0000 = 0 hex = Gain  0 with input hi-Z and output driving
                    ; 0001 = 1 hex = Gain -1
                    ; 0010 = 2 hex = Gain -2
                    ; 0011 = 3 hex = Gain -5
                    ; 0100 = 4 hex = Gain -10
                    ; 0101 = 5 hex = Gain -20
                    ; 0110 = 6 hex = Gain -50
                    ; 0111 = 7 hex = Gain -100
                    ; 1000 = 8 hex = software shutdown (power on default). Hi-Z output.
                    ;
                    ;On return, the s2, register will contain the response from the LTC6912-1 amplifier.
                    ;This will be the same format and indicate the previous setting of the amplifier.
                    ;The response is obtained from the dedicated AMP_SDI signal since the LTC6912 output
                    ;is always active and can not be on a shared SPI bus.
                    ;
           set_amp: CALL SPI_init                       ;ensure known state of bus and s0 register
                    XOR s0, SPI_amp_cs                  ;select low on Amplifier chip select
                    OUTPUT s0, SPI_control_port
                    LOAD s1, 08                         ;8-bits to transmit and receive
  next_amp_SPI_bit: OUTPUT s2, SPI_output_port          ;output data bit
                    XOR s0, SPI_sck                     ;clock High (bit0)
                    OUTPUT s0, SPI_control_port         ;drive clock High
                    INPUT s3, SPI_input_port            ;read input bit
                    TEST s3, SPI_amp_sdi                ;detect state of received bit
                    SLA s2                              ;shift new data into result and move to next transmit bit
                    XOR s0, SPI_sck                     ;clock Low (bit0)
                    OUTPUT s0, SPI_control_port         ;drive clock Low
                    SUB s1, 01                          ;count bits
                    JUMP NZ, next_amp_SPI_bit           ;repeat until finished
                    XOR s0, SPI_amp_cs                  ;deselect the amplifier
                    OUTPUT s0, SPI_control_port
                    RETURN
                    ;
                    ;
                    ;
                    ;**************************************************************************************
                    ;SPI communication routines for A/D Converter
                    ;**************************************************************************************
                    ;
                    ;
                    ;
                    ;Sample A/D converter (LTC1407A-1) and return results.
                    ;
                    ;Note there is a latency of one read to obtain the value. Each read results in the
                    ;the analogue inputs being sampled and converted but this value will only be transmitted
                    ;during the next read and conversion cycle.
                    ;
                    ;The results are returned as follows.
                    ;   Channel 0 in registers [s9,s8]
                    ;   Channel 1 in registers [s7,s6]
                    ;Where each is a 14-bit twos complement value sign extended to 16-bits.
                    ;
                    ;Each 14-bit value represents the analogue voltage in the range -1.25v to +1.25v
                    ;relative to the reference voltage of 1.65v (3.3v/2). Hence the actual input voltage
                    ;range is 0.4v to 2.9v. Since the input to the A/D is supplied via the programmable
                    ;amplifier, the VINA and VINB inputs are inverted and may cover a smaller range if                       ;
                    ;desired.
                    ;
                    ;Examples
                    ;   VINA = 0.65v with gain=-1 means input to A/D = 2.65v
                    ;      This is equivalent to +1.00v which is value (8192/1.25)*1 = 6553 (1999 hex)
                    ;
                    ;   VINA = 2.65v with gain=-1 means input to A/D = 0.65v
                    ;      This is equivalent to -1.00v which is value (2048/1.25)*-1 = -6553 (E667 hex)
                    ;
                    ;
                    ;Although the A/D converter claims to be an SPI device, it really
                    ;does not conform to the normal specification of the 4-wire interface.
                    ;
                    ;Firstly the CONV signal is only pulsed High and does not behave like
                    ;a normal active low select signal. Secondly, the communication is
                    ;34 bits which does not fit a byte boundary, and thirdly, the data output
                    ;to its SDO pin changes as a result of rising edges of SCK clock which
                    ;is not the same as the falling edge used by other devices.
                    ;
          adc_read: CALL SPI_init                       ;ensure known state of bus and s0 register
                    XOR s0, SPI_adc_conv                ;Pulse AD-CONV High to take sample and start
                    OUTPUT s0, SPI_control_port         ;  conversion and transmission of data.
                    XOR s0, SPI_adc_conv                ;AD-CONV Low
                    OUTPUT s0, SPI_control_port
                    LOAD s1, 22                         ;34 clocks to read all data
      next_adc_bit: XOR s0, SPI_sck                     ;clock High (bit0)
                    OUTPUT s0, SPI_control_port         ;drive clock High
                    XOR s0, SPI_sck                     ;clock Low (bit0)
                    OUTPUT s0, SPI_control_port         ;drive clock Low
                    INPUT s3, SPI_input_port            ;read input bit
                    TEST s3, SPI_sdi                    ;detect state of received bit
                    SLA s6                              ;shift new data into result registers
                    SLA s7
                    SLA s8
                    SLA s9
                    SUB s1, 01                          ;count bits
                    JUMP NZ, next_adc_bit               ;repeat until finished
                    SRX s9                              ;sign extend 14-bit result in [s9,s8]
                    SRA s8
                    SRX s9
                    SRA s8
                    SRX s7                              ;sign extend 14-bit result in [s7,s6]
                    SRA s6
                    SRX s7
                    SRA s6
                    RETURN
                    ;
                    ;
                    ;**************************************************************************************
                    ;LCD text messages
                    ;**************************************************************************************
                    ;
                    ;
                    ;Display 'PicoBlaze' on LCD at current cursor position
                    ;
                    ;
    disp_PicoBlaze: LOAD s5, character_P
                    CALL LCD_write_data
                    LOAD s5, character_i
                    CALL LCD_write_data
                    LOAD s5, character_c
                    CALL LCD_write_data
                    LOAD s5, character_o
                    CALL LCD_write_data
                    LOAD s5, character_B
                    CALL LCD_write_data
                    LOAD s5, character_l
                    CALL LCD_write_data
                    LOAD s5, character_a
                    CALL LCD_write_data
                    LOAD s5, character_z
                    CALL LCD_write_data
                    LOAD s5, character_e
                    CALL LCD_write_data
                    RETURN
                    ;
                    ;
                    ;Display 'ADC Control' on LCD at current cursor position
                    ;
                    ;
  disp_ADC_Control: LOAD s5, character_A
                    CALL LCD_write_data
                    LOAD s5, character_D
                    CALL LCD_write_data
                    LOAD s5, character_C
                    CALL LCD_write_data
                    LOAD s5, character_space
                    CALL LCD_write_data
                    LOAD s5, character_C
                    CALL LCD_write_data
                    LOAD s5, character_o
                    CALL LCD_write_data
                    LOAD s5, character_n
                    CALL LCD_write_data
                    LOAD s5, character_t
                    CALL LCD_write_data
                    LOAD s5, character_r
                    CALL LCD_write_data
                    LOAD s5, character_o
                    CALL LCD_write_data
                    LOAD s5, character_l
                    CALL LCD_write_data
                    RETURN
                    ;
                    ;
                    ;Display 'VA=' on LCD at current cursor position
                    ;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆国产一区二区| 国产九九视频一区二区三区| 欧美96一区二区免费视频| 色又黄又爽网站www久久| 日韩欧美一二三区| 亚洲视频1区2区| 麻豆极品一区二区三区| 99国产精品国产精品久久| 欧美一区二区三区喷汁尤物| 国产精品国产a| 欧美精品丝袜久久久中文字幕| www激情久久| 男人的j进女人的j一区| 一本久久综合亚洲鲁鲁五月天 | 亚洲成人av中文| 国产91精品一区二区麻豆网站| 欧美精品在线一区二区三区| 成人免费小视频| 国产精品一级二级三级| 在线综合视频播放| 亚洲午夜精品在线| 色综合色综合色综合| 日本一区二区三区免费乱视频| 免费看欧美女人艹b| 在线观看亚洲精品| 亚洲免费在线观看视频| 国产91精品精华液一区二区三区| 欧美一区二区三区男人的天堂 | 国产亚洲人成网站| 麻豆成人综合网| 欧美美女黄视频| 污片在线观看一区二区| 欧美日韩在线亚洲一区蜜芽| 伊人开心综合网| 91视频在线观看免费| 国产精品久久久久久久久免费樱桃 | 国产精品一二三区| 精品福利一区二区三区| 精品一区二区三区不卡| 欧美一区二区三区精品| 久久精品国产一区二区三| 日韩欧美一区二区视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美久久久久久蜜桃| 日韩电影一区二区三区四区| 欧美精品99久久久**| 石原莉奈一区二区三区在线观看| 欧美日韩精品免费| 麻豆视频观看网址久久| 精品剧情在线观看| 国产自产视频一区二区三区| 欧美精品一区二区蜜臀亚洲| 精品系列免费在线观看| 国产午夜精品一区二区三区视频 | 99精品国产91久久久久久 | 2023国产精品视频| 成人免费看片app下载| 136国产福利精品导航| 日本韩国一区二区三区视频| 香蕉av福利精品导航| 欧美精品三级在线观看| 国产美女精品一区二区三区| 一区二区中文字幕在线| 色哟哟欧美精品| 日韩av网站在线观看| 久久精品亚洲国产奇米99| 99精品视频一区二区三区| 亚洲综合成人在线视频| 欧美岛国在线观看| 不卡视频一二三| 日韩精品每日更新| 中文字幕精品综合| 91传媒视频在线播放| 亚洲成人激情综合网| 99久久久精品| 亚洲欧洲av色图| 欧美一级久久久| 成人v精品蜜桃久久一区| 亚洲黄色av一区| 欧美va日韩va| 91国偷自产一区二区三区观看| 麻豆91在线观看| 亚洲精品视频在线观看网站| 日韩欧美色综合网站| av在线综合网| 国产在线视频一区二区| 亚洲国产日产av| 国产拍欧美日韩视频二区| 欧美午夜精品电影| 成人免费福利片| 免费在线看一区| 亚洲午夜激情av| 国产精品护士白丝一区av| 欧美一区二区三区免费大片 | 亚洲欧美日韩中文播放 | 狠狠久久亚洲欧美| 亚洲一卡二卡三卡四卡 | 亚洲一区二区中文在线| 国产日韩v精品一区二区| 在线不卡一区二区| 色综合久久久久网| 国产91精品久久久久久久网曝门 | 欧美一区三区二区| 91免费版pro下载短视频| 国产精品一区二区在线观看不卡 | 亚洲国产三级在线| 一区二区在线免费观看| 国产精品伦理一区二区| 26uuu亚洲综合色| 日韩一级片在线观看| 欧美三级在线看| 91九色02白丝porn| 色噜噜狠狠色综合中国| 不卡一卡二卡三乱码免费网站| 国产精品一区在线| 国产成人免费网站| 国产精品一区二区久激情瑜伽 | 国产99久久久久久免费看农村| 美女爽到高潮91| 久久精品久久综合| 免费观看30秒视频久久| 五月天激情小说综合| 视频一区国产视频| 天堂午夜影视日韩欧美一区二区| 亚洲图片自拍偷拍| 一区二区三区欧美| 亚洲国产美国国产综合一区二区| 亚洲男人天堂一区| 亚洲精品福利视频网站| 亚洲精品水蜜桃| 午夜av一区二区三区| 亚洲第一久久影院| 日韩av电影一区| 美女精品自拍一二三四| 国产在线精品一区二区 | 另类小说图片综合网| 麻豆精品一区二区三区| 国产精品一区一区| 91影院在线观看| 欧美精品日韩一区| 精品成人在线观看| 国产精品免费aⅴ片在线观看| 国产精品网曝门| 亚洲精品欧美二区三区中文字幕| 亚洲精品你懂的| 性做久久久久久免费观看 | 91麻豆精品国产无毒不卡在线观看| 一本到三区不卡视频| 欧美吻胸吃奶大尺度电影| 欧美二区三区91| 久久精品在线免费观看| 亚洲欧美日韩人成在线播放| 婷婷综合另类小说色区| 国产酒店精品激情| 日本高清不卡一区| 精品国产伦一区二区三区观看体验 | 在线免费观看成人短视频| 欧美浪妇xxxx高跟鞋交| 亚洲精品在线电影| 国产精品国产自产拍高清av| 亚洲国产日韩a在线播放性色| 麻豆精品久久精品色综合| 99re免费视频精品全部| 欧美刺激午夜性久久久久久久| 国产精品三级视频| 日韩精品一卡二卡三卡四卡无卡| 国产一区二区免费在线| 久久综合丝袜日本网| 夜夜精品浪潮av一区二区三区| 韩国欧美一区二区| 日本道色综合久久| 欧美大片免费久久精品三p | 97se亚洲国产综合自在线不卡| 3751色影院一区二区三区| 欧美tickling挠脚心丨vk| 国产午夜精品理论片a级大结局| 亚洲成人资源在线| 青娱乐精品视频在线| 国产一区二区三区黄视频 | 欧美日韩和欧美的一区二区| 欧美高清视频一二三区| 亚洲欧美区自拍先锋| 亚洲尤物视频在线| 免费观看日韩av| 欧美日本精品一区二区三区| 欧美一级生活片| 国产日产欧美一区二区视频| 久久国产精品无码网站| 盗摄精品av一区二区三区| 91麻豆高清视频| 亚洲天堂av老司机| 亚洲电影激情视频网站| 免费久久精品视频| 欧美精品三级日韩久久| 久久久精品2019中文字幕之3| 中文字幕综合网| 91小视频在线免费看| 91精品国产综合久久久久久| 国产亚洲综合在线| 国产一区二区三区香蕉|