Author |
Message |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sun Sep 08, 2019 7:03 pm Subject: Error in setup_uart |
PCM programmer, I use this manual, but it is not clear how to use, for instance
#use delay(clock=32MHz, oscillator=8MHz)
The examples shown in this manual are very simple and they don't show the pow ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 3:07 pm Subject: Error in setup_uart |
Ttelmah
Do you know some document about clock settings with CCS. For instance, I don't understand how to use #use delay with all it's possibilities, the PLL settings, the prescaler configurations, ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Mon Aug 26, 2019 11:29 am Subject: Error in setup_uart |
#include<33FJ32MC202.h>
#device adc=10
#FUSES NOWDT // No Watch Dog Timer
#FUSES ICS0 // ICD communication channel 0
#FUSES NOJTAG // JTAG disabled
#F ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Mon Aug 26, 2019 11:04 am Subject: Error in setup_uart |
I have another question concerning ADC.
In dsPIC33FJ32MC202 we have a 12 bits ADC, but if I write
#device adc=12
I read a maximum value of 1023, 10 bits
int16 val_adc;
setup_adc(ADC_CL ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Mon Aug 26, 2019 10:59 am Subject: Error in setup_uart |
YES... you're right temtronic, I mean engine. The part DSP of dsPIC |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Mon Aug 26, 2019 9:19 am Subject: Error in setup_uart |
Hi
Sorry I'm not talking about motor control, I talk about the use of DSP motor. I'd like to perform some digital filter and another complex operations with the DSP part of the dsPIC |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sat Aug 24, 2019 5:42 pm Subject: Error in setup_uart |
I'm using dsPIC33FJ32MC202 |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sat Aug 24, 2019 12:56 pm Subject: Error in setup_uart |
Can you tell me how to use the dsp motor with ccs? |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Fri Aug 23, 2019 7:26 pm Subject: Error in setup_uart |
The problem is fixed:
#include<33FJ32MC202.h>
#device adc=10
#FUSES NOWDT // No Watch Dog Timer
#FUSES ICS0 // ICD communication channel 0
#FUSES NOJTAG ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sun Aug 18, 2019 4:19 pm Subject: Error in setup_uart |
Sorry Ttelmah my problem is with UART1.
I don't know how to assign pins with #PIN_SELECT
I've tried
#PIN_SELECT U1RX=PIN_B0
#PIN_SELECT U1TX=PIN_B1
#use rs232(baud=9600, BITS =8, PARITY ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sat Aug 17, 2019 8:34 pm Subject: Error in setup_uart |
The communication is not working
printf("Hello world");
Nothing in the virtual terminal |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Sat Aug 17, 2019 7:13 pm Subject: Error in setup_uart |
Yes, by using
#PIN_SELECT U1RX=PIN_B1
#PIN_SELECT U1TX=PIN_B0
#use rs232(baud=9600, BITS =8, PARITY=N , STOP=1, UART1)
Now there's no problems on building.
Now I'll to test the operation. |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2019 11:23 am Subject: Error in setup_uart |
It was included but an error message was sent:
*** Error 100 "Prueba_CCS_01_leds.c" Line 22(5,57): USE parameter value is out of range No UART defined, May need #PIN_SELECT
That's wh ... |
Topic: Error in setup_uart |
rfjhh
Replies: 27
Views: 46049
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2019 10:24 am Subject: Error in setup_uart |
I'm beginning with dsPICs and I wrote a program using rs232 communication, but in the setup_uart(TRUE) an error is displayed:
*** Error 102 "Prueba_CCS_01_leds.c" Line 34(15,20): Expect c ... |
Topic: USB communication pc pic |
rfjhh
Replies: 4
Views: 12867
|
Forum: General CCS C Discussion Posted: Thu May 02, 2019 9:09 am Subject: USB communication pc pic |
Yes, the crystal is 20MHz divided by 5 is 4MHz clock needed for 96 MHz PLL.
The chip is not powered from the USB. The power is supplied by VDD.
The pic18_usb.h file I think is included:
#if __USB ... |
|