ATmega328p UART framing error does not occur! i use proteus to trace the code step by step , never goes to bReset = 1; bReset ramains 0 forever.
program interprete 60 us break (0V pulse) as 2 normal data :0x00 ans 0xE0
Saturday, 24 June 2017 - 19:44
ATmega328p UART framing error does not occur! i need my code ignore reset pulse, just buffer input data
for normal data it works nice, every data is correct
but can not handle reset pulse, cause Frame Error not work, ...
Saturday, 24 June 2017 - 19:36
ATmega328p UART framing error does not occur!
// USART Receiver interrupt service routine
interrupt [USART_RXC] void usart_rx_isr(void)
{
char status;
char data;
status=UCSR0A;
data=UDR0;
if (...
Saturday, 24 June 2017 - 19:05
ATmega328p UART framing error does not occur! here is the code:
automatic code generated by CVAVR
i changed if else as my design
// USART Receiver interrupt service routine
interrupt [USART_RXC] void usart_rx_isr...
#include <mega328p.h> bit bReset; unsigned char ucData[256]; unsigned char ucIndex, ucWriteIndex; // USART Receiver interrupt service routine interrupt [USART_RXC] void...
hmm , yes its possible, for now just simulating is available for me, for test on real IC i must wait a few days
i use proteus to trace the code step by step , never goes to bReset = 1; bReset ramains 0 forever. program interprete 60 us break (0V pulse) as 2 normal data :0x00 ans 0xE0
i need my code ignore reset pulse, just buffer input data for normal data it works nice, every data is correct but can not handle reset pulse, cause Frame Error not work, ...
// USART Receiver interrupt service routine interrupt [USART_RXC] void usart_rx_isr(void) { char status; char data; status=UCSR0A; data=UDR0; if (...
here is the code: automatic code generated by CVAVR i changed if else as my design // USART Receiver interrupt service routine interrupt [USART_RXC] void usart_rx_isr...
Pages