Hello,
below is the super simple code
There are leds connected to porta.1 and porta.0Code:SIKO: HIGH PORTA.0 HIGH PORTA.1 PAUSE 500 LOW PORTA.0 LOW PORTA.1 PAUSE 500 GOTO SIKO
The above code works, but only first line
If I place at first line code for PORTA.0 it works, but next line, for PORTA.1 does not works. If I swap them, then PORTA.1 will work, but PORTA.0 - not. But if I modify code a bit, to look like this, then it works properly.
SIKO:
HIGH PORTA.0
PAUSE 500
LOW PORTA.0
HIGH PORTA.1
PAUSE 500
LOW PORTA.1
GOTO SIKO
[/code]
Why this happens?
I have no TRISA, etc defined, as manual told us, HIGH/LOW statement in PBP does all necessary, so this is why it is so slow, but it appears not to work?





Bookmarks