
Originally Posted by
mister_e
If i remember correctly, lower bits of PORTB, ( PORTB.2 ) is also multiplexed with RX of the USART. And i don't remember if this PIC allow you to disable the RX part, so my guess would be...
Code:
for value = 1 to 255
RCSTA=0 ' Disable USART
TRISB.2=0
pause 25
LCDout $FE,$C0, dec value
pause 25
RCSTA=$90 ' enable USART
pause 25
hserout [0,dec value] ; IF THIS LINE IS ENABLED, LCD DOESN NOT DISPLAY ANYTHING
pause 50
next value
sure enough there's few unecessary delay up here... not sure if this will help and work at all using the above... Maybe a good situation to use SEROUT/SEROUT2/DEBUG?
PS: Make sure of your DEFINES, must all be in UPPERCASE, unless, it may not work.
Hi Steve, A little time sharing going on in there, cool.
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