3313 views|3 replies

8

Posts

3

Resources
The OP
 

Can the SPI of DSP2812 read optical encoding information? [Copy link]

I am working on a project recently, using a multi-turn encoder from Tamagawa. The single-turn encoder is 17 bits, the multi-turn encoder is 16 bits, and the communication baud rate is 2.5Mbps. Considering this communication baud rate, SCI is difficult to achieve. I am going to use the SPI module. The baud rate of SPI can be configured to 2.5Mbps. The current problem is: SPI mostly works in master-slave mode, and there are two DSPs or one DSP as the host, and the other chip as the slave. The slave and the host share a clock to achieve communication between the host and the slave. I am currently working on the communication between DSP and optical encoder. DSP acts as the host and sends control instructions to the optical encoder through the MOSI port of the SPI module. Then the optical encoder feedback information, and DSP reads the feedback information of the optical encoder through the SOMI of SPI. I encountered a problem that the instructions are sent normally, the feedback information of the optical encoder is also normal, but the SOMI pin of DSP cannot read the information of the optical encoder. What may be the reason? Please guide me, seniors! It can be attributed to the normal sending of instructions and the normal feedback information of the optical encoder, but the SPI of DSP cannot read it. Is it a program problem or other problems?
This post is from Microcontroller MCU

Latest reply

Just have one IO send the clock and another IO receive the data. Many people use this method. If you really want to use the interface on the DSP, you can find TI's FAE.  Details Published on 2018-8-13 18:41
 

503

Posts

1

Resources
2
 
The photoelectric encoder is SSI protocol! It can be simulated with io port
This post is from Microcontroller MCU
 
 

8

Posts

3

Resources
3
 
ddlxiaoxu posted on 2018-8-12 16:16 The photoelectric encoder is SSI protocol! It can be simulated with io port
How to simulate it? Senior
This post is from Microcontroller MCU

Comments

Just use one IO to send the clock and another IO to receive the data. Many people use this method. If you really want to use the interface on the DSP, you can find TI's FAE.  Details Published on 2018-8-13 18:41
 
 
 

503

Posts

1

Resources
4
 
lx2016201459 posted on 2018-8-13 15:45 How to simulate it? Seniors
Just have one IO send the clock and another IO receive the data. Many people use this method. If you really want to use the interface on the DSP, you can find TI's FAE.
This post is from Microcontroller MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list