first off there is no exam and it is not for school
it's my personal work
there is a define for 4 mhz because
i am using a 20 mhz pic,
at 20mhz they do not run stable
do you know what this define is used for ?
the Hserout is before Hserin
i turn on PIC wait to see if something is sent
if it hangs it's afterwards not before
and there is no "pause 50"
unless you see it in some of the comments they do nothing
they are from a program that i started with then rewrote it
perhaps i should have took them out
and i should cleaned up the codes before posting
sorry for the sloppy mess