How to select a single bit in a PORT in xmega a3bu and to set is as output or input or make it high or low using '.OUT' keyword.
#define row1out 0<PORTA.OUT
#define row1dir 0<<PORTA.DIR // code for 4x4 matrix keypad, row 1 is connected to PA0
Is this the right way to select a single bit and manipulate it later in the program like this?
row1out = 0;
Should'nt this make the bit 0 of the a PORTA low?
Currently confused in this.
Using C code.