PDA

View Full Version : Port Indexing



Ioannis
- 25th September 2006, 10:59
I am almost ready to burn my PIC on the Microwaves!

A simple silly thing like indexing is not working while direct port access works OK. If anyone see what I don't please reply.

Pic used is 16F877 with PBP 2.40


Ioannis

sayzer
- 25th September 2006, 11:58
Hi Ioannis,


Why do you need to use HIGH and LOW? Any particular reason?

The code below should work ok!



for i=0 to 3
port_ix.0[i] = 1
pause 200
port_ix.0[i] = 0
pause 200
next i

Ioannis
- 25th September 2006, 12:33
Yes, that was the problem.

High and Low are Documented commands.

The =1 or =0 are Not!

Well, that kind of port accessing is neither too, but anyway!

Thanks a lot for the reply.