Author |
Message |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Sat Jan 04, 2025 5:43 pm Subject: I2C scanner code not working on PIC18F4550 |
.....
All that information is in the QN8007 datasheet and nowadays Google is tremendous help in filling in the gaps !
EXACTLY ! And in one of those searches lead to a forum thread with someone ha ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Sat Jan 04, 2025 11:10 am Subject: I2C scanner code not working on PIC18F4550 |
My take is that the issue is not one of what controller is being used to control the QN8007 but instead what it takes to control the QN8007. Any PIC or any micro controller should be able to control ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Fri Jan 03, 2025 9:56 pm Subject: I2C scanner code not working on PIC18F4550 |
OK which PIC are you using ?
What is VDD ?
I2C bus pulllups are based upon VDD of the system.
ESP32 (3.3v IO lines ) is microcontroller, VDD on QN8007 is 3.3V also tried 5V, I2C pullups ar ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Fri Jan 03, 2025 6:52 pm Subject: I2C scanner code not working on PIC18F4550 |
Yea, tried 56 vs 2b in the past & just tried it again but no help. |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Fri Jan 03, 2025 3:23 pm Subject: I2C scanner code not working on PIC18F4550 |
Here is my code using stevemarple's softwire.h library and my interpretation of tonkostz example. Resulting output on the monitor is:
Start
Build:Jan 3 2025 16:06:35
tStep :ff
tStep_F :fe
Fir ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Fri Jan 03, 2025 11:45 am Subject: I2C scanner code not working on PIC18F4550 |
While I'm not at all familiar with Arduino library, I do believe wire.h uses hardware I2C that very likely expects some response from the chip to work properly. Mr. tankostz managed to command his chi ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Thu Jan 02, 2025 7:33 pm Subject: I2C scanner code not working on PIC18F4550 |
A more readable version submitted for a sanity check by anyone that is familiar with both libraries.
////////////////////////WRITE////
void qn8007_write(int Reg, int val) ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Thu Jan 02, 2025 4:42 pm Subject: I2C scanner code not working on PIC18F4550 |
apologies for the formatting that got lost. |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Thu Jan 02, 2025 4:38 pm Subject: I2C scanner code not working on PIC18F4550 |
OK , I'm not familiar with the i2c_xxxx calls used and searching returned no info. I translated to I2C usage that I'm familiar with using ESP32 library "wire.h". QN800X_I2C_ADDRESS is 0x2 ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Thu Jan 02, 2025 1:43 pm Subject: I2C scanner code not working on PIC18F4550 |
Thanks for the code. I'll need to translate that to my world but I think I see what you're doing with the read & write sequences. |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Wed Jan 01, 2025 10:18 am Subject: I2C scanner code not working on PIC18F4550 |
Well mine's still not working & I could use some help. Can you offer suggestions or post a snippet of code that I can use to make contact with the chip ? |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Mon Dec 30, 2024 10:07 am Subject: I2C scanner code not working on PIC18F4550 |
Fake devices is what I'm thinking. Usually just a simple access to any chip is not too hard, normally straight forward. I've got several hour into this with zero progress. OTOH I'm in contact with ... |
Topic: I2C scanner code not working on PIC18F4550 |
Al in Michigan
Replies: 45
Views: 26738
|
Forum: General CCS C Discussion Posted: Sun Dec 29, 2024 6:20 pm Subject: me too |
I'm having the same problem with this chip (QN8007). This is my second go around. I first ordered the IC thru aliExpress and when they (tried 2 of 5) didn't work I suspected counterfeits so I ordere ... |
|