Serout affected by other pins
Gday Melanie
I have continued mucking around with this and have eliminated the LCD and ADC, and now have a very basic example that fails
on demand.
To allow me to get a decent CRO result i have also reset the pause time.
'set CRO timebase to 2mS for best results
-----------------------------------
serpin con 1 ' serial output pin
sermode con 0 ' output mode driven true, fails after any pin is set???
ANSEL = 0
TRISIO = %00000000 '
start:
SerOut serpin, sermode, [ "T" ]
1) GPIO.1 = 1 <-serout pin
2) GPIO.4 = 0
3) GPIO.1 = 1 <-serout pin
pause 6
goto start
end
-----------------------------------
results i get are
Pulse OK with idle time HIGH ( Ie std serout no other ops )
1), 2) and 3) commented out. ( std serout )
1) only commented out.
Pulse OK with idle time LOW ( Ie incorrect )
3) only commented out.
1) and 3) commented out.
over to you.
Andrew
Dont worry, ive got it. I found an FAQ on the MEL american site re the 16F675 defaulting its comparator to ON. I have been using a 16F88 up till now and that defaults to off, hence i didnt even think to check it.
Interestingly enough, my serout was on the -ve comparator input, so not sure why it behaved that way.
Anyway, i add CMCON = 7 at the top and she appears to be happy. Sorry for wasting yr time.
Andrew