问题描述
我正在模拟 SPI 接口以从另一侧测试我的 ADC 接口。 所以,我不知道如何发送相同或不同的数据:
process(r_sclk,r_reset)
begin
if r_reset = '0' then
count <= (others => '0');
shift_reg <= x"0914";
elsif falling_edge(r_sclk) then
if r_cs = '0' and count <= "01111" then
shift_reg <= shift_reg(14 downto 0) & '0';
count <= count + "00001";
end if;
if count = "10000" then
count <= "00000";
end if;
--if count = "00000" then
--shift_reg <= x"0914"+x"0000";
--end if;
end if;
end process;
r_miso <= shift_reg(15);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)