AnsweredAssumed Answered

Problem setting up ADuC7129 UART for 3 MHz and 6 MHz

Question asked by oaldana on Apr 2, 2013
Latest reply on Apr 15, 2013 by MMA

Hi,

 

I am having problems setting up the ADuC7129 UART interface for 3 MHz and 6 MHz. 

 

CDDLMNRateCOM0DIV0COM0DIV1COM0DIV2Notes
01089229976680x010x000x837C3 MHz
01044659953360x010x000x81BE6 MHz

 

3 MHz Register Settings:

  POWCON = 0x0; // CD=0, select 41.78MHz PC=0, select Active mode

  COM0CON0 = 0x80;      // enable access to DIV0 and DIV1 registers

  COM0DIV0 = 0x01;

  COM0DIV1 = 0x00;

  COM0CON0 = 0x3;         // set word length to 8 bits, enable Rx and Tx

  COM0DIV2 = 892 | 0x8000;

Measured rate via oscilloscope: ~712 Kbps

 

6 MHz Register Settings:

  COM0CON0 = 0x80;      // enable access to DIV0 and DIV1 registers

  COM0DIV0 = 0x01;

  COM0DIV1 = 0x00;

  COM0CON0 = 0x3;         // set word length to 8 bits, enable Rx and Tx

  COM0DIV2 = 446 | 0x8000;

Measured rate via oscilloscope: ~411 Kbps

 

-Omar

Outcomes