Author |
Message |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2021 11:06 am Subject: dsPIC33CK32MC102 DACOUT |
Yup, I read about the "special" versions in another post and suspected that myself. I also suspect that the CCS setup for this device is a little "off". The HSPWM functions mix set ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2021 12:16 pm Subject: dsPIC33CK32MC102 DACOUT |
Tried that already, made a little difference. Will experiment further.
On a side note, it looks like this CK series chip I selected is relatively bleeding edge. In looking at the PWM and HSPWM samp ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2021 11:09 am Subject: dsPIC33CK32MC102 DACOUT |
Thanks, that does produce a nice sine wave at 1KHz. Only 200mV peak to peak though. Even less after some modest filtering. A little weak for my usual amplifier.
Still waiting for my external rail-t ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Sun Mar 28, 2021 1:00 pm Subject: dsPIC33CK32MC102 DACOUT |
...perhaps [img] is broken. Here are links to the scope pics:
http://jgscraft.com/graphics/ds33DACTest1.bmp
http://jgscraft.com/graphics/ds33DACTest2.bmp |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Sun Mar 28, 2021 12:57 pm Subject: dsPIC33CK32MC102 DACOUT |
Thank you T, for your continuing interest and help with this. Your next (favorite beverage/snack) is on me
I compiled and tested your code and not getting expected results, looks like you were t ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Sat Mar 27, 2021 12:57 pm Subject: dsPIC33CK32MC102 DACOUT |
Yes, I've been around a while and am familiar with that first step.
The chip is running, LED is toggling, serial output message is displayed. I'm generating a Timer1 and CCP1 timer interrupts that to ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Sat Mar 27, 2021 11:46 am Subject: dsPIC33CK32MC102 DACOUT |
So where does the signal go? My 33/24 CCP reference says it goes to "OCx Pin Output". I can't find any reference to that in the device sheet. I tried all the pins, no signal. |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Sat Mar 27, 2021 12:28 am Subject: PWM setup difficulties |
I'm working my way through the CCP modules, timer and interrupt is working great, now on to PWM. Found a lot of articles on using PWM as a DAC. I've worked out my maths and now am ready to try it. Her ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2021 12:06 pm Subject: dsPIC33CK32MC102 DACOUT |
Thanks. I'm digging into the data sheets, especially the family reference manual for 24/33 parts. I'm having trouble relating the CCS functions to what I want to do - lots of trial and error: code, lo ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2021 12:31 pm Subject: dsPIC33CK32MC102 DACOUT |
I tried the DAC setup setup you suggested but not a wiggle on DACOUT. Ordering external DAC.
If I understand correctly, what you are suggesting is set up a PWM and then adjust the duty periodically ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2021 9:41 am Subject: dsPIC33CK32MC102 DACOUT |
Thank you, T. I'll give that a try.
I've tried the RC, and LC, filter approach but haven't had much luck at sub 1KHz frequencies, despite trying a lot of the sample circuits I've found. The range o ... |
Topic: dsPIC33CK32MC102 DACOUT |
jgschmidt
Replies: 23
Views: 52307
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2021 9:55 pm Subject: dsPIC33CK32MC102 DACOUT |
I'm trying to use sine tables and a DAC to generate some nice-sounding tones. I started out using 16LF1614 and got good results, but there were not any cycles left to do any other work.
I searched th ... |
Topic: Programming dsPIC33CK32MC102 with ICD-U80 |
jgschmidt
Replies: 1
Views: 20008
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Wed Mar 24, 2021 3:56 pm Subject: Programming ds33CK32MC102 with ICD-U80 (solved) |
Oops, figured it out. Just needed to update the firmware on the ICD |
Topic: Programming dsPIC33CK32MC102 with ICD-U80 |
jgschmidt
Replies: 1
Views: 20008
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Wed Mar 24, 2021 3:51 pm Subject: Programming dsPIC33CK32MC102 with ICD-U80 |
This is my first foray into dsPIC33 devices. I'm trying to program a dsPIC33CK32MC102 with ICD-U80 and the programmer doesn't seem to recognize the device.
Since the device only comes in SMT format ... |
Topic: SIM800L |
jgschmidt
Replies: 7
Views: 52980
|
Forum: Code Library Posted: Tue Aug 13, 2019 12:40 am Subject: SIM800L |
Thanks, Samo, I will look at your code in the library. I don't have Proteus, but I would appreciate a picture of your circuit. I don't know if you can post it here but you can send direct to me at jur ... |
|