Author |
Message |
Topic: 18F2550 C4 C5 problem |
40inD
Replies: 5
Views: 13881
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2019 3:04 pm Subject: 18F2550 C4 C5 problem |
Thanks, I always forget about input-only pins. |
Topic: 18F2550 C4 C5 problem |
40inD
Replies: 5
Views: 13881
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2019 2:50 pm Subject: 18F2550 C4 C5 problem |
When I try to toggle defined pins TRI1, TRI2 as C4 and C5 then nothing happens.
But if i define those pins for example as A1 and A2 then it works.
I can't understand, why C4 and C5 does not work? ... |
Topic: How to write an arrray of structs into EEPROM? |
40inD
Replies: 2
Views: 9522
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2018 6:20 am Subject: How to write an arrray of structs into EEPROM? |
Thanks!
And reading from eeprom must be looks like:
void read_errors(char * thing, int8 size, int16 address)
{
int16 ctr;
for (ctr=0;ctr<size;ctr++)
* ... |
Topic: Serial num in EEPROM & FLASH |
40inD
Replies: 24
Views: 46786
|
Forum: General CCS C Discussion Posted: Tue Dec 18, 2018 6:16 am Subject: Serial num in EEPROM & FLASH |
Is this possible with PICKIT3? |
Topic: How to write an arrray of structs into EEPROM? |
40inD
Replies: 2
Views: 9522
|
Forum: General CCS C Discussion Posted: Tue Dec 18, 2018 5:22 am Subject: How to write an arrray of structs into EEPROM? |
I have the following type of array:
typedef struct{
int16 hr;
int8 err;
} err_field;
err_field my_errors[10];
How to store it in PIC's EEPROM?
... |
Topic: Output to the port when it's pin is used as interrupt input |
40inD
Replies: 1
Views: 8289
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2018 12:09 pm Subject: Output to the port when it's pin is used as interrupt input |
Is it possible to output a value to the upper 7 bits of the port B while B0 works as INT0 input?
PIC18F2550 |
Topic: Calculating maximum duty value for set_pwm_duty() |
40inD
Replies: 4
Views: 12839
|
Forum: General CCS C Discussion Posted: Fri Dec 08, 2017 3:21 am Subject: Calculating maximum duty value for set_pwm_duty() |
How to get T2_DIV_BY_1 or T2_DIV_BY_4 or something else in program at runtime? I mean, the program needs to get timer settings, calculate max duty value and use it on it's own purposes. |
Topic: Calculating maximum duty value for set_pwm_duty() |
40inD
Replies: 4
Views: 12839
|
Forum: General CCS C Discussion Posted: Fri Dec 08, 2017 1:08 am Subject: Calculating maximum duty value for set_pwm_duty() |
Is it possible to calculate at runtime the maximum value for set_pwmX_duty function using Fosc and timer settings? |
Topic: What is faster - several putc or printf? |
40inD
Replies: 6
Views: 14798
|
Forum: General CCS C Discussion Posted: Tue Apr 25, 2017 5:52 am Subject: What is faster - several putc or printf? |
I can't increase the baud rate due to physical layer limitations. The goal was to minimize time spended for formatting data to send (and time to send too). Because PIC works almost in realtime.
So ... |
Topic: What is faster - several putc or printf? |
40inD
Replies: 6
Views: 14798
|
Forum: General CCS C Discussion Posted: Thu Apr 13, 2017 3:33 am Subject: What is faster - several putc or printf? |
It is understood about CRC, CRC can be added as 4th variable or can be in vairable "C". I think about the common principle. |
Topic: What is faster - several putc or printf? |
40inD
Replies: 6
Views: 14798
|
Forum: General CCS C Discussion Posted: Thu Apr 13, 2017 2:10 am Subject: What is faster - several putc or printf? |
I need to minimize conversion time before sending data by serial port.
I have 3 int16 variables A, B, C
So, which code will be faster?:
putc(make8(A,1));
putc(ma ... |
Topic: How to generate 457 kHz carrier using PIC? |
40inD
Replies: 2
Views: 7627
|
Forum: General CCS C Discussion Posted: Tue Mar 21, 2017 11:44 am Subject: How to generate 457 kHz carrier using PIC? |
Is it possible to generate 457 kHz (+/-100Hz) carrier using PIC?
It is better to toggle some pin or to use CCP? But I can't choose right CCP and crystal settings for PIC10 or 12 series. |
Topic: SMS - Text Messages - GSM - Remote Control - UPDATE 06/05/13 |
40inD
Replies: 45
Views: 303965
|
Forum: Code Library Posted: Wed Jan 18, 2017 11:36 pm Subject: SMS - Text Messages - GSM - Remote Control - UPDATE 06/05/13 |
Gabriel, do I understand right, that main cycle of program is
/**************************************************************************
// WAIT FOR SMS AND READ
//**************************** ... |
Topic: SMS - Text Messages - GSM - Remote Control - UPDATE 06/05/13 |
40inD
Replies: 45
Views: 303965
|
Forum: Code Library Posted: Wed Jan 18, 2017 5:15 am Subject: SMS - Text Messages - GSM - Remote Control - UPDATE 06/05/13 |
Is this driver suitable for SIM800L ?
And how to pass my own string to SEND_SMS() function? |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
40inD
Replies: 286
Views: 1377852
|
Forum: Code Library Posted: Fri Sep 09, 2016 5:54 am Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Eduardo,
int RF24_comm(int comm, int32 comm1, int commDS) { //commDS=datasize(1 to 32 bits)
int rv; //rv=return value(SPI nRF24 status rea ... |
|