Libstock prefers package manager

Package Manager

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]

Sort By

USER REQUESTS

first | 1 | 2 | 3 | 4 | 5 | 6 last
Richo Mburura
va200868802

posted on 2012/12/28 10:49:22 PM CET

Internal MCU modules

MORE THAN ONE INTERRUPTS

I need examples and code on How to use more than one interrupts in a program

Roman Toropov
RomanT

posted on 2012/10/05 12:04:10 AM CEST

Internal MCU modules

working library PWM 2-16 bit with timers 2 - 4 for the "mikroC PRO for AVR"

working library the mikroC PRO for AVR for PWM 2-16 bit with timers 2 - 4
for Mikromedia for ATmega (ATmega1280) and Xmega (ATXmega128a1)

Stevan Radišić
stevanr

posted on 2012/02/07 02:15:26 AM CET

Internal MCU modules

Q15 for AVR Compilers

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.

Trevor Dawes
TrevorDawes

posted on 2011/08/31 12:18:39 PM CEST

Internal MCU modules

Capacitive touch

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

Giuradei Francesco
grandegiove

posted on 2011/08/23 05:12:42 AM CEST

Internal MCU modules

How obtain Nested Interrupt with PIC32?

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


first | 1 | 2 | 3 | 4 | 5 | 6 last