UART not working with XT PLL 8x

General discussion on mikroC.
Post Reply
Author
Message
vaia-riseng
Posts: 10
Joined: 24 Oct 2011 08:36

UART not working with XT PLL 8x

#1 Post by vaia-riseng » 06 Dec 2011 17:34

Hi! I am trying to work with dspic30f4011 UART capability. When the setting was in XT only, the UART was working. But when I edited it to XT with PLL 8x, no output came out from UART terminal.

Code: Select all

void main() {
  TRISB = 0xFFFE;
  ADPCFG = 0xFFFF;

  changechecker = 0;
  changeinputnew = 0;
  changeinputold = 0;

  UART1_Init_Advanced(9600,_UART_8BIT_NOPARITY,_UART_ONE_STOPBIT);
  UART1_Write_Text("Hello");
  Delay_ms(100);
}


My code is the one above. I have no idea what to change. I tried to change Baud rate from 9600 to 19200 but does not work. The settings are the following: Image

Thank you in advance! :)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: UART not working with XT PLL 8x

#2 Post by filip » 07 Dec 2011 10:47

Hi,

If you use PLL, you should enter multiplied value in the oscillator frequency box in the Edit Project window.

Regards,
Filip.

Post Reply

Return to “mikroC General”