For Rs-232 you need to have a MAX232 or similar chip between PIC and the other RS232 device( PC ?)
Also you need to add 'errors' to the USERS232(...options...) so that the UART will not 'hang' when receiving data. I know you're only transmitting now...but ...eventually you'll want to get data.
Also use
#FUSES PUT //enable Power Up Timer
While this adds a very small delay it allows the PIC to Power Up in a neat,orderly fashion.
And.... usually there's no need to specifically use Set_tris...... as the compiler will handle the DDR as required.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum