Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20800

BASCOM-AVR Old versions : atmega8 : NEWTOPIC

$
0
0
DEAR SIR iwant following program if i press pinc.1 then motor on if i press pinc1 and pinc2and pinc are1 then motor is to be off pl.help to writing code regfile = "m8def.dat" $crystal = 1000000 Config Portd = Output Config Portc = Input Portc.1 Alias Pinc.1 Portc.2 Alias Pinc.2 Portc.3 Alias Pinc.3 Main: If Pinc.1 = 1 Then Goto Motoron End If If Pinc.1 = 1 Pinc.2 = 1 Pinc.3 = 1 Then Goto Motoroff Motor0n: Set Portd.1 Goto Main Motor0ff: Reset Portd.1 Goto Main End

Viewing all articles
Browse latest Browse all 20800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>