代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi_test_save.lst
A51 MACRO ASSEMBLER SPI_TEST_SAVE 04/26/2009 16:17:21 PAGE 1
MACRO ASSEMBLER A51 V8.00
OBJECT MODULE PLACED IN SPI_TEST_Save.OBJ
ASSE
spi_test_save.#2
// 3线主方式或3线从方式
$include (C8051F310.inc)
ORG 00H
LJMP Main
ORG 0100H
Main:
ANL PCA0MD,#0BFH ; 关闭看门狗
LCALL SYSCLK_Init
LCALL Port_IO_Init
LCALL SPI_Init
LCA
spi_test_save.asm
// 可以用的
// 3线主方式或3线从方式
$include (C8051F310.inc)
ORG 00H
LJMP Main
ORG 0100H
Main:
ANL PCA0MD,#0BFH ; 关闭看门狗
LCALL SYSCLK_Init
LCALL Port_IO_Init
LCALL SPI_Init
spi_controller.cr.mti
D:/proj/Chapter-6/spi_controller/spi_top.v {1 {vlog -work work D:/proj/Chapter-6/spi_controller/spi_top.v
Model Technology ModelSim SE vlog 5.8c Compiler 2004.03 Mar 25 2004
-- Compiling module spi_
spi_slave_model.v
`include "timescale.v"
module spi_slave_model (rst, ss, sclk, mosi, miso);
input rst;
input ss; // slave select
input sclk; // s
tb_spi_top.v
`include "timescale.v"
module tb_spi_top();
reg clk;
reg rst;
wire [31:0] adr;
wire [31:0] dat_i, dat_o;
wire we;
wire [3:0] sel;
wire stb;