Post Created date
Problem with simulataneous working of SPI and UART in ATmega168A
I placed a bypass capacitor between VCC and GND. Tested but same result. Now UART is not working at all, when I call Spi_init() function. As you said I am trying every possible...
Tuesday, 13 August 2019 - 13:40
Problem with simulataneous working of SPI and UART in ATmega168A
But the UART based programs are working fine, I tested several times with many peripherals. Only when I add/ call iniSpi() function or start spi communication the problem arise.
Tuesday, 13 August 2019 - 04:12
Problem with simulataneous working of SPI and UART in ATmega168A
Finally main.c file         #include <avr/io.h> #include <avr/sfr_defs.h> // library for loop_until_bit_set() and other functions #define ...
Tuesday, 13 August 2019 - 03:51
Problem with simulataneous working of SPI and UART in ATmega168A
USART.h file     /*  * UART.h  *  * Created: 3/13/2019 10:51:44 PM  *  Author: RAM  */ #ifndef UART_H_ #define UART_H_ #ifndef BAUD /* if...
Tuesday, 13 August 2019 - 03:50
Problem with simulataneous working of SPI and UART in ATmega168A
UART.c file   /*  * UART.c  *  * Created: 3/13/2019 10:52:05 PM  *  Author: RAM  */ #include <avr/io.h> #include <avr/sfr_defs.h...
Tuesday, 13 August 2019 - 03:49
Problem with simulataneous working of SPI and UART in ATmega168A
SPI_LIB.h file (header file which contain macro definitions)   /*  * SPI_LIB.h  *  * Created: 10-Aug-19 1:34:41 PM  *  Author: RAM  */ #ifndef...
Tuesday, 13 August 2019 - 03:46
Problem with simulataneous working of SPI and UART in ATmega168A
SPI_LIB.c file (Spi library source file):   /*  * SPI_LIB.c  *  * Created: 10-Aug-19 1:34:58 PM  *  Author: RAM  */ #include "SPI_LIB.h"...
Tuesday, 13 August 2019 - 03:45
Problem with simulataneous working of SPI and UART in ATmega168A
I already attached all *.c files and *.h files on this post. Any way I will copy paste each file once again.
Tuesday, 13 August 2019 - 03:44
Problem with simulataneous working of SPI and UART in ATmega168A
I doubled Checked the power pins, and the circuit is powered via AVR ASP programmer directly through USB. One thing I didn't do is adding a bypass capacitor across VCC and GND pin...
Monday, 12 August 2019 - 14:19
Problem with simulataneous working of SPI and UART in ATmega168A
Do any body have any Idea, Please comment below section.
Monday, 12 August 2019 - 07:36