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

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

?? spi_prog.psm

?? 和picoblaze完全兼容的mcu ip core
?? PSM
?? 第 1 頁 / 共 5 頁
字號:
                        ;KCPSM3 Program - UART programming of SPI Flash memory on Spartan-3E Starter Kit.
                        ;
                        ;
                        ;Ken Chapman - Xilinx Ltd
                        ;
                        ;Version v1.00 - 11th November 2005
                        ;
                        ;This program uses a 115200 baud UART connection with XON/XOFF flow control
                        ;to allow a standard MCS file for the configuration of a Spartan-3E device to
                        ;be programmed into the ST Microelectronics M25P16 device on the board.
                        ;
                        ;
                        ;
                        ;As well as the port connections vital to communication with the UART and the SPI
                        ;FLASH memory, there are additional port connections used to disable the other
                        ;devices sharing the SPI bus on the Starter Kit board. Although these could have been
                        ;controlled at the hardware level, they are included in this code to aid
                        ;future investigations of communication with the other SPI devices using PicoBlaze.
                        ;
                        ;
                        ;
                        ;
                        ;Port definitions
                        ;
                        CONSTANT status_port, 00               ;UART and filter status input
                        CONSTANT tx_data_present, 01           ;  Transmitter  data present - bit0
                        CONSTANT tx_half_full, 02              ;    FIFO          half full - bit1
                        CONSTANT tx_full, 04                   ;                       full - bit2
                        CONSTANT rx_data_present, 08           ;               data present - bit3
                        CONSTANT rx_half_full, 10              ;  Receiver        half full - bit4
                        CONSTANT rx_full, 20                   ;    FIFO               full - bit5
                        ;
                        CONSTANT UART_read_port, 01            ;UART Rx data input
                        ;
                        CONSTANT UART_write_port, 10           ;UART Tx data output
                        ;
                        ;
                        CONSTANT SPI_control_port, 08          ;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, 04           ;SPI data output
                        CONSTANT SPI_sdo, 80                   ;   SDO - bit7
                        ;
                        CONSTANT SPI_input_port, 02            ;SPI data input
                        CONSTANT SPI_sdi, 80                   ;             SDI - bit7
                        CONSTANT SPI_amp_sdi, 40               ;   amplifier SDI - bit6
                        ;
                        ;
                        ;
                        ;
                        ;Special Register usage
                        ;
                        NAMEREG sF, UART_data                  ;used to pass data to and from the UART
                        ;
                        ;
                        ;Useful data constants
                        ;
                        ;
                        ;Constant to define a software delay of 1us. This must be adjusted to reflect the
                        ;clock applied to KCPSM3. Every instruction executes in 2 clock cycles making the
                        ;calculation highly predictable. The '6' in the following equation even allows for
                        ;'CALL delay_1us' instruction in the initiating code.
                        ;
                        ; delay_1us_constant =  (clock_rate - 6)/4       Where 'clock_rate' is in MHz
                        ;
                        ;Example: For a 50MHz clock the constant value is (10-6)/4 = 11  (0B Hex).
                        ;For clock rates below 10MHz the value of 1 must be used and the operation will
                        ;become lower than intended.
                        ;
                        CONSTANT delay_1us_constant, 0B
                        ;
                        ;
                        ;Useful constants
                        ;
                        ;
                        ;ASCII table
                        ;
                        CONSTANT character_a, 61
                        CONSTANT character_b, 62
                        CONSTANT character_c, 63
                        CONSTANT character_d, 64
                        CONSTANT character_e, 65
                        CONSTANT character_f, 66
                        CONSTANT character_g, 67
                        CONSTANT character_h, 68
                        CONSTANT character_i, 69
                        CONSTANT character_j, 6A
                        CONSTANT character_k, 6B
                        CONSTANT character_l, 6C
                        CONSTANT character_m, 6D
                        CONSTANT character_n, 6E
                        CONSTANT character_o, 6F
                        CONSTANT character_p, 70
                        CONSTANT character_q, 71
                        CONSTANT character_r, 72
                        CONSTANT character_s, 73
                        CONSTANT character_t, 74
                        CONSTANT character_u, 75
                        CONSTANT character_v, 76
                        CONSTANT character_w, 77
                        CONSTANT character_x, 78
                        CONSTANT character_y, 79
                        CONSTANT character_z, 7A
                        CONSTANT character_A, 41
                        CONSTANT character_B, 42
                        CONSTANT character_C, 43
                        CONSTANT character_D, 44
                        CONSTANT character_E, 45
                        CONSTANT character_F, 46
                        CONSTANT character_G, 47
                        CONSTANT character_H, 48
                        CONSTANT character_I, 49
                        CONSTANT character_J, 4A
                        CONSTANT character_K, 4B
                        CONSTANT character_L, 4C
                        CONSTANT character_M, 4D
                        CONSTANT character_N, 4E
                        CONSTANT character_O, 4F
                        CONSTANT character_P, 50
                        CONSTANT character_Q, 51
                        CONSTANT character_R, 52
                        CONSTANT character_S, 53
                        CONSTANT character_T, 54
                        CONSTANT character_U, 55
                        CONSTANT character_V, 56
                        CONSTANT character_W, 57
                        CONSTANT character_X, 58
                        CONSTANT character_Y, 59
                        CONSTANT character_Z, 5A
                        CONSTANT character_0, 30
                        CONSTANT character_1, 31
                        CONSTANT character_2, 32
                        CONSTANT character_3, 33
                        CONSTANT character_4, 34
                        CONSTANT character_5, 35
                        CONSTANT character_6, 36
                        CONSTANT character_7, 37
                        CONSTANT character_8, 38
                        CONSTANT character_9, 39
                        CONSTANT character_colon, 3A
                        CONSTANT character_fullstop, 2E
                        CONSTANT character_semi_colon, 3B
                        CONSTANT character_minus, 2D
                        CONSTANT character_plus, 2B
                        CONSTANT character_comma, 2C
                        CONSTANT character_less_than, 3C       ;'<'
                        CONSTANT character_greater_than, 3E    ;'>'
                        CONSTANT character_open, 28            ;'('
                        CONSTANT character_close, 29           ;')'
                        CONSTANT character_divide, 2F          ;'/'
                        CONSTANT character_equals, 3D
                        CONSTANT character_space, 20
                        CONSTANT character_CR, 0D              ;carriage return
                        CONSTANT character_LF, 0A              ;line feed
                        CONSTANT character_question, 3F        ;'?'
                        CONSTANT character_dollar, 24
                        CONSTANT character_exclaim, 21         ;'!'
                        CONSTANT character_BS, 08              ;Back Space command character
                        CONSTANT character_XON, 11             ;Flow control ON
                        CONSTANT character_XOFF, 13            ;Flow control OFF
                        ;
                        ;
                        ;Scratch Pad Memory Locations
                        ;
                        ;
                        CONSTANT ISR_preserve_s0, 00           ;preserve register during ISR
                        ;
                        CONSTANT page_address_h, 01            ;Remember page address for SPI boundary checking.
                        CONSTANT page_address_m, 02            ;high, middle and low bytes
                        CONSTANT page_address_l, 03
                        ;
                        CONSTANT SPI_control_status, 04        ;SPI status signals
                        ;
                        ;
                        ;
                        ;Store up to one line of an MCS file as bytes
                        ;A typical data line consists of:-
                        ;:     Start character which is not stored
                        ;10    Number of data bytes included (16 in this case)
                        ;aaaa  Lower 16-bits of the storage address
                        ;00    Record type (data in this case)
                        ;dddd...   Data bytes (typically 16 which is the maximum)
                        ;cc    Checksum
                        ;CR/LF Line will end in carriage return and/or line feed which is not stored.
                        ;
                        ;So a total of 21 could be stored before processing.
                        ;
                        CONSTANT line_start, 2B                ;21 bytes until end of memory
                        ;
                        ;
                        ;Initialise the system and welcome message
                        ;
                        ;
            cold_start: CALL SPI_init                          ;initialise SPI bus ports
                        CALL delay_1s                          ;delay because UART is fast and JTAG startup sequence can be slow
                        ENABLE INTERRUPT                       ;Interrupt is used for XON/XOFF flow control
         welcome_start: CALL send_CR
                        CALL send_welcome                      ;start up message and version number
                        ;
                        ;Main menu and command selection
                        ;
                        ;
                        ;
            warm_start: CALL send_Menu                         ;Menu and command selection
                prompt: CALL send_CR

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲aⅴ怡春院| 国产综合一区二区| 精品一区二区三区在线视频| bt欧美亚洲午夜电影天堂| 91精品欧美久久久久久动漫 | 久久成人18免费观看| 色久综合一二码| 中文子幕无线码一区tr| 精品一区二区综合| 欧美肥胖老妇做爰| 一区二区高清视频在线观看| 成人在线视频首页| 久久先锋资源网| 美女视频免费一区| 欧美网站大全在线观看| 亚洲欧洲av在线| 成人一区二区三区在线观看| 日韩免费高清电影| 麻豆91精品视频| 欧美日韩卡一卡二| 亚洲va欧美va人人爽午夜| 99re成人精品视频| 国产精品人成在线观看免费| 国产乱人伦偷精品视频不卡 | 亚洲r级在线视频| 91蜜桃在线观看| 日韩美女啊v在线免费观看| 国产精品自拍毛片| 久久久亚洲午夜电影| 久久不见久久见免费视频1| 日韩一区二区中文字幕| 视频一区中文字幕| 日韩亚洲欧美在线观看| 久久草av在线| 欧美经典三级视频一区二区三区| 韩国精品在线观看| 国产日本欧洲亚洲| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 国产成人精品一区二区三区四区 | 欧美美女一区二区三区| 亚洲成人一区二区| 欧美一区二区三区影视| 奇米精品一区二区三区在线观看一| 欧美日韩一级二级| 人人爽香蕉精品| 久久综合999| 成人禁用看黄a在线| 亚洲精品写真福利| 欧美性大战xxxxx久久久| 日日摸夜夜添夜夜添精品视频| 91精品黄色片免费大全| 精品亚洲成a人| 中文乱码免费一区二区| 色婷婷综合久色| 五月婷婷综合在线| 久久亚洲精品小早川怜子| 岛国一区二区三区| 一区二区三区不卡在线观看| 91精品国产综合久久精品app| 激情国产一区二区| 中文字幕一区二区三中文字幕| 欧美性猛交xxxx乱大交退制版| 日本欧美在线观看| 国产精品久久久久国产精品日日| 在线精品亚洲一区二区不卡| 日韩激情视频网站| 国产精品国产三级国产普通话三级| 91农村精品一区二区在线| 无码av免费一区二区三区试看| 久久亚洲综合色一区二区三区| 91性感美女视频| 久久国产精品色婷婷| 中文字幕在线免费不卡| 91精品麻豆日日躁夜夜躁| 成人av综合一区| 日韩中文字幕一区二区三区| 国产欧美日韩麻豆91| 在线电影欧美成精品| 99久久久精品免费观看国产蜜| 人人精品人人爱| 一区二区三区久久| 国产三级欧美三级| 欧美日韩国产美女| 99久久婷婷国产综合精品| 青青国产91久久久久久| 亚洲日本va午夜在线影院| 久久婷婷综合激情| 91精品国产综合久久香蕉麻豆| 99久久99久久精品免费看蜜桃| 极品少妇xxxx精品少妇偷拍| 石原莉奈一区二区三区在线观看| 国产精品久久久久久久久晋中| 精品国产乱码久久久久久闺蜜 | 亚洲一区在线视频观看| 国产欧美一区二区三区鸳鸯浴| 欧美精品一级二级三级| 色综合中文综合网| 日韩高清不卡一区二区三区| 国产精品久久久久久久午夜片| 日韩欧美国产电影| 欧美一三区三区四区免费在线看| 色女孩综合影院| 99精品一区二区三区| 风流少妇一区二区| 国产乱一区二区| 国产一区二区三区黄视频| 美女视频第一区二区三区免费观看网站| 一区二区三区日韩精品| 亚洲人吸女人奶水| 中文字幕视频一区二区三区久| 久久午夜老司机| 26uuu国产一区二区三区| 日韩欧美卡一卡二| 欧美第一区第二区| 日韩女优av电影| 精品国产凹凸成av人网站| 日韩女优av电影在线观看| 日韩欧美在线影院| 精品噜噜噜噜久久久久久久久试看 | 91行情网站电视在线观看高清版| 99re热视频这里只精品| 色一情一伦一子一伦一区| 在线观看一区二区视频| 在线观看区一区二| 337p亚洲精品色噜噜| 5566中文字幕一区二区电影| 日韩午夜av电影| 久久亚洲精品国产精品紫薇| 国产精品欧美经典| 亚洲六月丁香色婷婷综合久久| 亚洲综合男人的天堂| 天天色综合成人网| 美国三级日本三级久久99| 国产一区欧美日韩| 91亚洲精华国产精华精华液| 欧美三级一区二区| 日韩免费性生活视频播放| 久久久综合激的五月天| 亚洲视频一区二区在线| 亚洲福利一二三区| 久久福利视频一区二区| 成人av综合在线| 欧美日韩高清影院| 欧美激情一区不卡| 亚洲高清一区二区三区| 国产一区二区免费看| 在线观看日产精品| 久久久另类综合| 亚洲综合丝袜美腿| 国产精品一区二区在线播放| 在线免费一区三区| 久久久亚洲精华液精华液精华液| 中文字幕一区在线| 精品一区二区三区在线观看| av成人动漫在线观看| 91麻豆精品91久久久久久清纯 | 精品国产露脸精彩对白| 亚洲免费观看高清在线观看| 蜜桃精品视频在线| 一本大道综合伊人精品热热 | 岛国精品在线播放| 欧美一级欧美一级在线播放| 中文字幕在线不卡视频| 日本欧洲一区二区| 在线一区二区视频| 欧美激情一区二区三区| 免费国产亚洲视频| 欧美亚洲国产怡红院影院| 国产欧美综合在线| 久久 天天综合| 狠狠狠色丁香婷婷综合久久五月| 在线观看一区二区视频| 亚洲欧洲日产国产综合网| 国产真实乱子伦精品视频| 欧美色精品在线视频| 亚洲婷婷综合色高清在线| 精品一区二区三区免费观看| 欧美精品免费视频| 一区二区三区中文在线观看| 粉嫩av一区二区三区在线播放 | 欧美片网站yy| 亚洲激情一二三区| bt欧美亚洲午夜电影天堂| 久久伊人中文字幕| 免费观看成人av| 在线播放/欧美激情| 婷婷开心激情综合| 欧美日韩日日摸| 五月婷婷另类国产| 欧美麻豆精品久久久久久| 亚洲一区二区三区三| 色婷婷综合中文久久一本| 亚洲欧美视频在线观看| 99re热视频这里只精品 | 国产免费观看久久| 国产成人自拍网| 国产欧美日韩综合精品一区二区 | 欧美亚洲国产一区二区三区va | 国产乱码精品一品二品| 精品国产伦一区二区三区观看体验 |