Hi Rob, Vasile,
I don't have a 14MHz crystal at hand but did some tests:
- with 14.475.600 :
; c:\jallib\include\peripheral\usart/usart_common.jal
; 43 procedure _calculate_and_set_baudrate() is
l__calculate_and_set_baudrate
; 75 SPBRG = usart_div
movlw 47
movwf v_spbrg
; 79 TXSTA_BRGH = true
bsf v_txsta, 2 ; txsta_brgh
Where 47 with brgh=1 is exactly 19200 in async mode.
Furthermore, I tested with 10MHz and 16MHz crystals and they both run
fine at 19200.
So, I don't see anything wrong and have no clue where to look further.
So Vasile, please provide more, specific info on reproducing the
problem (files as attachments please ;).
> PS. Joep: 'con_s_ider' using a dictionary from time to time!
Spell-check in gmail is not automagic and has (like all
spell-checkers) a lot of false hits on the type of messages we write.
But you are right and I'll try to use it more often.
Joep
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---