Feb 27, 2010 #1 R r3stles Newbie level 3 Joined Jun 13, 2009 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,307 hELP I need help. How to declare: USART in mikroC The code id : USART_INIT(9600); //initializare serial port SPBRG=103; // Pentru 9600 baud rade ... but I'm error : undeclared identifier USART_INIT in expression.
hELP I need help. How to declare: USART in mikroC The code id : USART_INIT(9600); //initializare serial port SPBRG=103; // Pentru 9600 baud rade ... but I'm error : undeclared identifier USART_INIT in expression.
Feb 27, 2010 #2 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 Re: hELP Does your hardware has USART device? -- Amr Ali
Feb 27, 2010 #3 R r3stles Newbie level 3 Joined Jun 13, 2009 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,307 Re: hELP I want to send data to serial port through HyperTerminal
Feb 27, 2010 #4 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 Re: hELP Does your ship has a USART port? -- Amr Ali
Feb 27, 2010 #5 R r3stles Newbie level 3 Joined Jun 13, 2009 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,307 Re: hELP What do you mean you have port USART. I'm used to PIC16F877A and MAX232 for transmitting data
Re: hELP What do you mean you have port USART. I'm used to PIC16F877A and MAX232 for transmitting data
Feb 27, 2010 #6 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 Re: hELP Did you check the case of the function? C is case sensitive. I think it is Usart_Init not USART_INIT. -- Amr Ali
Re: hELP Did you check the case of the function? C is case sensitive. I think it is Usart_Init not USART_INIT. -- Amr Ali
Feb 28, 2010 #7 Tahmid Advanced Member level 6 Joined Jun 17, 2008 Messages 4,756 Helped 1,798 Reputation 3,588 Reaction score 1,656 Trophy points 1,413 Location Berkeley, California Activity points 30,586 hELP Hi, mikroC is not case sensitive. Try Code: UART1_Init(9600); You do not need to write SPBRG = 103, as the compiler does that for you when you init UART. Hope this helps. Tahmid.
hELP Hi, mikroC is not case sensitive. Try Code: UART1_Init(9600); You do not need to write SPBRG = 103, as the compiler does that for you when you init UART. Hope this helps. Tahmid.
Feb 28, 2010 #8 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 Re: hELP C is case sensitive. Do you mean that compiler supported functions are not case-sensitive? -- Amr Ali Added after 15 minutes: Check that link for errors and supported functions in MikroC **broken link removed** -- Amr Ali
Re: hELP C is case sensitive. Do you mean that compiler supported functions are not case-sensitive? -- Amr Ali Added after 15 minutes: Check that link for errors and supported functions in MikroC **broken link removed** -- Amr Ali
Mar 1, 2010 #9 Tahmid Advanced Member level 6 Joined Jun 17, 2008 Messages 4,756 Helped 1,798 Reputation 3,588 Reaction score 1,656 Trophy points 1,413 Location Berkeley, California Activity points 30,586 hELP Hi, The library functions like UART, SPI, LCD, etc are not case sensitive.
Mar 1, 2010 #10 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 Re: hELP Got it. -- Amr Ali