This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x gpio引脚模拟时钟

Other Parts Discussed in Thread: AM3358

    正在利用am3358开发一款产品,其中一项需求是利用am3358的gpio引脚给外部芯片发送数据,原理很简单,一根CLK线,一根DATA线。在时钟下降沿发送数据。我写了gpio的驱动,在应用程序中利用一下程序给外部送数据

for(f_size = 0; f_size < (down_size +30); f_size++)
{
      for(i = 0; i < 8; i++)
     {
             ioctl(fd_gpio,Clk,0);//clk = 0
             send_val = ((fpga_data[f_size] >> (7 - i )) & 0x1);
             ioctl(fd_gpio,Din,send_val);
             ioctl(fd_gpio,Clk,1);//clk = 1
}

}

利用示波器观察,发现发送频率是420kHz。

我想提高发送频率,有没有办法,谢谢!