When you're simulating an xMegaD3 part in the simulator, and you execute an instruction like
where Clrb is defined...
#define LCD_BL_DPRT PORTE.DIR #define LCD_BL_PRTS PORTE #define LCD_BL_PRTC PORTE #define LCD_BL_PIN 0 #define Clrb(port,bitnum) port.OUTCLR = (1<<bitnum)
Where, in the output winder do you look to see what you've actually done to the pin?
I'm trying to adapt a ELT240320TP library written for ATMega to an xMega part, but whenever the library is trying to draw something, it flashes the backlight rapidly on and off, so I figure it's twiddling the wrong bit somewheres.