uart correction values for 3.9Mhz (default sky freq.)

This commit is contained in:
fros4943 2009-10-27 16:25:28 +00:00
parent 6f4a537aa0
commit 53d03aa924

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)$Id: uart1.c,v 1.12 2009/09/08 10:39:49 nifi Exp $
* @(#)$Id: uart1.c,v 1.13 2009/10/27 16:25:28 fros4943 Exp $
*/
/*
@ -132,14 +132,14 @@ uart1_init(unsigned long ubr)
/*
* UMCTL1 values calculated using
* http://mspgcc.sourceforge.net/baudrate.html
* Table assumes that F_CPU = 2,457,600 Hz.
* Table assumes that F_CPU = 3,900,000 Hz.
*/
switch(ubr) {
case UART1_BAUD2UBR(115200ul):
UMCTL1 = 0x4a;
UMCTL1 = 0xF7;
break;
case UART1_BAUD2UBR(57600ul):
UMCTL1 = 0x5b;
UMCTL1 = 0xED;
break;
default:
/* 9600, 19200, 38400 don't require any correction */