Jump to content
    

Нужна помощь по ADE7953

Пытаемся подключить ее по SPI к процессору, в линуксе процессор не видит счетчик. К MOSI отсылается, с MISO ни звука. Схему прикладываю. Что может быть неправильно?

image.thumb.png.131f854435282f8f8ca43e1b7f9a7bea.png

 

Share this post


Link to post
Share on other sites

картинки по spi показывайте, что по линиям гоняете

LOCKING THE COMMUNICATION INTERFACE
After the selected communication interface is established, the
interface should be locked to prevent the communication
method from inadvertently changing. The ADE7953 can be
configured to lock automatically after the first successful
communication.
The automatic lock feature is disabled by default and is enabled
by clearing the COMM_LOCK bit (Bit 15) in the CONFIG
register (Address 0x102). To successfully establish and lock the
communication interface, a write should be issued shortly after
power-up to the CONFIG register, clearing the COMM_LOCK
bit and thus locking the communication interface. When the
communication interface is locked to a specific method (that is,
SPI, I2C, or UART), the communication method cannot be
changed without resetting the ADE7953.

Share this post


Link to post
Share on other sites

То что у вас SPI M CS12 из за опторазвязки инвертирован по отношению к остальным сигналам SPI вы учитываете?

Share this post


Link to post
Share on other sites

В 13.07.2024 в 04:34, stells сказал:

Тип SPI поменяйте

Поменяли чип измерительный на STPM33. Пока не в кассу. Бьемся далее.

В 12.07.2024 в 20:47, kpv сказал:

картинки по spi показывайте, что по линиям гоняете

LOCKING THE COMMUNICATION INTERFACE
After the selected communication interface is established, the
interface should be locked to prevent the communication
method from inadvertently changing. The ADE7953 can be
configured to lock automatically after the first successful
communication.
The automatic lock feature is disabled by default and is enabled
by clearing the COMM_LOCK bit (Bit 15) in the CONFIG
register (Address 0x102). To successfully establish and lock the
communication interface, a write should be issued shortly after
power-up to the CONFIG register, clearing the COMM_LOCK
bit and thus locking the communication interface. When the
communication interface is locked to a specific method (that is,
SPI, I2C, or UART), the communication method cannot be
changed without resetting the ADE7953.

Даа.. уже поняли, что все совсем не просто с ним, ушли на другой чип. Но такое впечатление что придется вообще с SPI на UART переходить.

 

Если у кого то есть время, подключитесь, заплатим, схема сделана в альтиуме, нужно ее довести до ума. Процессорные линии работают. Не работает измерительный тракт.

 

STPM33.pdf

Edited by Samum421

Share this post


Link to post
Share on other sites

Не знаю, что вы там намудрили, у меня ADE9000 завелась с первого раза.

правда развязку делал на техасовских SPI изоляторах

 

попробуйте не коммутировать SPI , а соединить эти фронтэнды по SPI в Daisy Chain

https://qeeniu.net/lit/an/slvae25a/slvae25a.pdf?ts=1715807032394

https://www.best-microcontroller-projects.com/spi-interface.html

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...