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 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 last
marcel nijssen
marcel n

posted on 2011/08/23 05:48:53 PM CEST

Other Codes

more ccp examples whit a capture and compare

Hi i have a question i have mb 5.01 and there is a example whit the ccp module to make a pwm generator , but there is no example for the ccp capure mode and ccp compare mode to see how thats works , so my question can there make some examples of them whit a input to compare and capure , thank you for your help. and how i can use the srf05 ultrasonic range finder in to basic ,

thanks for you reactions

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


Jan Verhoeff
jbv000

posted on 2011/08/22 09:44:49 AM CEST

Graphics & LCD

How write the code for LCD on Easypic5 with PIC 16F648a or 16F628a

L.S.

I have an EasyPic5 and i want to use the PIC 16F648a on this board to write to the LCD display.

How write the code for LCD on Easypic5 with PIC 16F648a or 16F628a

HamidReza Mohammadi
hmbx

posted on 2011/08/22 08:09:22 AM CEST

Audio & Speech

simple music player

I am interested in implementing a simple music (WAV) player using a single PIC micro with PWM, which reads music files from an MMC memory and plays it,
PLEASE USE MIKRO BASIC

Marco Giuliani
soltron

posted on 2011/08/22 05:44:01 AM CEST

Communication > ZigBee

tool easybee mikrobasic

It would be interesting to receive an example of operation using two-way transmission easybee boards and development tools, as the examples of mikroBASIC have only one-way function.
thank you very much
Marco

first | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 last