Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: rs232 serial communication

Home Forums MikroC Pro for PIC Tutorial Discussions rs232 serial communication Reply To: rs232 serial communication


Bitahwa Bindu

1110 is not 0x70 in Hex, it’s 0x0E. And the OCCON value is not 1110.

If you read the datasheet on page 28, the value of OSCCON register should be:

bit 0 and 1= 11 or 10 (to select internal oscillator).

bit 2= 1: (frequency is stable)

bit 3=0 Device is running from the internal oscillator

bit 6 to 4 =110 To select 8 MHz

So the OSCCON value will be: 1100111 in binary or 0x67


Select your currency
EUR Euro
USD United States (US) dollar