Author |
Message |
Topic: enter sleep mode every second |
danielz85
Replies: 1
Views: 3642
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2013 6:24 am Subject: enter sleep mode every second |
Hello,
I'm currently using dsPIC33FJ06GS202 and the only that it's doing in the while loop is output a signal to it's internal DAC @ 20MHz with an external xtal oscillator.
In order to save powe ... |
Topic: fast int1 array access |
danielz85
Replies: 4
Views: 6299
|
Forum: General CCS C Discussion Posted: Mon Jan 28, 2013 4:01 am Subject: fast int1 array access |
thanks |
Topic: fast int1 array access |
danielz85
Replies: 4
Views: 6299
|
Forum: General CCS C Discussion Posted: Fri Jan 25, 2013 2:45 pm Subject: fast int1 array access |
ckielstra, thank you for the reply,
it was extremely helpful.
I'm working with dsPIC33FJ06GS202 @ 40 MIPS.
I'm producing a signal which has 8 different frequencies around 17kHz, the sampling rate ... |
Topic: fast int1 array access |
danielz85
Replies: 4
Views: 6299
|
Forum: General CCS C Discussion Posted: Fri Jan 25, 2013 9:03 am Subject: fast int1 array access |
Hi,
I have an int8 array with N elements.
Inside the main loop, I have some operations which need to complete every 25uSec.
The pseudo-code is as follows:
Bytes={255,10,128,4}
cur ... |
Topic: dspic basic program doesn't work |
danielz85
Replies: 4
Views: 5233
|
Forum: General CCS C Discussion Posted: Mon Jan 21, 2013 7:25 am Subject: dspic basic program doesn't work |
Issue solved:
needed to set MCLR to Vdd... |
Topic: dspic basic program doesn't work |
danielz85
Replies: 4
Views: 5233
|
Forum: General CCS C Discussion Posted: Sun Jan 20, 2013 2:07 pm Subject: dspic basic program doesn't work |
thanks for the answer Ttelmah,
I've tried the following and still no luck.
Am I configuring the device wrong?
#include <33FJ06GS202.h>
#fuses FRC
#use delay(clock=7.37M)
vo ... |
Topic: dspic basic program doesn't work |
danielz85
Replies: 4
Views: 5233
|
Forum: General CCS C Discussion Posted: Sun Jan 20, 2013 1:24 pm Subject: dspic basic program doesn't work |
hi,
I've recently purchased a dspic33FJ06GS202.
http://ww1.microchip.com/downloads/en/DeviceDoc/70318F.pdf
I've written the following code just as sanity check, but for some reason it just doesn't ... |
Topic: how to use DAC on dsPIC33FJ06GS202 |
danielz85
Replies: 2
Views: 4817
|
Forum: General CCS C Discussion Posted: Sun Jan 13, 2013 1:41 pm Subject: how to use DAC on dsPIC33FJ06GS202 |
thanks Ttelmah |
Topic: how to use DAC on dsPIC33FJ06GS202 |
danielz85
Replies: 2
Views: 4817
|
Forum: General CCS C Discussion Posted: Sun Jan 13, 2013 5:34 am Subject: how to use DAC on dsPIC33FJ06GS202 |
Hi,
I need to generate a good signal which is composed of several specific frequencies. After a lot of time and hard work with PIC16F, I've decided that I can't evade upgrading to a dsPIC (with a D ... |
Topic: manual setting/clearing INTERRUPT BIT |
danielz85
Replies: 4
Views: 6304
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 8:07 am Subject: manual setting/clearing INTERRUPT BIT |
problem solved
thanks asmallri |
Topic: manual setting/clearing INTERRUPT BIT |
danielz85
Replies: 4
Views: 6304
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 7:48 am Subject: manual setting/clearing INTERRUPT BIT |
hi,
For timing accuracy, I wish to use TIMER2 interrupt flag in the main loop.
such that each time the interrupt is set, the mc performs some opertations, for instance print some value in this cas ... |
Topic: Harmonic Distortion in PIC16F1783 |
danielz85
Replies: 4
Views: 7728
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 4:36 am Subject: Harmonic Distortion in PIC16F1783 |
sub frequency artifacts is the word I was looking for... that's why I put harmonics in quotes.
Thanks, again for the info, I knew it took some time switching to the ISR, I didn't think it was THAT ... |
Topic: Harmonic Distortion in PIC16F1783 |
danielz85
Replies: 4
Views: 7728
|
Forum: General CCS C Discussion Posted: Wed Jan 02, 2013 3:35 am Subject: Harmonic Distortion in PIC16F1783 |
Hi,
I'm trying to produce an 18kHz pure sine wave using an LUT and the PIC's DAC.
I first create an array which holds the the required LUT values, and then I setup timer2 to interrupt every 50cc ... |
Topic: question regarding DAC and TIMER2 in PIC16F1783 |
danielz85
Replies: 8
Views: 8217
|
Forum: General CCS C Discussion Posted: Thu Dec 13, 2012 7:25 am Subject: question regarding DAC and TIMER2 in PIC16F1783 |
Thank you very much for all the info guys.
I've changed the code so that the array is created in advance and the only thing done in the ISR is the DACCON1=NormVal; operation.
But still no luck.
... |
Topic: question regarding DAC and TIMER2 in PIC16F1783 |
danielz85
Replies: 8
Views: 8217
|
Forum: General CCS C Discussion Posted: Wed Dec 12, 2012 8:51 am Subject: question regarding DAC and TIMER2 in PIC16F1783 |
ckielstra, thanks for the general advice, I made the changes you've offered. andyfraser, when I change the line "write_dac(normVal)" to "printf(normVal)" and then analyze the value ... |
|