Author |
Message |
Topic: use #pin_select problem (Solved Bummer) |
Jerry I
Replies: 6
Views: 25157
|
Forum: General CCS C Discussion Posted: Sat May 09, 2020 7:52 pm Subject: use #pin_select problem (Solved Bummer) |
Thanks for the info.
I should pay more attention to the datasheet. Bummer.
Thanks again. |
Topic: use #pin_select problem (Solved Bummer) |
Jerry I
Replies: 6
Views: 25157
|
Forum: General CCS C Discussion Posted: Sat May 09, 2020 6:51 pm Subject: use #pin_select problem (Solved Bummer) |
Using PIC18F27K40, CCS PCH C Compiler, Version 5.078
I am having problem assigning peripherals using pin select option.
Pin select options from header file below
///////////////////////////// ... |
Topic: I2C Bus Scanner |
Jerry I
Replies: 12
Views: 30583
|
Forum: General CCS C Discussion Posted: Sat May 09, 2020 6:06 pm Subject: I2C Bus Scanner |
Thanks for your suggestions I will try to implement them.
Thanks again. |
Topic: I2C Bus Scanner |
Jerry I
Replies: 12
Views: 30583
|
Forum: General CCS C Discussion Posted: Wed May 06, 2020 2:38 pm Subject: I2C Bus Scanner |
Hi gaugeguy,
How do you do that in code when I call read RTC it goes to built in I2C functions that does not return if hung.
void ds1307_get_date(BYTE &day, BYTE &mth, BYTE &ye ... |
Topic: I2C Bus Scanner |
Jerry I
Replies: 12
Views: 30583
|
Forum: General CCS C Discussion Posted: Wed May 06, 2020 12:17 pm Subject: I2C Bus Scanner |
Thanks for all the great answers.
I just wrote a nice long response and did not submit because I had lunch. After lunch I finished the response and not knowing the forum logged had me out ... |
Topic: I2C Bus Scanner |
Jerry I
Replies: 12
Views: 30583
|
Forum: General CCS C Discussion Posted: Tue May 05, 2020 7:50 pm Subject: I2C Bus Scanner |
Using Pic 18F27K40, CCS PCH C Compiler, Version 5.078.
Can the I2C Bus scanner code from the code library clobber the time/date in a DS1307 RTC Module that are available from many web sites.
It ... |
Topic: Disabling Switching Oscillator Speed (Solved) |
Jerry I
Replies: 8
Views: 18638
|
Forum: General CCS C Discussion Posted: Sun Apr 12, 2020 1:46 pm Subject: Disabling Switching Oscillator Speed (Solved) |
OK.
First change the clock to:
#use delay(CRYSTAL=10MHz, CLOCK=40MHz)
This ensures the compiler knows how the PLL needs to be configured.
But your real problem is hardware. Generally newer ... |
Topic: Disabling Switching Oscillator Speed (Solved) |
Jerry I
Replies: 8
Views: 18638
|
Forum: General CCS C Discussion Posted: Sat Apr 11, 2020 2:10 pm Subject: Disabling Switching Oscillator Speed (Solved) |
Hi All,
Thanks for the fuses.txt file info.
Since I did not design the board, I know this board has been working fine in the field. I did check both grounds pins on the chip and they ... |
Topic: Disabling Switching Oscillator Speed (Solved) |
Jerry I
Replies: 8
Views: 18638
|
Forum: General CCS C Discussion Posted: Sat Apr 11, 2020 12:50 pm Subject: Disabling Switching Oscillator Speed (Solved) |
This is a first for me using a PIC18F27K40.
Compiler Version 5.078
I am rewriting code for exiting hardware and bought this chip.
The exiting hardware has 10Mhz crystal.
I have set the fuses ... |
Topic: Open Closing internal uart [ Solved ] Thanks |
Jerry I
Replies: 3
Views: 12298
|
Forum: General CCS C Discussion Posted: Mon Mar 30, 2020 11:07 am Subject: Open Closing internal uart [ Solved ] Thanks |
Using PIC18F2620, Compiler V5.078
My application will be reading from a GPS data serial stream. The data stream transmits every 1 second. I don't require the data stream every second, every 5 mi ... |
Topic: Structure Usage problems |
Jerry I
Replies: 7
Views: 17412
|
Forum: General CCS C Discussion Posted: Wed Mar 25, 2020 4:59 pm Subject: Structure Usage problems |
Hi All,
I think I am going to give up. Math errors everywhere.
Tried simplifing calculations then got to Sin() and Cos() functions.
all answers appeared wrong based on calculator.
Strange I ... |
Topic: Structure Usage problems |
Jerry I
Replies: 7
Views: 17412
|
Forum: General CCS C Discussion Posted: Wed Mar 25, 2020 4:17 pm Subject: Structure Usage problems |
Thanks Ttelmah,
Got it compiled found lots of calculation errors with complex equations.
Trying to make equations less complex.
Still working on it.
|
Topic: Structure Usage problems |
Jerry I
Replies: 7
Views: 17412
|
Forum: General CCS C Discussion Posted: Tue Mar 24, 2020 10:24 pm Subject: Structure Usage problems |
Hi
Thank you in advance for any help.
This is some code I downloaded from http://www.psa.es/sdg/sunpos.htm which is supposed to calculate the sun position from anywhere in the world by passing ... |
Topic: Using Pin select and CLC's on Pic16F18346 |
Jerry I
Replies: 5
Views: 15886
|
Forum: General CCS C Discussion Posted: Fri Aug 25, 2017 11:20 am Subject: Using Pin select and CLC's on Pic16F18346 |
The is the CCS version using the CLC Functions
#device PIC16F18346
#nolist
#include <16F18346.h>
#fuses RSTOSC_HFINTRC_PLL, nowdt, noprotect, nolvp, put //16F18346
#fuses nomclr ... |
Topic: Using Pin select and CLC's on Pic16F18346 |
Jerry I
Replies: 5
Views: 15886
|
Forum: General CCS C Discussion Posted: Fri Aug 25, 2017 11:17 am Subject: Using Pin select and CLC's on Pic16F18346 |
This version is MPLAB Modified Output which I took some output values to the CLC registers. The version for PIC16F18346 DID NOT WORK
#device PIC16F18346
#nolist
#include <16F18346.h>
... |
|