Author |
Message |
Topic: Data Definitions |
Blackjackmaster
Replies: 5
Views: 8738
|
Forum: General CCS C Discussion Posted: Fri Aug 04, 2023 9:03 am Subject: Data Definitions |
Thanks for the information.
I was looking in the manual for what the line length is and was unable to find this number. I will be passing 6 variables with one function. I will keep the name as sh ... |
Topic: Data Definitions |
Blackjackmaster
Replies: 5
Views: 8738
|
Forum: General CCS C Discussion Posted: Thu Aug 03, 2023 1:56 pm Subject: Data Definitions |
Hello,
Is there a limit on how many variables can be used in a data definition?
example:
void writeRegisterI2C(int8 deviceAddress, int8 address, int8 val); |
Topic: TCA9548A |
Blackjackmaster
Replies: 2
Views: 6639
|
Forum: General CCS C Discussion Posted: Wed Jul 26, 2023 8:22 pm Subject: TCA9548A |
Hello,
I am working on creating an array from Channel read of the TCA9548A.
#define MIN_I2C_ADDRESS 0x00
#define MAX_I2C_ADDRESS 0x70
void main()
{
TCA954 ... |
Topic: I2C Write |
Blackjackmaster
Replies: 8
Views: 15303
|
Forum: General CCS C Discussion Posted: Thu Jul 13, 2023 11:52 am Subject: I2C Write |
Hello,
Thanks for the response.
There are 16 chips on the PCB. The addresses are C0-DC and 00. If the chip is available, I receive a Status:1. What is the best solution for reading Registers 0 ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Wed Jul 12, 2023 9:31 am Subject: TCA9548A |
Hello,
I have 3 of the channels used on the TCA9548A and have set up arrays for each channel:
int8 Array1[16]={}; //Array from Port 0
int8 Array2[16]={}; //A ... |
Topic: I2C Write |
Blackjackmaster
Replies: 8
Views: 15303
|
Forum: General CCS C Discussion Posted: Wed Jul 12, 2023 8:23 am Subject: I2C Write |
Hello,
Yes, I am working towards converting Arduino code.
I am using:
IDE 5.115
PCB 5.115
PCM 5.115
PCH 5.115
In my situation is this how the code will look:
Access Mode Address Data
Cu ... |
Topic: I2C Write |
Blackjackmaster
Replies: 8
Views: 15303
|
Forum: General CCS C Discussion Posted: Tue Jul 11, 2023 1:06 pm Subject: I2C Write |
This is to write to ALS31313 Register.
I am not sure why I am receiving an invalid overload function for i2c_read and Stream must be a constant in the valid range. Should I be using the i2c_transf ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Thu Jun 29, 2023 7:29 am Subject: TCA9548A |
Hello,
What is the best way to ignore the R/W bit? |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Tue Jun 27, 2023 6:49 am Subject: TCA9548A |
Hello,
My question is not the difference between 7-bit and 8-bit. I did see the post on June 16.
void Get_I2C_Addresses(void){
// Try all slave addresses from 0x10 to 0xEF.
// Se ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2023 2:16 pm Subject: TCA9548A |
Hello,
The addresses I am receiving is 2X the value the what the data sheet says I should receive. I understand this to have bit shift to get the correct value to divide by 2.
I2C_Address <& ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Wed Jun 21, 2023 1:06 pm Subject: TCA9548A |
Thank you for all the help with this.
I change it in the code and I started to get the results for Port 0. I will test the rest later on today.
void main(){
output_float ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Wed Jun 21, 2023 8:22 am Subject: TCA9548A |
//#fuses HS
#FUSES NOWDT //No Watch Dog Timer
//#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES NOBROWNOUT //No brownout reset
#F ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Wed Jun 21, 2023 5:44 am Subject: TCA9548A |
A0,A1,A2 are pulled low on the Arduino board and the PIC16F877A board. The response Arduino is 0X70 and the response PIC is 0xE0. |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Tue Jun 20, 2023 9:19 am Subject: TCA9548A |
Hello,
I pulled up the unused SDA/SCL ports on the TCA9548A. The channels are not switching. If I connect the ADXL to the PICF16F877A directly I can see the address 0xA6. I know the ADXL is work ... |
Topic: TCA9548A |
Blackjackmaster
Replies: 58
Views: 87615
|
Forum: General CCS C Discussion Posted: Tue Jun 20, 2023 7:58 am Subject: TCA9548A |
The ADXL345 is a board from Adafruit and VIN is from 3.3V - 5.0V as it says it on the board. Logic is also 3.3V-5.0V
I will pull all the channels up to 5V even though I am not using them. |
|