The information about the registers is given in the User's Guide , chapter "Digital I/O". Things like "|=" or "&= ~" are bitwise operations . In short: [quote user="sarmad mueen"]PJDIR |= BIT0|BIT1;[/quote] This instruction sets bit 0 and bit 1 of port J to output direction [quote user="sarmad mueen"]PJOUT |= BIT0;[/quote] This instruction sets bit 0 of port J to logical 1, means high level (DVcc) [quote user="sarmad mueen"]PJOUT &= ~BIT1;[/quote] This instruction sets bit 1 of port J to logical 0 (it clears the bit), means low level (DVss) Dennis
↧