We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
posted on 2012/12/28 10:49:22 PM CET
I need examples and code on How to use more than one interrupts in a program
posted on 2012/10/05 12:04:10 AM CEST
working library the mikroC PRO for AVR for PWM 2-16 bit with timers 2 - 4
for Mikromedia for ATmega (ATmega1280) and Xmega (ATXmega128a1)
posted on 2012/02/07 02:15:26 AM CET
I working on quick calculations (very delicate project in my company) on the MMB XMega and I need more speed (Standard I consume a lot of processor cycles while this is not the case for dsPIC)
Please, if somebody have library or Mikroe Team can easly precompile lib from PIC to AVR.
THX.
posted on 2011/08/31 12:18:39 PM CEST
Hi all the PIC Guru's out there, has anyone used the capacitive touch modules that are coming out on the new PIC's?
I thought of using a PIC12F1822 as a capacitive touch 4x4 keypad.
Kind regards
Trevor
posted on 2011/08/23 05:12:42 AM CEST
Good morning,
I'm using a PIC32MX795F512L with MikroC for PIC32 with license.
I'm using the "UART1 Receive interrupt" and an "External interrupt (INT0)". I wrote the head of the ISR using the Interrupt Assistant.
void encoderInt() iv IVT_EXTERNAL_0 ilevel 7 ics ICS_SOFT
void Ricezione() iv IVT_UART_1 ilevel 1 ics ICS_SOFT
In the main I set:
Code: Select all
UART1_Init(57600); // Initialize UART module at 57600 bps
Delay_ms(100); // Wait for UART module to stabilize
U1IP0_bit=1; // priority=1
U1IP1_bit=0;
U1IP2_bit=0;
U1RXIF_bit=0; // flag=0
U1RXIE_bit=1; // enable Interrupt Uart
URXISEL0_bit=0; // setting interrupt
URXISEL1_bit=0;
EnableInterrupts(); // Enable all interrupts
INT0EP_bit=1; //rising
INT0IF_bit=0; //pulizia flag
INT0IE_bit=1; //enable
INT0IP0_bit=1; //priority 7
INT0IP1_bit=1;
INT0IP2_bit=1;
EnableInterrupts(); // Enable all interrupts
In the Edit Project I set
Interrupt Control :
- Multi Vector
- Vector Spacing 32
- SRS: 7
I can't obtain the desired behaviour: if the high priority interrupt occours during the ISR of the low priority interrupt, the h.p.interrupt must be immediately serviced.
Currently the high priority interrupt (INT0) is seviced only at the end of the ISR of the low priority interrupt (UART1) (if the h.p.interrupt happens during the ISR of the low priority interrupt)
I would obtain nested interrupts. What I wrong?
Thanks a lot!
Franek