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

change Baudrate on LPC935 during the execution of the program

hi all,
i would like to know whether it is possible to change the baudrate of the serial port to different rates,
i have a program which have to communicate with different devices with different baudrates. I try to change the BRGR0 and BRGR1 values but when that part of the code is executed in the simulator, the values do not change to another baudrate different from the default value(115200). Is the code executed not working on simulation or do i have to reset a Register to trigger that UART must be restarted. Any help is appreciated.
Many thanks,
khaled Sarsam

Parents
  • thank you people all for the support, I saw the ASM file and indeed the values are changed to the desired values in the BRGR, I think the simulator doesnot scan again to see whether the values in the BRGRs are changed whether not so that's why it sticks to the first baudrate selected. Thank you all, i will test it on my evaluation board when i get it back from my friend,
    best wishes,
    khaled

Reply
  • thank you people all for the support, I saw the ASM file and indeed the values are changed to the desired values in the BRGR, I think the simulator doesnot scan again to see whether the values in the BRGRs are changed whether not so that's why it sticks to the first baudrate selected. Thank you all, i will test it on my evaluation board when i get it back from my friend,
    best wishes,
    khaled

Children
No data