I think this might help ...
AllDigital.pbp
http://www.picbasic.co.uk/forum/showthread.php?t=11100
Or you could just ...But AllDigital would have told you that too.Code:CMCON0 = 7
hth,
I think this might help ...
AllDigital.pbp
http://www.picbasic.co.uk/forum/showthread.php?t=11100
Or you could just ...But AllDigital would have told you that too.Code:CMCON0 = 7
hth,
DT
Woops,
Also change ...
TRISA = %11111110
to
TRISA = %11111100
RS232_out is on PORTA.1
No that won't matter, never mind. Duh!
Last edited by Darrel Taylor; - 23rd August 2009 at 22:23. Reason: Not!
DT
What is "PORTA.4" connected to?
Dave
Always wear safety glasses while programming.
No I have not looked at the data sheet . . .
I see you aliased GPIO as portA, shouldn't you also alias the TRISIO as TRISA, for this to work ?Code:TRISA = %11111110 PORTA = GPIO
Code:TRISIO = TRISA GPIO = PortA PortA = %00101100 TrisA = %11111100
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks