cheekang
Newbie level 6
hi i in trouble in define the baud rate for PIC 16F877A in hi-tech c compiler:
below are some code that i get from cytron website:
i don't know how they get "SPBRG=0x0A" (set baud rate as 115200 baud), can somebody help me to explain this?
i am using PIC 16F877A in hi-tech c compiler, external oscillator that connect to PIC are 4MHz, and for uart baud rate setting = 115200 baud.
kindly advice. thanks a lot
below are some code that i get from cytron website:
Code:
SPBRG=0x0A; // set baud rate as 115200 baud
BRGH=1;
i don't know how they get "SPBRG=0x0A" (set baud rate as 115200 baud), can somebody help me to explain this?
i am using PIC 16F877A in hi-tech c compiler, external oscillator that connect to PIC are 4MHz, and for uart baud rate setting = 115200 baud.
kindly advice. thanks a lot