Russ,
I am not sure what you are trying to do. Without an OScope, you probably cannot see what your program is doing because it is doing it so fast.
It will and does go low with or without your Pause statement. Without the Pause, RB6 is low only for a few uS, which is hard to detect. Your program is humming along at 1,000,000 instructions per second. You make RB6 low with line 5 and then immediately make it high again with line 1) with only a few instruction in between. With the pause of 1 (= 1000uS) inlcuded on line 7, you basically get a 1mS off time before you turn it back on with line 1. Clear as mud?PAUSE 1 ' WHY DO I NEED THIS PAUSE STATEMENT? WITHOUT IT,
'PORTB.6 NEVER GOES LOW. WITH IT, PORTB.6 IS
'LOW ONLY 1 mS
For reference
LOOP:
1) HIGH PORTB.6
2) PAUSE 1000
3) HIGH PORTB.7
4) PAUSE 100
5) LOW PORTB.6 'DOES NOT GO LOW!
6) LOW PORTB.7
7) PAUSE 1 ' WHY DO I NEED THIS PAUSE STATEMENT? WITHOUT IT,
'PORTB.6 NEVER GOES LOW. WITH IT, PORTB.6 IS
'LOW ONLY 1 mS.
8) LOW PORTB.6 'DOES NOT STAY LOW
9) GOTO LOOP
Paul Borgmeier
Salt Lake City, Utah
USA
Bookmarks