Author |
Message |
Topic: SPI2 pin select not working |
jocaropi
Replies: 6
Views: 10224
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2014 11:48 am Subject: SPI2 pin select not working |
I don't know, I'm driving a lcd display with SPI. SPI1 works, so I know the code for the display is correct. It just doesn't communicate. |
Topic: SPI2 pin select not working |
jocaropi
Replies: 6
Views: 10224
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2014 9:27 am Subject: SPI2 pin select not working |
Thank you for your reply.
I have tried:
#pin_select SCK2OUT=PIN_B9
#pin_select SDI2=PIN_B6
#pin_select SDO2=PIN_B8
#use spi(MASTER, SPI2, MODE=0, BITS=8, stream=SPI_PORT1)
and also:
#us ... |
Topic: SPI2 pin select not working |
jocaropi
Replies: 6
Views: 10224
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2014 7:43 am Subject: SPI2 pin select not working |
Hello, I'm programming a PIC33EP512GP502 with the CCS v5.025.
I need to use the external interrupt 0 (INT0) and the SPI communication at the same time, but the INT0 and the SCK1 functions share the s ... |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 2:08 pm Subject: DSPIC33EP512GP502 not working properly. |
I'm searching in the forum for long but I can't find anything :/
How can I unlock the registers? |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 9:13 am Subject: DSPIC33EP512GP502 not working properly. |
I've writen the following, but doesn't work:
#word CLKDIV = 0X0744 //CLOCK DIVISOR REGISTER
#word PLLFBD = 0X0746//PLL FEEDBACK DIVISOR REGISTER
#bit CLKDIVb0=CLKDIV.0//‘N1’, PLL pr ... |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 8:22 am Subject: DSPIC33EP512GP502 not working properly. |
I've been investigating and it seems to be that the new chips have a special way of configuring the PLL. I've configured it right with the xc16 compiler and works ok, but it's a difficult compiler, an ... |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 7:04 am Subject: DSPIC33EP512GP502 not working properly. |
Hello again,
I already changed the fuse to FRC_PLL some time ago.
I have tried the setup_oscillator thing but nothing works, it's very strange.
I'm using the v5.008 |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 6:15 am Subject: DSPIC33EP512GP502 not working properly. |
Already did, nothing. |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 3:57 am Subject: DSPIC33EP512GP502 not working properly. |
I have tried
#use delay(clock=140MHz, internal=8MHz)
even
#use delay(clock=8000000)
but the LED still blinks every 9 seconds. |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 3:48 am Subject: DSPIC33EP512GP502 not working properly. |
Hi, I'm not using any crystal.
The pic is capable of achieving the 140MHz with the internal oscillator. |
Topic: DSPIC33EP512GP502 not working properly. |
jocaropi
Replies: 14
Views: 14886
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 3:25 am Subject: DSPIC33EP512GP502 not working properly. |
Hello, I'm programing a DSPIC33EP512GP502 with a pickit3.
I'm using the .h file of the DSPIC33EP256GP502 because my ccs version doesn't have the 512 model, but in theory the chips are identical.
My ... |
Topic: PIC16F1455 clock too slow, please help |
jocaropi
Replies: 13
Views: 12132
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2014 12:17 pm Subject: PIC16F1455 clock too slow, please help |
It's "solved", I was mistaken with the calculations of how much time would it take the PIC to execute the code. |
Topic: PIC16F1455 clock too slow, please help |
jocaropi
Replies: 13
Views: 12132
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2014 10:44 am Subject: PIC16F1455 clock too slow, please help |
I understand, also I didn't notice that "i" and "j" are long int (16bit), so for a 8bit PIC takes double the time to process...
Thank you. |
Topic: PIC16F1455 clock too slow, please help |
jocaropi
Replies: 13
Views: 12132
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2014 10:32 am Subject: PIC16F1455 clock too slow, please help |
Jeremiah, could you please explain to me why there are these number of instructions?
Thank you. |
Topic: PIC16F1455 clock too slow, please help |
jocaropi
Replies: 13
Views: 12132
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2014 9:37 am Subject: PIC16F1455 clock too slow, please help |
Here is what the listing says:
CCS PCM C Compiler, Version 4.140, 5967 25-jun-14 17:19
Filename: C:\Users\Jose Carlos\Desktop\Camara Termica\Programa ... |
|