This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM uVision3

Hi,
i need to know how come 97 is use in VODLL and why
is 15 Mhz instead of 12Mhz...

void init_serial (void){/*Initialize Serial Interface*/
  PINSEL0 = 0x00000005;/* Enable RxD0 and TxD0    */
  U0LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit  */
  U0DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */
  U0LCR = 0x03;/* DLAB = 0                        */

Parents
  • U0DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */
    

    It is, of course, possible that the comment is wrong - is that what you think?

    The comment could be wrong because it's just a straightforward mistake - the author accidentally typed "15" instead of "12" - or it could be that it was once 15MHz, but has been updated for 12MHz - and the author forgot to update the comment to match.

    If you suspect this, you should ask your teacher!

    OR is this a "spot the deliberate errors" exercise?
    If so, you should check it against the other documentation that you have, and look at the physical hardware to see what components are actually fitted!

Reply
  • U0DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */
    

    It is, of course, possible that the comment is wrong - is that what you think?

    The comment could be wrong because it's just a straightforward mistake - the author accidentally typed "15" instead of "12" - or it could be that it was once 15MHz, but has been updated for 12MHz - and the author forgot to update the comment to match.

    If you suspect this, you should ask your teacher!

    OR is this a "spot the deliberate errors" exercise?
    If so, you should check it against the other documentation that you have, and look at the physical hardware to see what components are actually fitted!

Children
No data