Author |
Message |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Sat Sep 28, 2024 5:45 am Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
Works perfectly!!! Thank you Ttelmah.
I used virtual pins to save on IOs.
// WS2812 RGB led code with SPI and DMA, PIC33EV256GM002
#include <33EV256GM002.h>
#device ADC=10
#FUSES ... |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Thu Sep 26, 2024 2:20 pm Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
Any help would be appreciated |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Tue Sep 24, 2024 9:19 am Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
Thanks, I tried your code, no change...
I also tried lowering the SPI rate, still doesn't work  |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Tue Sep 24, 2024 6:07 am Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
I tried removing FORCE_NOW from the read channel. I tried a manual SPI read, a manual SPI write. I tried to remove the Read DMA altogether. I constantly see only a single byte on the output.
Any ot ... |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Mon Sep 23, 2024 11:53 pm Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
Hi Ttelmah, as always thank you for the support.
Re your idea to use DMA memory space,
a. To me, it is not completely clear from the DS whether DMA can access SRAM directly on the specific chip
b. ... |
Topic: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
guy
Replies: 16
Views: 11322
|
Forum: General CCS C Discussion Posted: Mon Sep 23, 2024 4:48 pm Subject: DSPIC33 DMA+SPI only sends one byte [SOLVED] |
EDIT: Solution at the end of the thread
Hello everyone,
I went over a dozen threads, tried several things, still not solved...
I want to use DMA+SPI2 to control WS2812 LEDs in the background. Sta ... |
Topic: High speed USB |
guy
Replies: 15
Views: 22848
|
Forum: General CCS C Discussion Posted: Sun Oct 22, 2023 2:23 am Subject: High speed USB |
Be aware though (as I have just modified my post to say), you will _not_
get 3.5MS/sec. This is only available in 8bit mode.
Duly noted. This is an early stage of development and I just want to know ... |
Topic: High speed USB |
guy
Replies: 15
Views: 22848
|
Forum: General CCS C Discussion Posted: Sun Oct 22, 2023 1:47 am Subject: High speed USB |
Thank you both, esp. for reminding me of FTDI. They have a wide range of USB solutions incl. High Speed and USB 3.0 . Just what I needed! |
Topic: High speed USB |
guy
Replies: 15
Views: 22848
|
Forum: General CCS C Discussion Posted: Fri Oct 20, 2023 6:30 am Subject: High speed USB |
The application is not a secret... I intend to read digital I/Os and fast internal/external ADCs and transmit them to a PC. There is no specific target bandwidth at the moment. In the past I used on-t ... |
Topic: High speed USB |
guy
Replies: 15
Views: 22848
|
Forum: General CCS C Discussion Posted: Thu Oct 19, 2023 3:20 pm Subject: High speed USB |
Thanks for the support.
I don't have to get to the top speed USB 2.0, but USB 1.1 is not enough.
I worked with dsPIC33 series & CCS and things worked smoothly. As you mentioned, they don't suppo ... |
Topic: High speed USB |
guy
Replies: 15
Views: 22848
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2023 10:15 pm Subject: High speed USB |
Hello everyone, it's been a while...
Is there a [cost-effective hardware] solution to use CCS compiler with USB High Speed (2.0) ? Some interface chip maybe? I need to get as much bandwidth ... |
Topic: CLC for JK FLIPFLOP |
guy
Replies: 4
Views: 18059
|
Forum: General CCS C Discussion Posted: Thu Sep 01, 2022 1:04 pm Subject: CLC for JK FLIPFLOP |
Reading on, slightly puzzled. A divider would normally be done with a D
flip flop, not a JK flip flop.
You simply feed it's output inverted back to it's input and clock it from
your source clock. ... |
Topic: CLC for JK FLIPFLOP |
guy
Replies: 4
Views: 18059
|
Forum: General CCS C Discussion Posted: Wed Aug 31, 2022 2:10 pm Subject: CLC for JK FLIPFLOP |
(PIC16F18855)
Hi! I want to use the NCO with a clock half the speed of HFINTOSC. For this I want to use the CLC set up as a JK FLIPFLOP (freq. divider).
Configuring the CLC correctly seems impossi ... |
Topic: TI CC1101 |
guy
Replies: 34
Views: 239503
|
Forum: Code Library Posted: Wed Apr 29, 2020 2:24 pm Subject: TI CC1101 |
Yes I know. I have checked the continuity between PIC and CC1101 and it is ok. Do you think that the problem is a bad connection of GDO0?
The documentation I made in the code is wrong - there is a mi ... |
Topic: TI CC1101 |
guy
Replies: 34
Views: 239503
|
Forum: Code Library Posted: Sat Apr 25, 2020 12:26 pm Subject: TI CC1101 |
See my previous answer from May 29, 2017 10:48 am. |
|