angiey
Junior Member level 1
- Joined
- Jul 2, 2012
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,436
Hi all,
Can anybody tell me how to assign values to the individual ports,[0to15 hex decimal values to ports] i mean to say i have taken port2 as my reference
in this i have to assign P2.0=0 ; P2.2 = 0 ; P2.4=0 ; P2.6=1; this is first set value i.e.,0001 means it should display 7v,
similarly 0010 it should display as (eg..9v),in hardware already made the changes and build a seperate circuit for R2R ladder.
Kindly give me an idea to solve this problem using c programming lang.
Thanks in advance.
Can anybody tell me how to assign values to the individual ports,[0to15 hex decimal values to ports] i mean to say i have taken port2 as my reference
in this i have to assign P2.0=0 ; P2.2 = 0 ; P2.4=0 ; P2.6=1; this is first set value i.e.,0001 means it should display 7v,
similarly 0010 it should display as (eg..9v),in hardware already made the changes and build a seperate circuit for R2R ladder.
Kindly give me an idea to solve this problem using c programming lang.
Thanks in advance.