Search found 79 matches

by kumar123
29 May 2024 13:37
Forum: mikroC PRO for PIC General
Topic: PPS RX problem in UART read
Replies: 1
Views: 78

PPS RX problem in UART read

Hello, I have encounter an issue in my code I want to use different pins of UART instead of default pins. for that I have set PPS value, this is working for Tx pin not for Rx. This is my code: sbit rx_1 at RB4_bit; sbit rx_1_d at TRISB4_bit; sbit tx at RB5_bit; sbit tx_d at TRISB5_bit; void main(){ ...
by kumar123
20 May 2024 05:42
Forum: IDE
Topic: Got stuck after reading text data using UART1_Read_Text() function
Replies: 5
Views: 337

Re: Got stuck after reading text data using UART1_Read_Text() function

Hello AntiMember,
I had tried earlier the solution you suggested, It was not working.

Regards,
kumar
by kumar123
15 May 2024 06:30
Forum: mikroC PRO for PIC General
Topic: PWM click library is not working "PWM_P16.c" file not found
Replies: 7
Views: 626

Re: PWM click library is not working "PWM_P16.c" file not found

Hello,
No, I did not able to solve that problem

Regards,
Kumar
by kumar123
08 May 2024 05:26
Forum: IDE
Topic: Got stuck after reading text data using UART1_Read_Text() function
Replies: 5
Views: 337

Re: Got stuck after reading text data using UART1_Read_Text() function

Hi sgssn,
Have you try to run once?
let me explain if I send 1; , 2; , 3; , ..... till 9; it will work perfect. when I tried to send 12; , 34; 10; etc it got stuck.

To understand the code just dry run once after dry run tried to run on the machine you must get that issue.

Regards,
Kumar
by kumar123
07 May 2024 08:10
Forum: IDE
Topic: Got stuck after reading text data using UART1_Read_Text() function
Replies: 5
Views: 337

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 ...
by kumar123
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: 138

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...
by kumar123
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: 276

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
by kumar123
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: 145

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...
by kumar123
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: 276

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...
by kumar123
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: 276

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...
by kumar123
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: 276

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...
by kumar123
16 Apr 2024 10:59
Forum: mikroC PRO for PIC General
Topic: can I read two digit number using UART1_Read()?
Replies: 7
Views: 1404

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...
by kumar123
12 Apr 2024 10:59
Forum: mikroC PRO for PIC General
Topic: Overlapping addresses of 128k flash memory
Replies: 1
Views: 334

Re: Overlapping addresses of 128k flash memory

Hello,
Can someone guide for the above query?

Regards,
Kumar
by kumar123
08 Apr 2024 05:20
Forum: mikroC PRO for PIC General
Topic: can I read two digit number using UART1_Read()?
Replies: 7
Views: 1404

Re: can I read two digit number using UART1_Read()?

Hello paulfjujo,
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
Lets say if I want to read 65 from the above code It will only read 6

Regards,
Kumar
by kumar123
08 Apr 2024 05:15
Forum: mikroC PRO for PIC General
Topic: can I read two digit number using UART1_Read()?
Replies: 7
Views: 1404

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

Go to advanced search