Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top