Post Created date
Reset loop GPS parser
OK, final conclusion: The lightweight ringbuffer works perfectly as it is, no changes needed. The problem was the user, shame on me, but after I properly inited the ringbuffer, it...
Tuesday, 15 October 2019 - 19:17
Reset loop GPS parser
While I was searching the Lightweightringbuffer topic in the forum, I realized a very big mistake in my code. Initialization of the ringbuffer is missing  Tonight I...
Tuesday, 15 October 2019 - 09:21
Reset loop GPS parser
Ok, defining ubrr as a 8 bit variable can cause difficulties, if I want to use low baud rates on high frequency. The result of the equation is 51 (8 MHz, 9600 baud rate), so I don...
Tuesday, 15 October 2019 - 06:00
Reset loop GPS parser
When I changed the crystal from 8 Mhz to 9.216 MHz, I changed F_CPU too. And the fuses accordingly. For the 9.216 MHz I used the following fuses (high: 0x99, low: 0xff), for 8 MHz...
Monday, 14 October 2019 - 21:21
Reset loop GPS parser
I migrated everything to the Atmega32A debugger, removed the LCD and using simply the USB serial converter and RealTerm to debug. The code cannot be simplier: #define F_CPU...
Monday, 14 October 2019 - 18:55
Reset loop GPS parser
Thank you for the notices, I try to keep in mind the advices.    The first attempt I tried to define in volatile was this way:  volatile RingBuffer_t Buffer;But...
Monday, 14 October 2019 - 11:22
Reset loop GPS parser
Your remark is correct, I don't need an extra statement (while ( !(UCSR0A & (1<<RXC0)) )), because the interrupt flag is set only if the char is ready.
Monday, 14 October 2019 - 08:16
Reset loop GPS parser
From the RingBuffer_IsEmpty function. Return as defined in the header: Boolean true if the buffer contains no free space, false otherwise. In my understanding value is true...
Sunday, 13 October 2019 - 18:33
Reset loop GPS parser
Ok, I tried this lightweight ringbuffer, but it seems does not do what it should. I changed the GPS module to an USB-serial-converter, to make debug easier. So, I save the...
Sunday, 13 October 2019 - 17:37
Reset loop GPS parser
Now it became clear what did you want to suggest me some posts ago. I try to form my mentality, thinking in this way. Thanks. 
Friday, 11 October 2019 - 09:26
Reset loop GPS parser
Thanks for the tips. For my purpose the time itself is not enough, because the final goal is a GPS logger which saves data to SD card via FatFS. The time in my application is fine...
Friday, 11 October 2019 - 08:25
Reset loop GPS parser
Thanks for the advice, especially for the ring buffer from Dean Camera, I will definitely give a try to it. The cli() and sei() is a good remark. Further, do you have any idea...
Thursday, 10 October 2019 - 09:58

Pages