Search found 75 matches
- 07 May 2024 08:10
- Forum: IDE
- Topic: Got stuck after reading text data using UART1_Read_Text() function
- Replies: 1
- Views: 33
Got stuck after reading text data using UART1_Read_Text() function
Hi, I have this code written by me when I tried to read text data it get stuck, I tried my best to solve this issues still I did not get any solution. Now I am trying to add interrupt but I don't know how to add interrupt in this code. Although it is working well with single one bytes data. The MCU ...
- 07 May 2024 06:30
- Forum: mikroC PRO for PIC General
- Topic: Got stuck after reading text data using UART1_Read_Text() function
- Replies: 0
- Views: 26
Got stuck after reading text data using UART1_Read_Text() function
Hi, I have this code written by me when I tried to read text data it get stuck, I tried my best to solve this issues still I did not get any solution. Now I am trying to add interrupt but I don't know how to add interrupt in this code. The MCU I have pc18f67k40 void main(){ char uart_input[10], uart...
- 04 May 2024 08:15
- Forum: mikroC PRO for PIC General
- Topic: UART1_Read_Text() is not working when I used escape sequences like \r\n
- Replies: 6
- Views: 186
Re: UART1_Read_Text() is not working when I used escape sequences like \r\n
Hello paulfjujo,
In that case, Can we say this is the issue of mikroE end or UART1_Write_Text() ?
Regards,
Kumar
In that case, Can we say this is the issue of mikroE end or UART1_Write_Text() ?
Regards,
Kumar
- 03 May 2024 07:46
- Forum: mikroC PRO for PIC General
- Topic: UART1_Read_Text() stop reading text data when I add delay or escape sequences
- Replies: 0
- Views: 54
UART1_Read_Text() stop reading text data when I add delay or escape sequences
Hello IVAN, I am trying to read text data through the UART1_Read_Text() function, I stop reading data when I add some delay or escape sequence. The flow of code output should not be changed. This is the code below I am using. The device I have for this code is pic18f67k40. void main(){ char uart_inp...
- 03 May 2024 07:31
- Forum: mikroC PRO for PIC General
- Topic: UART1_Read_Text() is not working when I used escape sequences like \r\n
- Replies: 6
- Views: 186
Re: UART1_Read_Text() is not working when I used escape sequences like \r\n
Hello, When I introduced some delay or "\r\n" escape sequences, the code stopped reading text data. Why is this happening? this is the below code I have void main(){ char uart_input[10], uar[10] = "0"; int entry = 1; RC1PPS = 0x17; CK1PPS = 0x16; RC0PPS = 0x0D; CKPPS = 0x0C; TRISC7_bit = 1; // RX1 a...
- 01 May 2024 07:00
- Forum: mikroC PRO for PIC General
- Topic: UART1_Read_Text() is not working when I used escape sequences like \r\n
- Replies: 6
- Views: 186
Re: UART1_Read_Text() is not working when I used escape sequences like \r\n
Hi paulfjujo, The way you suggested in the code I tried it is not working. Writting these statement outside else it will not effect anything UART1_Write_Text("\r\n"); Delay_ms(1000); next thing you are talking about interrupt, could you explain more about this thing like, how to use interrupt? regar...
- 30 Apr 2024 05:25
- Forum: mikroC PRO for PIC General
- Topic: UART1_Read_Text() is not working when I used escape sequences like \r\n
- Replies: 6
- Views: 186
UART1_Read_Text() is not working when I used escape sequences like \r\n
Hello, I was getting problem every time when I used UART1_Write_Text("\r\n"); and Delay_ms(1000); . This the flow of execution of this given code. void main(){ char str[256] = "0"; char st[256]; TRISC6_bit = 0; // Tx pin set as output TRISC7_bit = 1; // Rx pin set as input UART1_Init(9600); // Initi...
- 16 Apr 2024 10:59
- Forum: mikroC PRO for PIC General
- Topic: can I read two digit number using UART1_Read()?
- Replies: 7
- Views: 1308
Re: can I read two digit number using UART1_Read()?
Hello paulfjujo, Your code is working fine. but if print number in next line it will not work. char c: int value; int i=0; .. somme init here.... do { i=0; if ( (UART1_Data_Ready())&& (i==0)) { c=UART1_Read() ; UART1_Write (c); // echo '6' en ascii value=( c-48)*10; // value=6*10=60 i++; } if ((UART...
- 12 Apr 2024 10:59
- Forum: mikroC PRO for PIC General
- Topic: Overlapping addresses of 128k flash memory
- Replies: 1
- Views: 297
Re: Overlapping addresses of 128k flash memory
Hello,
Can someone guide for the above query?
Regards,
Kumar
Can someone guide for the above query?
Regards,
Kumar
- 08 Apr 2024 05:20
- Forum: mikroC PRO for PIC General
- Topic: can I read two digit number using UART1_Read()?
- Replies: 7
- Views: 1308
Re: can I read two digit number using UART1_Read()?
Hello paulfjujo,
I am sending these number in ascii formate.
for example:
Lets say if I want to read 65 from the above code It will only read 6
Regards,
Kumar
I am sending these number in ascii formate.
for example:
Code: Select all
unsigned int number;
number = UART1_Read(); //input = 65
UART1_Write(number); //output = 6
Regards,
Kumar
- 08 Apr 2024 05:15
- Forum: mikroC PRO for PIC General
- Topic: can I read two digit number using UART1_Read()?
- Replies: 7
- Views: 1308
Re: can I read two digit number using UART1_Read()?
Hello IvanJeremic,
Could you provide any example or link of that query from where I can get something
Regards,
Kumar
Could you provide any example or link of that query from where I can get something
Regards,
Kumar
- 01 Apr 2024 13:27
- Forum: mikroC PRO for PIC General
- Topic: Overlapping addresses of 128k flash memory
- Replies: 1
- Views: 297
Overlapping addresses of 128k flash memory
Hello, I'm encountering an issue with my PIC18F67K40 microcontroller. It has 128k bytes of flash memory. After programming the MCU using MikroBootloader GUI and UART, I'm not receiving any output. Here are the steps I'm following: I program the MCU using bootloader firmware with the help of PICkit3....
- 30 Mar 2024 07:57
- Forum: mikroC PRO for PIC General
- Topic: Not getting output after flashing firmware using mikrobootloader gui
- Replies: 0
- Views: 326
Not getting output after flashing firmware using mikrobootloader gui
Hi, I have MCU pic18f67k40 device. 1) I flash this mcu with the bootloader code. using pickit3 which is called programmer. Initially, I successfully flashed the MCU with the bootloader code utilizing a PICKIT3 programmer. The provided code snippet demonstrates the bootloader functionality, indicatin...
- 27 Mar 2024 13:55
- Forum: mikroC PRO for PIC General
- Topic: can I read two digit number using UART1_Read()?
- Replies: 7
- Views: 1308
can I read two digit number using UART1_Read()?
Hi,
I have a doubt, can I read two digit number using UART1_Read() function, number can be any two digit number.
If yes then how ?
Any suggestions will be appreciated!
Reagrds,
kumar
I have a doubt, can I read two digit number using UART1_Read() function, number can be any two digit number.
If yes then how ?
Code: Select all
UART1_Read(digit);
Reagrds,
kumar
- 18 Mar 2024 08:28
- Forum: mikroC PRO for PIC General
- Topic: How to print received number on UART terminal
- Replies: 8
- Views: 584
Re: How to print received number on UART terminal
Hi rudolffw,
Not like this.
you can refer this link for better understanding-viewtopic.php?f=88&t=80482&p=318143#p318143
Regards,
Kumar
Not like this.
you can refer this link for better understanding-viewtopic.php?f=88&t=80482&p=318143#p318143
Regards,
Kumar