Author |
Message |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 8:30 am Subject: Driver L6470 |
Thank you so much for your clarification!!
This is a distinction between 'CS' (chip select), which would normally be expected to stay low for an entire data transaction, and is used to say what d ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 8:29 am Subject: Driver L6470 |
Sure!! We say the same...
page 38 datasheet shows a timings diagram, CS is low while the transmission is active.
This is typical for SPI. CS is low for the entire transaction for most devices o ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 6:08 am Subject: Driver L6470 |
Well, it seems work. I generate a toggle in CS every SPI function, such as:
unsigned int16 GetConfigL6470(){
unsigned int8 temp1=0;
unsigned int8 temp2=0;
unsigned int16 ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 2:31 am Subject: Driver L6470 |
I use this board: https://www.sparkfun.com/products/10859 . My connections are:
MASTER-------------SLAVE (L6470)
==========================
5V--------------------5V
5V--------------------SW
5V- ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Wed Nov 27, 2013 2:31 pm Subject: Driver L6470 |
Sorry, my version is v4.104. I have used this for 8bits microcontroller and I have never had problems |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Wed Nov 27, 2013 9:09 am Subject: Driver L6470 |
Well, I use a old version, 4.1 and I have practice with 2 differents pics (20Mhz and 8Mhz) with same results. For example, with PIC18F458 (20Mhz) (with SBC44B board) the code is:
Main:
#include & ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Wed Nov 27, 2013 7:21 am Subject: Driver L6470 |
Thank you so much for your advice, but the problem remains :(, I receive the address that I send |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Wed Nov 27, 2013 4:05 am Subject: Driver L6470 |
Sure! I solved it. My clock is 8Mhz, so I used a secondary prescaler 1:2, but the problem persists. With this function:
unsigned int8 GetParamL6470(){
unsigned int8 temp1=0;
unsi ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Tue Nov 26, 2013 4:57 am Subject: Driver L6470 |
Thank you for your reply.
Yes, I use spi mode 3. In accordance with make16, you are right, I made a big mistake!!
Anyway I still read a "0" in the registers (STATUS, ADC_OUT, KVAL(first ... |
Topic: Driver L6470 |
MotronixGS
Replies: 17
Views: 28174
|
Forum: General CCS C Discussion Posted: Tue Nov 26, 2013 3:20 am Subject: Driver L6470 |
Hello everybody,
I am developing a library for a l6470 (Datasheet: http://www.st.com/web/en/resource/technical/document/datasheet/CD00255075.pdf ), a motor driver which use spi. At first, I am tryi ... |
Topic: Problem with ISL29023 |
MotronixGS
Replies: 9
Views: 10224
|
Forum: General CCS C Discussion Posted: Fri Oct 19, 2012 3:08 am Subject: Problem with ISL29023 |
News: I can read and write registrers (0x00 and 0x01), but registers 0x02 and 0x03 are 0.
One thing, I conected INT pin to a pull-up(3.3), wrong? |
Topic: Problem with ISL29023 |
MotronixGS
Replies: 9
Views: 10224
|
Forum: General CCS C Discussion Posted: Fri Oct 19, 2012 2:16 am Subject: Problem with ISL29023 |
Still doesnt work, I keep trying it... |
Topic: Problem with ISL29023 |
MotronixGS
Replies: 9
Views: 10224
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 1:34 pm Subject: Problem with ISL29023 |
I use a 5V PIC voltage, so I use a PCA9548AD to decrease the voltage to 3.3V. Thanks for the explanation, now I can't test it, but tomorrow I am going to try it and tell you.
Thanks again, regards |
Topic: Problem with ISL29023 |
MotronixGS
Replies: 9
Views: 10224
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 11:30 am Subject: Problem with ISL29023 |
Thank you very much for your reply and advice, but it still doesn't work. I use this instruction to init i2c:
#use i2c(master, sda=PIN_C4, scl=PIN_C3))
I use a 2k2 pull-ups, and 499 ... |
Topic: Problem with ISL29023 |
MotronixGS
Replies: 9
Views: 10224
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 2:09 am Subject: Problem with ISL29023 |
Hi,
I am trying to use a ISL29023 sensor, but I can't, the result is always 65535(count max to 16bits).
So, I paste an example (mode ALS continuous only), what am I doing wrong?
main:
#defin ... |
|