I need to make use of the USART module on a 16F627. I have tried a number of times but I can't get it to receive anything. Note that I am not bothered about transmitting. I have a feeling it's not working because I have not set some registers that relate to the USART, but I have no idea what they should be set to. I basically want to receive 2 bytes of serial data, and read them whenever I am ready. I took a look at the datasheet, but I still stand confused. If someone could give me some example code or tell me what registers to set, and what to set them to, it would be very much appreciated.
Many thanks,
Matthew
Bookmarks