Post Created date
Too long timeout in SMBus communication on XMEGA
Hi all,   I apologize for bringing up this old thread and can start a new one if needed, but I am experiencing the same problems. I am using an ATxmega128A4U to communicate...
Thu. Sep 6, 2018 - 04:24 PM
F_CPU and delay.h semanitcs
So when the other .c files are being compiled that is when the warning is being thrown since it does not see main.c? Therefore the reason this doesn't happen with delay.h is...
Fri. Jul 7, 2017 - 08:07 PM
F_CPU and delay.h semanitcs
sternst wrote: And you get the warning when main.c is compiled? Isn't there a twim.c that also includes twim.h?   Yes when compiling main. Here are the other twi files...
Fri. Jul 7, 2017 - 07:45 PM
F_CPU and delay.h semanitcs
sternst wrote: Then show us the real files. I somehow doubt the code in #3 is what you actually have.   It was copied and pasted before in #3, but anyway here it is.  ...
Fri. Jul 7, 2017 - 07:35 PM
F_CPU and delay.h semanitcs
theusch wrote: Same question here:  https://www.avrfreaks.net/forum/f...   In that thread https://www.avrfreaks.net/comment... gives the result of adding it to the "box...
Fri. Jul 7, 2017 - 06:38 PM
F_CPU and delay.h semanitcs
I know that if not defined it defines one for you  #ifndef F_CPU /* prevent compiler error by supplying a default */ # warning "F_CPU not defined for <util/delay.h...
Fri. Jul 7, 2017 - 06:28 PM
F_CPU and delay.h semanitcs
ka7ehk wrote: What I do is make a file fcpu.h with very little except #define F_CPU whatever   That is what I was doing, I was just curious how it works in delay.h since it...
Fri. Jul 7, 2017 - 06:17 PM
F_CPU and delay.h semanitcs
main.c #define F_CPU 32000000UL // 32MHz #include "twim.h"twim.h #ifndef F_CPU # warning "F_CPU not defined" # define F_CPU 1000000UL #endif 
Fri. Jul 7, 2017 - 05:50 PM
Xmega TWI Interrupt Driven
Just to wrap this up, that was the problem I had not set the PMIC.CTRL register enable the correct interrupt levels. Thank you both for your help.
Thu. Jun 29, 2017 - 04:40 PM
Xmega TWI Interrupt Driven
mojo-chan wrote: As well as sei() did you enable the various interrupt levels? I can't remember if that register is change protected too.   Actually I think you are...
Thu. Jun 29, 2017 - 04:33 PM
Xmega TWI Interrupt Driven
mojo-chan wrote: My TWI code is here: https://github.com/kuro68k/xmega...   That is the "library" that is referenced in my original post    mojo-chan wrote:...
Thu. Jun 29, 2017 - 04:20 PM
Xmega TWI Interrupt Driven
Hi David,   Thanks for the reply, I had seen that document as well as the state diagram in the manual for the xmega16A4U. The only thing that I have possibly not understood...
Thu. Jun 29, 2017 - 04:09 PM

Pages