EgrK
Junior Member level 2
- Joined
- Jul 31, 2012
- Messages
- 24
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Location
- East part of world
- Activity points
- 1,438
Hi
a project to Send number through serialport, using max232 and pic16f627.
the given are:
High data rate for sendding (BRGH=1)
Asynchronous ( SYNC=0)
Then according to datasheet
https://ww1.microchip.com/downloads/en/DeviceDoc/40300C.pdf
page 69 ,check USART Baud Rate Generator table 12.1 (BAUD RATE FORMULA)
i think we can calculate SPBRG from this equation
Baud Rate= FOSC/(16(X+1)); where x= SPBRG
I am reading a book and the author according to his calculation, he used the equation
Baud Rate= FOSC/(64(X+1)); where x= SPBRG
He obtain value =12 for SPBRG
And the baud rate is 19200, Fosc=4MHz
I have to know why I am mistaken
a project to Send number through serialport, using max232 and pic16f627.
the given are:
High data rate for sendding (BRGH=1)
Asynchronous ( SYNC=0)
Then according to datasheet
https://ww1.microchip.com/downloads/en/DeviceDoc/40300C.pdf
page 69 ,check USART Baud Rate Generator table 12.1 (BAUD RATE FORMULA)
i think we can calculate SPBRG from this equation
Baud Rate= FOSC/(16(X+1)); where x= SPBRG
I am reading a book and the author according to his calculation, he used the equation
Baud Rate= FOSC/(64(X+1)); where x= SPBRG
He obtain value =12 for SPBRG
And the baud rate is 19200, Fosc=4MHz
I have to know why I am mistaken
Last edited: