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...
Thursday, 6 September 2018 - 16:24
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...
Friday, 7 July 2017 - 20:07
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...
Friday, 7 July 2017 - 19:45
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.  ...
Friday, 7 July 2017 - 19:35
F_CPU and delay.h semanitcs
theusch wrote: Same question here:   In that thread gives the result of adding it to the "box...
Friday, 7 July 2017 - 18:38
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...
Friday, 7 July 2017 - 18:28
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...
Friday, 7 July 2017 - 18:17
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 
Friday, 7 July 2017 - 17:50
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.
Thursday, 29 June 2017 - 16:40
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...
Thursday, 29 June 2017 - 16:33
Xmega TWI Interrupt Driven
mojo-chan wrote: My TWI code is here:   That is the "library" that is referenced in my original post    mojo-chan wrote:...
Thursday, 29 June 2017 - 16:20
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...
Thursday, 29 June 2017 - 16:09