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?
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.
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.
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.
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.