Hi I have found that if I power up the PIC ten send data to the printer and then switch on the printer then everything from then on is fine. I was actually trying tio clear the pic serial output buffer at power up. Is this possible?
kind regards and many thanks John
almost sure you're using SEROUT right?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
hi again yes i am using serial out as follows
printoutB:
gosub GetBin
gosub year10
SEROUT PortC.6,T9600,[printit,"k =",#peak,"0 ftlbs",13,10]
pause 100: return
any suggestions please
thanks again john
2 choice, Or you change it to HSEROUT (with the according DEFINEs + TRIS ) or you still use SEROUT BUT you give to that pin the right idle level when your program start.
Somewhere at the top of your program, add those simple line
HIGH PORTC.6
PAUSE 50
and post your results
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks