Author |
Message |
Topic: pic32 compiler |
fastlink30
Replies: 5
Views: 8648
|
Forum: General CCS C Discussion Posted: Tue Jun 11, 2013 4:51 am Subject: pic32 compiler |
why ccs not already offer compiler also for PIC32? there are plans for it? i think is big mistake for ccs not have it.
thanks |
Topic: Add clock cycle to SPI |
fastlink30
Replies: 8
Views: 10889
|
Forum: General CCS C Discussion Posted: Thu May 02, 2013 2:30 am Subject: Add clock cycle to SPI |
to ttelmah: i have implemented my routine for dedicated SPI, in the next revision of the PCB i want use the SS (make the things more 'standard')
asmboy: why misfortune? INT is already connected wit ... |
Topic: Add clock cycle to SPI |
fastlink30
Replies: 8
Views: 10889
|
Forum: General CCS C Discussion Posted: Wed May 01, 2013 1:46 pm Subject: Add clock cycle to SPI |
I do not use ENABLE signal, to substitute this signal i need 1 clk cycle before and after I have sent bits.
Is required by the chip that i use. |
Topic: Add clock cycle to SPI |
fastlink30
Replies: 8
Views: 10889
|
Forum: General CCS C Discussion Posted: Wed May 01, 2013 12:41 pm Subject: Add clock cycle to SPI |
http://www.ti.com/litv/pdf/slos743f
this device can work with slave select or not, without, need start/stop condition on spi (look 5.9.5.1 on datasheet) |
Topic: Add clock cycle to SPI |
fastlink30
Replies: 8
Views: 10889
|
Forum: General CCS C Discussion Posted: Wed May 01, 2013 12:26 pm Subject: Add clock cycle to SPI |
#use SPI (MODE=0,FORCE_HW,BITS=8,MSB_FIRST)
this make 8 clk cycle to get/put data on spi interface, i need 1 clk cycle (start condition), send 8 bit (8 clk cycle), and 1 clk cycle (stop condition) ... |
Topic: mplab & ccs |
fastlink30
Replies: 4
Views: 7397
|
Forum: General CCS C Discussion Posted: Thu Apr 11, 2013 11:32 am Subject: mplab & ccs |
#include <18F25K50.h>
#device adc=16
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES INTRC_IO ... |
Topic: mplab & ccs |
fastlink30
Replies: 4
Views: 7397
|
Forum: General CCS C Discussion Posted: Wed Apr 10, 2013 12:48 pm Subject: mplab & ccs |
mplab 8.90 (debug mode) & ccs 4.140 & pic18f25k50 (3.3v/16 mhz internal), debugger=mplab sim
when animate the main.c and arrive at puts() function when i press F8 appear the header file of ... |
Topic: Mechanical rotary encoder routine woes :) |
fastlink30
Replies: 7
Views: 10876
|
Forum: General CCS C Discussion Posted: Sun Nov 27, 2011 9:19 am Subject: Mechanical rotary encoder routine woes :) |
i use this code:
void encoder(void) {
if (!ENCODER_STARTSEQ) { // if sequence is started.... (ch_a from high to low)
if ( ... |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Fri Jan 25, 2008 12:49 pm Subject: output_low() problem? |
After RMW problem, another problem was in the code, now all ok.
Thanks to all for the suggestion! |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Fri Jan 25, 2008 9:14 am Subject: output_low() problem? |
the resistor value, in that case is not important, proteus (i think) adapt the value on the max current of the pin connected.
if i disconnect the led from the circuit, the problem remain the same. ... |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 2:51 pm Subject: output_low() problem? |
for my simplicity the signal for the lcd are on the same port, but in reality some are on port d & some on port b, this make me impossible use the output_x() function |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 2:27 pm Subject: output_low() problem? |
http://img178.imageshack.us/img178/8562/snap2ir5.jpg |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 11:03 am Subject: thanks |
thanks for the reply!
delay_cycles() not functioning, but output_x() is ok! |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 9:38 am Subject: output_low() problem? |
i use led only for test, originally they was connected with lcd and doing the same... (i also tryed with proteus and the result is the same) |
Topic: output_low() problem? |
fastlink30
Replies: 16
Views: 28579
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 9:18 am Subject: output_low() problem? |
ccs 4.057 on pic16f877 16mhz
have problem if i try this code, the pin ports B & D are all connected to led for test purpose.
when pic run only the last pin of each port (b0/d7) are ON, if i ac ... |
|