PA3040
Advanced Member level 3
- Joined
- Aug 1, 2011
- Messages
- 883
- Helped
- 43
- Reputation
- 88
- Reaction score
- 43
- Trophy points
- 1,308
- Activity points
- 6,936
Dear all
Thai is related to ENUMERATED CONSTANTS and MCU is 16f877a
In assembly
in MicroC
Could you please, can any one teach me the different between above two
Is it both are same but different language? Am I correct ?
Please advice
thanks in advance
Thai is related to ENUMERATED CONSTANTS and MCU is 16f877a
In assembly
Code:
#define UP PORTB,0
#define DOWN PORTB,1
#define LEFT PORTB,2
#define RIGHT PORTB,3
in MicroC
Code:
enum MOTORS {UP, DOWN, LEFT, RIGHT}; // Declare constant MOTORS
Could you please, can any one teach me the different between above two
Is it both are same but different language? Am I correct ?
Please advice
thanks in advance