SPI Communication failed when STM8S is connected with STPM10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-09-10 5:17 AM
I am designing one energy meter product where I have connected my STM8S microcontroller with STPM10 energy meter IC. The controller is communicating with the IC via SPI communication. But while reading from the STPM10 IC, the data line(MOSI from controller) always remain in high state whereas other lines like SCL, SCS, SYN line are working fine. I have checked all the hardware connection and even the firmware. Don't know where i am getting wrong? Need serious help. I have attached the waveform of reading date from IC and the circuit diagram that i am using to interface STPM10 with STM8S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-11-30 12:56 AM
Hi Gopal,
My problem is similar to you. I am getting MSIO line constant HIGH from the meter. If you've found out possible solution then let me know.. Thanking you...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-05 4:26 AM
How did you have connected the device?
I never used the STPM10, but it seems that the SPI interface is quite weird. As there is only one line for MISO and MOSI, the SDA pin; the SYN pin configure the SDA in read or write mode.When the clock is on SCL the data are synched on SDA.I use SPI in my application, but is more standard as the bus works like a linked shift register, push on MOSI and the register is shifted on MISO.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-30 5:28 AM
Hi Argail,
Can you share your SPI configuration?