Author |
Message |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Wed Feb 21, 2024 12:06 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi
I added to the I2C
#use I2C(MASTER, SLOW=100000, I2C1,SMBUS, STREAM=I2CPORT)
It didn't help
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Mon Feb 19, 2024 8:13 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Thank you for the prompt answer Ttelmah
I am out of office, will test again tomorrow
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Mon Feb 19, 2024 4:18 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Ttelmah
I am working with this PIC16F1847 for many years but first time with I2C.
I used PIC18F26K22 for the CMPS14 with I2C also I2C for EEPROM to other PIC's (with your help in the past) alwa ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Sun Feb 18, 2024 12:49 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
From the data sheet:
Power supply requirements are flexible, you can feed between 3.3 - 5v and the module draws a nominal 18mA
of current. A choice of serial or I2C interfaces can be used for commun ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Sat Feb 17, 2024 9:03 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Temtronic
I am working with CMPS14 for more than 10 years now, always with 5v
Also worked with previous versions, CMPS11 and CMPS12
It works with uart TTL or I2C
The data sheet states: 3.3v - ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Sat Feb 17, 2024 7:40 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Temtronic
I am not using the RX of the serial communication so I am not enabling it
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Sat Feb 17, 2024 5:36 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi
Changed to:
#int_RDA
void RDA_isr(void)
{
scomrxw=fgetc(PORT1);
}
The problem persist
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Fri Feb 16, 2024 8:40 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Thanks for the advice Ttelmah
I am out from work now, will try first thing in the morning
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Fri Feb 16, 2024 6:49 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
I am back with some delay
Below the test program:
/////////////////////////////////////////////////////////////////////
//Project: OSC47I2C
//Program: OSC47I2C.c
//Microcontroller ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Mon Feb 12, 2024 9:21 pm Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Ttelmah
According to the LED toggling the PIC run at 32 MHz. No Problem there.
By the way, I moved to delay setting to the end of the fuses and the problem persist
Best wishes
Joe |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Fri Feb 09, 2024 9:38 pm Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Ttelmah
PLL enabled in software also with the crystal oscillator
Don't have any other place in the software that the oscillator is setup
Will make in the weekend a short program just with ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Fri Feb 09, 2024 9:30 pm Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Temtronic
The reason of #use delay(...) before the FUSES is because in the past I had problems with this PIC with the internal RC when the #use delay(...) was before #use rs232
Ttelmah advise ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Thu Feb 08, 2024 8:28 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Temtronic
No reason to do that
1. without the I2C loop the led toggles every 500ms an the serial com works fine on the crystal oscillator
2. on the internal RC everything works fine including ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Thu Feb 08, 2024 5:58 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Ttelmah and Temtronic
Thank you for the answers
I am using pin B1 SDA1 and pin B4 SCL1 (according to the data sheet)
I am using pin B2 as RX and pin B5 as TX for serial communication
The ch ... |
Topic: PIC16F1847 wont work on crystal oscilator (with I2C) |
gjs_rsdi
Replies: 43
Views: 54232
|
Forum: General CCS C Discussion Posted: Wed Feb 07, 2024 8:35 am Subject: PIC16F1847 wont work on crystal oscilator (with I2C) |
Hi Temtronic
I was thinking that CCS doing that for me:
#use I2C(MASTER, SLOW=100000, I2C1, STREAM=I2CPORT)//I2C1 hardware used
I know that SSP and I2C have the same hardware. can't use ... |
|