Author |
Message |
Topic: SHT45 & SHT85 Humidity / Temp Sensors with PIC16F88 |
PCM programmer
Replies: 9
Views: 15428
|
Forum: General CCS C Discussion Posted: Thu Jul 13, 2023 11:03 am Subject: SHT45 & SHT85 Humidity / Temp Sensors with PIC16F88 |
According to the SHT85 datasheet, you're supposed to do a NACK after the
last i2c_read() statement. This is done by giving i2c_read() a parameter of 0.
Example: i2c_read(0);
On page 10 of the ... |
Topic: Not reading any device code |
PCM programmer
Replies: 16
Views: 32119
|
Forum: General CCS C Discussion Posted: Fri Jul 07, 2023 4:01 pm Subject: Not reading any device code |
MCLR should have a 10K pullup resistor on it. You said Vdd for the PIC
is +5v, so the pullup should also go to +5v.
When running the 18F25K80 at 5v, pin 6 (Vddcore/Vcap) should be connected
to ... |
Topic: Cant read PIC16F15345 ADC |
PCM programmer
Replies: 4
Views: 10361
|
Forum: General CCS C Discussion Posted: Sat Jul 01, 2023 11:50 am Subject: Cant read PIC16F15345 ADC |
One more small bug. You have two params joined with an OR symbol:
setup_adc_ports(sAN2 | VSS_VDD);
But the ccs manual and the .h file show the params separated by a comma.
This is the correct ... |
Topic: TCA9548A |
PCM programmer
Replies: 58
Views: 82816
|
Forum: General CCS C Discussion Posted: Mon Jun 19, 2023 1:18 pm Subject: Re: TCA9548A |
The only changes are the micro going from Arduino based system to using a PIC16F877A.
You still didn't tell us
1. The number of pull-up resistors you have installed. Do you have 19 ?
2. The ... |
Topic: TCA9548A |
PCM programmer
Replies: 58
Views: 82816
|
Forum: General CCS C Discussion Posted: Mon Jun 19, 2023 12:42 pm Subject: TCA9548A |
Is your test circuit setup like Figure 13 in this pdf ?
https://www.ti.com/lit/ds/symlink/tca9548a.pdf
Do you have pull-ups in all the places that the schematic shows ?
It shows 19 pullup resisto ... |
Topic: TCA9548A |
PCM programmer
Replies: 58
Views: 82816
|
Forum: General CCS C Discussion Posted: Fri Jun 16, 2023 11:01 am Subject: TCA9548A |
Download the CCS manual and put it on your Windows desktop.
https://www.ccsinfo.com/downloads/ccs_c_manual.pdf
Look up i2c_stop() on page 319. The return value is listed as undefined.
You can ... |
Topic: [Solved] DS3231 and PIC16f628A |
PCM programmer
Replies: 3
Views: 8910
|
Forum: General CCS C Discussion Posted: Wed Jun 14, 2023 5:00 pm Subject: [Solved] DS3231 and PIC16f628A |
You need to do a NACK on the last i2c_read operation.
You are doing an ACK.
ACK = 1
NACK = 0 |
Topic: Serial Port |
PCM programmer
Replies: 10
Views: 17561
|
Forum: General CCS C Discussion Posted: Tue May 16, 2023 11:44 am Subject: Serial Port |
temtronic, the OP has done that. From his first post:
This is the code I am using to turn on the Green and Yellow LED
from the Serial Monitor from the CCS IDE and works as it should.
In other wor ... |
Topic: ADC setup, Tad and setup_adc calculator |
PCM programmer
Replies: 1
Views: 7073
|
Forum: General CCS C Discussion Posted: Wed May 10, 2023 12:35 pm Subject: ADC setup, Tad and setup_adc calculator |
Yes. |
Topic: PIC16F18326 internal OSC |
PCM programmer
Replies: 1
Views: 7145
|
Forum: General CCS C Discussion Posted: Wed May 03, 2023 7:42 pm Subject: PIC16F18326 internal OSC |
The 16F18326 data sheet says in the WDT section:
After a Reset, the default time-out period is two seconds.
You have several 5 second delays. The WDT is going to reset after 2 secs.
I'd advise y ... |
Topic: Using setup_spi |
PCM programmer
Replies: 3
Views: 10623
|
Forum: General CCS C Discussion Posted: Mon Apr 10, 2023 6:01 am Subject: Using setup_spi |
SPI_SS_DISABLED is only used as a setting for an SPI Slave. You are using
the PIC as an SPI Master, so SPI_SS_DISABLED should not be there.
Remove it. |
Topic: PIC18F66K40 SPI2 Communication Problem |
PCM programmer
Replies: 6
Views: 12867
|
Forum: General CCS C Discussion Posted: Mon Apr 03, 2023 2:14 am Subject: PIC18F66K40 SPI2 Communication Problem |
Post your SPI setup line. |
Topic: DAC control |
PCM programmer
Replies: 17
Views: 29580
|
Forum: General CCS C Discussion Posted: Thu Mar 23, 2023 6:55 pm Subject: DAC control |
I want to see 5V when it is 255.
You could let us know if it's now working, or not. |
Topic: DAC control |
PCM programmer
Replies: 17
Views: 29580
|
Forum: General CCS C Discussion Posted: Thu Mar 23, 2023 11:33 am Subject: DAC control |
1. You have setup the DAC to use left justified data, but you are not giving it
left justified data. You are giving it right-justified data. Change it to this:
setup_dac( DAC_VSS_VDD | DAC_O ... |
Topic: Is there a processor that works with a maximum current of 50 |
PCM programmer
Replies: 17
Views: 28723
|
Forum: General CCS C Discussion Posted: Tue Mar 21, 2023 4:57 am Subject: Is there a processor that works with a maximum current of 50 |
Go to this Microchip page:
https://www.microchip.com/maps/microcontroller.aspx
1. At the top, in the CPU box, select the type of PIC that you want,
such as "8 bit PIC". De-select the ... |
|