Hello everyone,
I have a problem and i need your help,
I am currently trying to build a software component for SPI interface in atmega1284p,
however when i try to send a byte of data when a button is pressed, i receive a lot of sent bytes within the same click of the button see below
while(uDIO_GetPin_Value(A, DIO_PIN0) == 0)
{
hwSPI_writebyte(0x10);
}
and when i use an interrupt driven SPI, the ISR is triggered after the first byte, and only byte is transferred,
However when i try to push the button another time, nothing happens,
Note : I am using Proteus for reading the signal on the oscilloscope
Thanks in advance,
atarek