erwin4838
Member level 1
- Joined
- Mar 4, 2012
- Messages
- 32
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Tangerang-indonesia
- Activity points
- 1,478
good afternoon,thanks for u kindnes,please help me for add syntax quantifying (sum),i have syntax for control 2counter,i want 2 counter can be quantifying(sum) for Total value,for example display in Lcd 16X2 :
digit value in counter0 is 10 and digit value in counter1 is 10,picture :
i need you help to change this view to Tot=20 (sum of 2 counter) not Tot=1010
this is my syntax :
digit value in counter0 is 10 and digit value in counter1 is 10,picture :
i need you help to change this view to Tot=20 (sum of 2 counter) not Tot=1010
this is my syntax :
Code:
$regfile = "m8535.dat"
$crystal = 16000000
Config Lcdpin = Pin , Rs = Portc.0 , E = Portc.2 , Db4 = Portc.4
Config Lcdpin = Pin , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7
Config Lcd = 16 * 2
Cursor Off
Cls
Config Timer0 = Counter , Edge = Falling
Config Timer1 = Counter , Edge = Falling
Portb.0 = 1
Portb.1 = 1
Lcd "Tot="
Do
Locate 1 , 5
Lcd Counter0
Lcd Counter1
Loop
End
Last edited: