raycao88124
Newbie level 2
Hello everyone
Just have some very basic stupid questions about PIC18F4550 (MPLAB v8.85, C18 compiler)
1. If I want to use internal oscillator as system clock source, is the internal oscillator frequency the same as clock frequency.
2. If I want to use internal oscillator as system clock source at 8 Mhz, is setting OSCCON = 0x72 at the top of the program enough(without setting any other configuration bits)? Or are there other configuration bits that need to be set?
3. If I want to use internal oscillator as system clock source at 8 Mhz, and I want to use 100 khz baud rate for I2C, is setting SSPADD = 0x13 correct?
Thank you very much!
Just have some very basic stupid questions about PIC18F4550 (MPLAB v8.85, C18 compiler)
1. If I want to use internal oscillator as system clock source, is the internal oscillator frequency the same as clock frequency.
2. If I want to use internal oscillator as system clock source at 8 Mhz, is setting OSCCON = 0x72 at the top of the program enough(without setting any other configuration bits)? Or are there other configuration bits that need to be set?
3. If I want to use internal oscillator as system clock source at 8 Mhz, and I want to use 100 khz baud rate for I2C, is setting SSPADD = 0x13 correct?
Thank you very much!