Hi,
I am using PIC18F45k22 controller. And i select tinybld18F23K22_int16MHz_19200 and modified for 18f45k22 pic controller.
I have doubt, whether this will work with internal crystal or i will have to change the crystal?
Or will it work with 4MHz/8Mhz crystal? if change the MACRO in code.
#include"p18f45k22.inc"IdTypePIC=0x64;Pleaserefertothetablebelow,mustexistsin"piccodes.ini"#define max_flash 0x8000 ; in WORDS, not bytes!!! (= 'max flash memory' from "piccodes.ini" divided by 2), Please refer to the table below#define SELECTEUSART 1 ; EUSART(1/2), Please refer to the table below#define EEPROMSIZE 256 ; Size of EEPROM (256/1024), Please refer to the table belowxtalEQU16000000;youmayalsowanttochange:_HS_OSC_XT_OSCbaudEQU19200;standardTinyBldbaudrates:115200or19200
Epy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have doubt, whether this will work with internal crystal ?
config FOSC = INTIO67 ;Internal oscillator block, port function on RA6 and RA7
config PLLCFG = OFF ;Oscillator used directly
config PRICLKEN = ON ;Primary clock enabled
bsf OSCCON,IRCF2 ;int clock 16MHz
Or will it work with 4MHz/8Mhz crystal?
;use only SPBRG (8 bit mode default) not using BAUDCON
movlw spbrg_value
movwf _SPBRG
Hi,
I am using PIC18F45k22 controller. And i select tinybld18F23K22_int16MHz_19200 and modified for 18f45k22 pic controller.
I have doubt, whether this will work with internal crystal or i will have to change the crystal?
Or will it work with 4MHz/8Mhz crystal? if change the MACRO in code.
Hi Epy
I have doubt, whether this will work with internal crystal ?
config FOSC = INTIO67 ;Internal oscillator block, port function on RA6 and RA7
config PLLCFG = OFF ;Oscillator used directly
config PRICLKEN = ON ;Primary clock enabled
bsf OSCCON,IRCF2 ;int clock 16MHz
Or will it work with 4MHz/8Mhz crystal?
;use only SPBRG (8 bit mode default) not using BAUDCON
movlw spbrg_value
movwf _SPBRG
from Dan.