Author |
Message |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Sat May 04, 2024 9:23 am Subject: Communicating with VL6180x via TCA9548 |
Hello everyone,
Thank you all for your help, I finally reached the solution. This forum is truly special.
I think the problem was in the chip or pcb. Maybe the probes of the scope were corrupti ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Fri May 03, 2024 5:04 am Subject: Communicating with VL6180x via TCA9548 |
Hello Prince,
I tried it the way you said and it behaves the same as the code I last shared. When I examine it with Scope, the sensor sends the response correctly, but there is still a problem in t ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu May 02, 2024 9:14 am Subject: Communicating with VL6180x via TCA9548 |
Ttelmah,
Based on what you said, I made some changes to the code. When I modified the code below, I was finally able to read the distance data from the sensor with the scope.
But I cannot read thes ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu May 02, 2024 1:25 am Subject: Communicating with VL6180x via TCA9548 |
Hello everyone,
I checked the message signals with the scope.
i2c_start();
i2c_write(VL6180_address); // 0x52
i2c_write((0x0018 >> 8 ) & 0xFF);
i2c_ ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Tue Apr 30, 2024 12:48 am Subject: Communicating with VL6180x via TCA9548 |
Hello PrinceNai
Since I have an unfinished business with those TOF sensors, I tried to translate the code from an ST appnote. There are some functions to read and write to the chip and to do range ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Fri Apr 26, 2024 3:05 am Subject: Communicating with VL6180x via TCA9548 |
Hello
I don't know how to change the speed of the I2C or what speed I'm currently running it at.
#use i2c(MASTER, FAST, SCL=PIN_C3, SDA=PIN_C4)
I tried both fast and slow here, the resu ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu Apr 25, 2024 10:35 am Subject: Communicating with VL6180x via TCA9548 |
Hello ttelmah.
I’ll try what you said first thing tomorrow morning than I’ll feedback here.
For now I wonder something. Do you see any mistakes on my code? Do you think this is the right way ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu Apr 25, 2024 6:42 am Subject: Communicating with VL6180x via TCA9548 |
My main code is very long, so I am only sharing the part relevant to this task and the definition codes above.
#include <18F452.h>
#device ADC=10
#FUSES NOWDT
#define USE_TX_ISR ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu Apr 25, 2024 5:13 am Subject: Communicating with VL6180x via TCA9548 |
Hello temtronic
Does it work without the I2C MUX ??
I tried it witout i2c mux and the result is same.
I2c scan finds it but still I can not communicate.
I suspect it's a 3Volt sensor and ... |
Topic: Communicating with VL6180x via TCA9548 |
bmete
Replies: 31
Views: 19457
|
Forum: General CCS C Discussion Posted: Thu Apr 25, 2024 1:40 am Subject: Communicating with VL6180x via TCA9548 |
Hello everyone, I am working on a project and in this project I need to read the VL6180x distance sensor through the TCA9548 i2c port multiplexer but I have not been able to achieve this yet.
I am su ... |
Topic: PIC18F452 RS232 Receive Problem |
bmete
Replies: 7
Views: 9128
|
Forum: General CCS C Discussion Posted: Sat Aug 12, 2023 5:59 pm Subject: PIC18F452 RS232 Receive Problem |
Yes this is RS485 I am using SN75176.
As far as I know, when I configure RS232 to the PIC and use it with an IC like SN75176, I create a proper RS485 communication. Please correct me if I'm wrong. ... |
Topic: PIC18F452 RS232 Receive Problem |
bmete
Replies: 7
Views: 9128
|
Forum: General CCS C Discussion Posted: Sat Aug 12, 2023 6:12 am Subject: PIC18F452 RS232 Receive Problem |
Hello Ttelmah, temtronic. Thanks for quick replies.
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, parity=N, stop=1, bits=8, RECEIVE_BUFFER=128, ERRORS)
enable_interrupts(GLOBA ... |
Topic: PIC18F452 RS232 Receive Problem |
bmete
Replies: 7
Views: 9128
|
Forum: General CCS C Discussion Posted: Sat Aug 12, 2023 5:16 am Subject: PIC18F452 RS232 Receive Problem |
Hello everyone.
I am trying to provide RS232 communication with Pic18f452 chip. With the code I shared below, I can send data to the serial port via Putty, but unfortunately, when I try to receive ... |
Topic: RS232 with PIC18F2520, can not receive data |
bmete
Replies: 11
Views: 13943
|
Forum: General CCS C Discussion Posted: Sat Jul 29, 2023 10:06 am Subject: RS232 with PIC18F2520, can not receive data |
This is wrong. T isn't a 32 bit variable. You will receive 4 separate 8bit characters in 4 separate transmissions that you need to store in a buffer somewhere and later display them.
If you car ... |
Topic: RS232 with PIC18F2520, can not receive data |
bmete
Replies: 11
Views: 13943
|
Forum: General CCS C Discussion Posted: Sat Jul 29, 2023 6:46 am Subject: RS232 with PIC18F2520, can not receive data |
Hello
Now the three characters thing comes from the size of the FIFO in the
serial receive. The chip has a single RX receive register, and two characters
of FIFO. So 2.9999 characters can be rec ... |
|