• TwitterFacebookGoogle PlusLinkedInRSS FeedEmail

Mikroc Uart Interrupt Example

11.09.2019 

Also, upon entry to an interrupt routine, the CPU context, its status and registers, must be saved, and restored upon return. Typically the compiler is alerted to this by using a keyword, often interrupt, in the function definition. Does the compiler understand that this is an ISR?

  1. Stm32 Uart Interrupt Example
  2. Zynq Uart Interrupt
Active3 years, 10 months ago

Is there any way to use MikroC Pro for PIC libraries to make an interrupt on change based soft_uart?

bytes read by the below routine are rubbish. I am using a 20MHz crystal, and will try a 32MHz one when I get one.

Christian Lacdael
Uart
Christian LacdaelChristian Lacdael

1 Answer

I have solved the problem. I was using the wrong interrupt; you use the INT pin not an IOC pin.

For future reference:

INT pin: 'The INT pin can be used to generate an asynchronousedge-triggered interrupt'

Obviously, the soft_uart_read() can block, and with it being in an interrupt routine, you can't break it.

Communication is reliable with byte transmission. Intel pro 3945abg wireless lan driver windows 7.

Christian LacdaelChristian Lacdael
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged picuartmikroc or ask your own question.

Active3 years, 10 months ago

Is there any way to use MikroC Pro for PIC libraries to make an interrupt on change based soft_uart?

bytes read by the below routine are rubbish. I am using a 20MHz crystal, and will try a 32MHz one when I get one.

Christian Lacdael
Christian LacdaelChristian Lacdael

1 Answer

I have solved the problem. I was using the wrong interrupt; you use the INT pin not an IOC pin.

For future reference:

Stm32 Uart Interrupt Example

INT pin: 'The INT pin can be used to generate an asynchronousedge-triggered interrupt'

Obviously, the soft_uart_read() can block, and with it being in an interrupt routine, you can't break it.

Communication is reliable with byte transmission.

Christian LacdaelChristian Lacdael

Zynq Uart Interrupt

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged picuartmikroc or ask your own question.