The writing procedure is same as mentioned in the beginning of the post i.e. START -> WRITE SLAVE ADDRESS -> WRITE REGISTER ADDRESS -> WRITE DATA -> STOP
Before setting the device in the master mode, make sure you have another device which is in slave mode. I have HC-06 which is always in the slave mode.
Starting with the simplest one i.e using the POLL method. The data is Received in blocking mode i.e the CPU will block every other operation until the data transfer is complete. This method is good to use if you are only using UART and nothing else otherwise all other operations will be affected.
PIC16 is a microcontroller series from Microchip. It is not difficult for a beginner to learn but powerful enough to be used in high level applications…