Author |
Message |
Topic: Ramp-Up PWM with Interrupt |
RoGuE_StreaK
Replies: 5
Views: 9189
|
Forum: General CCS C Discussion Posted: Mon Aug 17, 2015 10:31 pm Subject: Ramp-Up PWM with Interrupt |
If I'm interpreting the above code correctly, you'll have to completely rethink the method if you want to achieve your aim.
I believe(!) that what the code above does is essentially count down and th ... |
Topic: Mixing audio - INT speed problem |
RoGuE_StreaK
Replies: 11
Views: 15602
|
Forum: General CCS C Discussion Posted: Thu May 28, 2015 10:15 pm Subject: Mixing audio - INT speed problem |
Does the variable rate work by itself? ie. without the 16kHz stream? If so, obviously not an ideal solution, but why not just use two PICs, with one doing nothing but the variable stream and listeni ... |
Topic: Mixing audio - INT speed problem |
RoGuE_StreaK
Replies: 11
Views: 15602
|
Forum: General CCS C Discussion Posted: Thu May 28, 2015 6:47 am Subject: Mixing audio - INT speed problem |
OK, last thought on the way to bed, do you actually NEED to change the timing, or can it be achieved in a faux way? eg. pitched microsamples? So just use the one interrupt for playback, and dependin ... |
Topic: Mixing audio - INT speed problem |
RoGuE_StreaK
Replies: 11
Views: 15602
|
Forum: General CCS C Discussion Posted: Thu May 28, 2015 6:23 am Subject: Mixing audio - INT speed problem |
To my way of thinking the two different interrupt rates are always going to create an issue; when they interrupt at or near the same time then one will take precedence and throw the other one off as i ... |
Topic: how to create sound effect with library TONES.C |
RoGuE_StreaK
Replies: 4
Views: 9997
|
Forum: General CCS C Discussion Posted: Wed Mar 18, 2015 9:40 pm Subject: how to create sound effect with library TONES.C |
How set are you on the 12F683? If the sound is an integral part of your project, I'd suggest going for something with enough memory.
That said, you should have enough room for a couple of sampled ... |
Topic: Indexing through large arrays; more efficient way? |
RoGuE_StreaK
Replies: 16
Views: 28727
|
Forum: General CCS C Discussion Posted: Sat May 31, 2014 12:27 am Subject: Indexing through large arrays; more efficient way? |
Quick revival, I'm about to attempt to bring my old code over to the 24F so thought I'd start with the pointer method to do a speed comparison, before trying the more advanced methods.
Question - if ... |
Topic: simultaneous button press logic? |
RoGuE_StreaK
Replies: 5
Views: 8679
|
Forum: General CCS C Discussion Posted: Tue May 27, 2014 3:45 am Subject: simultaneous button press logic? |
After finally getting around to digesting Mike's advice, here's what I've come up with, which seems to work well on a 20ms timer. I've still kept the READY/FLAGGED/SERVICED system (FLAGGEDLONG in pla ... |
Topic: simultaneous button press logic? |
RoGuE_StreaK
Replies: 5
Views: 8679
|
Forum: General CCS C Discussion Posted: Mon May 19, 2014 4:16 am Subject: simultaneous button press logic? |
Buttons are ultra-generic cheapy momentaries, I have no scope etc for testing, just going off generic statements around here that almost all buttons debounce within 10-20ms. I should have stated that ... |
Topic: simultaneous button press logic? |
RoGuE_StreaK
Replies: 5
Views: 8679
|
Forum: General CCS C Discussion Posted: Sat May 17, 2014 5:50 am Subject: simultaneous button press logic? |
PWCHD v4.120
PIC24FJ64 @ 20MHz crystal
Momentary buttons on B6 and C9, switching to ground
RGB LED on B11,B12,B13
I've got a timer-based debouncing system working, it works OK at it's current ti ... |
Topic: 24F running slow; software or hardware? |
RoGuE_StreaK
Replies: 5
Views: 7264
|
Forum: General CCS C Discussion Posted: Mon Apr 21, 2014 3:18 am Subject: 24F running slow; software or hardware? |
The ones to enable the secondary oscillator are the SOSC fuses you have already found. SOSC_SEC enables it. SOSC_SEC_LP enables it in low power mode, and SOSC selects it.Actually I didn't find it, I j ... |
Topic: 24F running slow; software or hardware? |
RoGuE_StreaK
Replies: 5
Views: 7264
|
Forum: General CCS C Discussion Posted: Sun Apr 20, 2014 5:43 pm Subject: 24F running slow; software or hardware? |
Thanks Ttelmah, I think I had (and still have) confusion over the OSC2 section; I had interpreted this as meaning the secondary oscillator, as in a slower physical crystal off pins SOSC0 and SOSC1, an ... |
Topic: 24F running slow; software or hardware? |
RoGuE_StreaK
Replies: 5
Views: 7264
|
Forum: General CCS C Discussion Posted: Sun Apr 20, 2014 4:15 am Subject: 24F running slow; software or hardware? |
After quite some time of inactivity, I'm moving to a 24F from an 18F; due to other components in the circuit being tight-pitch SMD only devices, I've spent quite some time making a suitable prototype ... |
Topic: Pickit 2 UART & ASCII Issue |
RoGuE_StreaK
Replies: 4
Views: 6069
|
Forum: General CCS C Discussion Posted: Fri Apr 18, 2014 5:51 am Subject: Pickit 2 UART & ASCII Issue |
As above, check that it's working fullstop before doing anything more complicated. I had the same thing a while back (the "?????"), and after much frustration I reverted to a standard " ... |
Topic: FORCE_HW & FORCE_SW |
RoGuE_StreaK
Replies: 9
Views: 17823
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2014 7:37 pm Subject: FORCE_HW & FORCE_SW |
Is it correct to say that hardware i2c (and PWM, and SPI etc) works independent of your other code, that once the command is given the hardware itself performs the task, freeing up the processor to do ... |
Topic: PIC24F timer0? |
RoGuE_StreaK
Replies: 10
Views: 11608
|
Forum: General CCS C Discussion Posted: Sun Oct 14, 2012 3:55 am Subject: PIC24F timer0? |
I've been using the wrong manual; always used the ccs_c_manual.pdf, rather than the PCDReferenceManual.pdf (didn't realise). Actually, I mostly go on extensive searches here and via google, with cros ... |
|