解決済! 解決策の投稿を見る。
Hello and welcome to the fora JPSB.
Firstly, please DO NOT post the same question in multiple places. Pick what you think is the most appropriate one and post it there.
Presumably you are not using the PLL and so the source for your baud clock is direct from the OSC module. Like this you are limited to 4800 baud as you need the 13 divisor to come close.
There is a bit in CONFIG2 that allows you to use the BUSCLK as the source for your baud clock (SCIBDSRC). Now I think you can configure (I have not confirmed it entirely, left for you) the PLL for the maximum bus frequency of 8Mhz with a 4MHz xtal. With this and the same baudrate divisor setup you will get 9600.
Hello,
To generate standard baud rates, there would be far more flexibility if a crystal frequency of either 3.6864 MHz or 4.9152 MHz were to be used. Crystals of both frequencies should normally be readily available as "standard" frequencies.
Regards,
Mac
Hello and welcome to the fora JPSB.
Firstly, please DO NOT post the same question in multiple places. Pick what you think is the most appropriate one and post it there.
Presumably you are not using the PLL and so the source for your baud clock is direct from the OSC module. Like this you are limited to 4800 baud as you need the 13 divisor to come close.
There is a bit in CONFIG2 that allows you to use the BUSCLK as the source for your baud clock (SCIBDSRC). Now I think you can configure (I have not confirmed it entirely, left for you) the PLL for the maximum bus frequency of 8Mhz with a 4MHz xtal. With this and the same baudrate divisor setup you will get 9600.