Search found 36 matches
- 20 Apr 2012 18:39
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [A/D] Sampling problem: I always get the same sample!!
- Replies: 0
- Views: 1139
[A/D] Sampling problem: I always get the same sample!!
Hi I think I'm missing something... I want to get n samples but, for a strange reason, I'm always getting the same! I'm doing manual start of sampling and auto conversion, so here's my initialization: ADCON1bits.ADON = 0; ADCON3 = 0b0000000100010101; ADCON2 = 0x0000; ADCSSL = 0; ADCON1 = 0b000000001...
- 18 Apr 2012 08:02
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Getting n samples of 2 analog inputs in a certain period
- Replies: 9
- Views: 3650
Re: Getting n samples of 2 analog inputs in a certain period
Hi anton thanks for your library I'll give it a look!
- 13 Apr 2012 08:22
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Getting n samples of 2 analog inputs in a certain period
- Replies: 9
- Views: 3650
Re: Getting n samples of 2 analog inputs in a certain period
Thanks, and what about using Delay() functions instead of timer interrupts?
- 06 Apr 2012 14:36
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Getting n samples of 2 analog inputs in a certain period
- Replies: 9
- Views: 3650
Re: Getting n samples of 2 analog inputs in a certain period
I'm not so sure about timing, could you tell me if my thinking's right? I have to get n samples of 2 sinusoidal signals with frequency, say , 100hz, so period would be 10ms. Assuming I want 100 samples I've got to get a sample pretty much each 10ms/100 = 100us. I found that a good value for my tad i...
- 06 Apr 2012 09:43
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Problem with A/D conversion
- Replies: 2
- Views: 1302
Re: Problem with A/D conversion
Thank you you're perfectly right...I got some paramethers wrong and it did mess my calculations. Listen, can I pose another question? I can't understand what SAMC field is for...from description: When SSRC<2:0> = 111 (Auto-Convert mode), the conversion trigger is under A/D clock control. The SAMC bi...
- 05 Apr 2012 15:25
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Problem with A/D conversion
- Replies: 2
- Views: 1302
Problem with A/D conversion
Hello, I'm trying to make my A/D converter work but I'm experiencing some problems...I will explain how did I set registers so you can tell me if something's wrong. I'm trying to acquire a simple constant signal, ranging from 1V to 3V, my board is an easydspic6 with a dspic30f4013, clock is 32Mhz. P...
- 05 Apr 2012 08:29
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Getting n samples of 2 analog inputs in a certain period
- Replies: 9
- Views: 3650
Re: Getting n samples of 2 analog inputs in a certain period
Hi, problem is that, say in 1 ms, I have to get exactly n samples...so I would need something that gets these n samples for me and a way to know when it's done... and another thing: I read that prior using get sample function I have to initialize ADC module, but I don't want to use ADC_init function...
- 03 Apr 2012 16:01
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Getting n samples of 2 analog inputs in a certain period
- Replies: 9
- Views: 3650
Getting n samples of 2 analog inputs in a certain period
Hi, like title suggests I have 2 analog inputs and I'd like to take n samples of each one.
Can you tell me how to start?It's my first time doing something like this ...
Moreover I see I can just choose a channel at the time...it's not possible to take 2 instead?
Can you tell me how to start?It's my first time doing something like this ...
Moreover I see I can just choose a channel at the time...it's not possible to take 2 instead?
- 03 Apr 2012 15:58
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
Re: [SPI] Connect an external device to board
Solved thanks! It was a problem of my board...
- 09 Mar 2012 18:56
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
Re: [SPI] Connect an external device to board
It does not work...by the way why if I connect board to PORTF I have to set switches on PORTB and PORTD??
- 07 Mar 2012 09:53
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
- 06 Mar 2012 11:54
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
Re: [SPI] Connect an external device to board
Thanks but you totally missed the question... I ALREADY KNOW HOW TO SET SWITCHES ON MY ETHERNET BOARD problem in on my easydspic6 board : how to set switches there? Say I connect my ethernet board with alla switches and pull up correctly set to PORTF of dspic6: how to set PORTF switches/ pull up/down?
- 06 Mar 2012 10:50
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
Re: [SPI] Connect an external device to board
Come on...NO ONE ever bought an external peripheral??I can't believe it!
- 05 Mar 2012 10:41
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: [SPI] Connect an external device to board
- Replies: 8
- Views: 3046
[SPI] Connect an external device to board
Hi there, I'm getting mad trying to understand how to connect an external device (a mikroelektronica peripheral, like ethernet ) to my board...I can't find any documentation! Basically I can't understand: 1)For each external connection port there are switches both on main board and peripheral board,...
- 01 Mar 2012 16:22
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Problem with serial ethernet board (using tcp library)
- Replies: 1
- Views: 1321
Re: Problem with serial ethernet board (using tcp library)
Using dspic I connected it to PORT expander F, both on main board and on ethernet board I have P2 P3 and P6 pins on, port jumper is on...hope it helps.