oday_albadarneh
Newbie level 6
- Joined
- Dec 20, 2011
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,380
Hi all,
I'm using MiKroC to program a PIC16f877a, and i want to configure pins A0,A1 as analog pins wile A2-A5 as digital input. i use this code but it didn't work
had i forget anything to put in the code ?! any modifications or suggestions ?!!
PLZ Help me ASAP, with great thanks for all
I'm using MiKroC to program a PIC16f877a, and i want to configure pins A0,A1 as analog pins wile A2-A5 as digital input. i use this code but it didn't work
Code:
ADRESL = 0x03;
ADRESH = 0x00;
TRISA = 0xFF;
had i forget anything to put in the code ?! any modifications or suggestions ?!!
PLZ Help me ASAP, with great thanks for all