Samum421 5 July 12, 2024 Posted July 12, 2024 · Report post Пытаемся подключить ее по SPI к процессору, в линуксе процессор не видит счетчик. К MOSI отсылается, с MISO ни звука. Схему прикладываю. Что может быть неправильно? Quote Share this post Link to post Share on other sites More sharing options...
kpv 19 July 12, 2024 Posted July 12, 2024 · Report post картинки по 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. Quote Share this post Link to post Share on other sites More sharing options...
stells 15 July 13, 2024 Posted July 13, 2024 · Report post Тип SPI поменяйте Quote Share this post Link to post Share on other sites More sharing options...
OSVLD 4 July 17, 2024 Posted July 17, 2024 · Report post То что у вас SPI M CS12 из за опторазвязки инвертирован по отношению к остальным сигналам SPI вы учитываете? Quote Share this post Link to post Share on other sites More sharing options...
Samum421 5 October 25, 2024 Posted October 25, 2024 (edited) · Report post В 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 October 25, 2024 by Samum421 Quote Share this post Link to post Share on other sites More sharing options...
x893 76 October 25, 2024 Posted October 25, 2024 · Report post Плату с ADE7953 можете подарить ? Quote Share this post Link to post Share on other sites More sharing options...
Baza 30 October 28, 2024 Posted October 28, 2024 · Report post Не знаю, что вы там намудрили, у меня 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 Quote Share this post Link to post Share on other sites More sharing options...