Author |
Message |
Topic: Uart interrupts while using PIC18f87j94 |
harel12k
Replies: 11
Views: 29499
|
Forum: General CCS C Discussion Posted: Mon Dec 20, 2021 5:27 am Subject: Problem solved |
Thanks for answers.
Problem solved by writing the pin_selects rows before #use_rs232.
And in rs232 I'm not calling pin names, I'm calling UART1 or UART2 or UART3 instead. |
Topic: Uart interrupts while using PIC18f87j94 |
harel12k
Replies: 11
Views: 29499
|
Forum: General CCS C Discussion Posted: Thu Dec 16, 2021 12:26 am Subject: Data interrupts doesn't happening |
#int_RDA2
void recieved_byte(){
output_toggle(R_LED1); // this is external LED on my board
putc(RCREG2,SECOND_STREAM);
clear_interrupts(INT_RDA2);
}
#int_RDA
void recieved_byte() ... |
Topic: Uart interrupts while using PIC18f87j94 |
harel12k
Replies: 11
Views: 29499
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2021 1:31 pm Subject: Compiler upgrade hasn't solved the problem |
Thank for all answers,
I updated compiler to 5.068, same problem.
More details:
Uart interrupts still doesn't occur.
When I'm reading RCREG1/2 registers, it's stay the same value (0x00) and nev ... |
Topic: Uart interrupts while using PIC18f87j94 |
harel12k
Replies: 11
Views: 29499
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2021 1:26 am Subject: My chip doesn't get any data before interrupts enabled |
Thank about you answer,
I checked this and I'm not getting any data before I'm enabling interrupts.
I'm working via Realterm and standard FTDI so I'm controlling the data stream.
I'm working with C ... |
Topic: Uart interrupts while using PIC18f87j94 |
harel12k
Replies: 11
Views: 29499
|
Forum: General CCS C Discussion Posted: Tue Dec 14, 2021 6:28 am Subject: Uart interrupts while using PIC18f87j94 |
Hi,
I'm dealing with interrupts problem while using PIC18f87j94.
Until three days ago, I worked with pic18f8722 with 2 usart ports and i2c.
Some constraints forced me looking for new uc with 3 u ... |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Tue Dec 01, 2020 4:06 am Subject: Problem with times (pic18F8722) |
You are missing the point about time.
Understand that a single C instruction can be hundreds of machine instructions.
Even something as simple as the actual interrupt call takes two instruction
cy ... |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Sun Nov 29, 2020 1:36 am Subject: Problem with times (pic18F8722) |
Then your #use delay, and clock setup are wrong.
The actual output instruction again takes time, but you should see perhaps
55uSec.
Post your full code. Clock setup fuses etc..
Also what physica ... |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Fri Nov 27, 2020 11:57 pm Subject: Problem with times (pic18F8722) |
You can't interrupt that fast. You are only running at 2MIPS. It takes
typically about 30 instructions to actually get into an interrupt, and another
25 to get out. So at 8MHz, just under 30uSec. I ... |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Fri Nov 27, 2020 4:16 am Subject: Problem with times (pic18F8722) |
Maybe he has an 18F87K22 ??
The correct device name is pic18f8722 |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Thu Nov 26, 2020 10:22 pm Subject: Correct device name |
I can't find a CCS device file for the PIC18F722 in
either version 5 or version 4.
Also can't find a datasheet online, is this the correct device name?
The correct device is :
pic18f8722
... |
Topic: Problem with times (pic18F8722) |
harel12k
Replies: 12
Views: 27607
|
Forum: General CCS C Discussion Posted: Thu Nov 26, 2020 11:45 am Subject: Problem with times (pic18F8722) |
Hey,
I'm using pic18F722 with 8 MHz oscillator.
I'm interesting to get interrupt every 10us.
From unknown reason i can't get an interrupt in less then 50us intervals.
When I'm using delay_us( ... |
|