Pb with bit status in Vinculum ( write SPI mode )
Minos
Posts: 8
HI
I Use the VDIP1 of FTDI
I configure in SPI mode
I have a problem when I want write on the vinculum
The status bit ( on the line SPI Data Out ) is alway to '1'
I have write the code in C
unsigned int io_miso;···
do
{
spi_unselectChip(VNC1L_SPI, GLOB_VNC1L_chip_sel_code);···· // CS=0
spi_selectChip(VNC1L_SPI, GLOB_VNC1L_chip_sel_code );··· // CS=1
//WRITE W/ + ADD + 8bit_data + 1clk
spi_write(VNC1L_SPI, write_13);···· // ecriture des 13 bits
do{
}while((spi_writeEndCheck(VNC1L_SPI) & BIT0) != BIT0);
#ifndef Debug
io_miso=gpio_input_and_read_gpio_pin(AVR32_PIN_PA25);
if (io_miso==0)
asm("nop");
else
asm("nop");
#endif
}while( io_miso != 0); // Modif bpo vinculum remplacement de A14 par A25
}
The io_miso = 1 alway
Have you an explanation ?
Thank you
·
I Use the VDIP1 of FTDI
I configure in SPI mode
I have a problem when I want write on the vinculum
The status bit ( on the line SPI Data Out ) is alway to '1'
I have write the code in C
unsigned int io_miso;···
do
{
spi_unselectChip(VNC1L_SPI, GLOB_VNC1L_chip_sel_code);···· // CS=0
spi_selectChip(VNC1L_SPI, GLOB_VNC1L_chip_sel_code );··· // CS=1
//WRITE W/ + ADD + 8bit_data + 1clk
spi_write(VNC1L_SPI, write_13);···· // ecriture des 13 bits
do{
}while((spi_writeEndCheck(VNC1L_SPI) & BIT0) != BIT0);
#ifndef Debug
io_miso=gpio_input_and_read_gpio_pin(AVR32_PIN_PA25);
if (io_miso==0)
asm("nop");
else
asm("nop");
#endif
}while( io_miso != 0); // Modif bpo vinculum remplacement de A14 par A25
}
The io_miso = 1 alway
Have you an explanation ?
Thank you
·
Comments
DogP