Newbe problem

Status
Not open for further replies.

Russlk

New Member
I am using Proton IDE lite and MeLabs Epic programmer. This program sets portb.1 high. I don't understand that. Also, the loop never ends. I tried FOR -- TO -- NEXT but that doesn't work either. Any suggestions?

Device = 12f675
xtal =4
ALL_DIGITAL = TRUE
TRISIO = %000000
DIM POO AS BYTE
LOW PORTB.1
LOW PORTB.5

'TRY A SIMPLE LOOP
LOOP:
HIGH PORTB.2
POO = POO+1
LOW PORTB.2
IF POO > 64 THEN GOTO OOP
GOTO LOOP
OOP:
END
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…