Srenath Posted June 28, 2021 Report Posted June 28, 2021 I am working with CS5484 for a project and I am unable to configure the IC to output the frequency equivalent to the power consumption of the load, from the pin DO1 of the IC. -I am using the IOW56-DG SPI host adapter to configure the IC and the binary codes have to be converted to HEX, to access registers using the SPI adapter (i.e to perform register read or write). I am performing register write only. The link to the SPI dongle datasheet is- "https://www.codemercs.com/downloads/iowarrior/IOW56-DG_Datasheet.pdf". --The application interface for the SPI dongle looks like this: --The configuration steps are mentioned in the datasheet at page-23. - -These are the steps I tried, in order to configure: 1. The Pulse-Width register (P0,A8)<pg.29 datasheet> is used to set pulse frequency range,FREQ_RNG <pg.41 datasheet>. The selected FREQ_RNG is 500Hz -0.0596Hz. Command 1---- [Page Select-80]; [Register Write-48 00 00 10] 2. Pulse Rate is set to 1.(pg.41) Command 2---- [Page Select-92]; [Register Write-1C 00 00 01] 3. Pulse Control (P0,A9)<pg.42 datasheet> is set to output the average power, i.e. P1 Avg (pg.42 for register details). Command 3---- [Page Select-80]; [Register Write-49 00 01 10] 4. EPGx_ON [X=1](P0,A1) <pg.36 datasheet> is set to select energy generation block 1. Command 4---- [Page Select-80]; [Register Write-41 10 00 00] Command 5---- [Page Select-80]; [Register Write-41 00 00 00]-DO1 5. D5 -After configuring in the order mentioned above, the config. log from the SPI adapter is as follows: -Is this the way or what else is to be considered? I am unable to configure the IC It would be really helpful, if you guys can help me out with this. Thank u very much in advance. Quote
HarryA Posted June 28, 2021 Report Posted June 28, 2021 There is a library file ( GOLANG library for SPI ) here that maybe helpful? https://github.com/stamp/CS5484 I have problems finding the page that has the {code} button to download the file; you may have to dork around with the URL a bit. Conor Torres 1 Quote
Srenath Posted June 28, 2021 Author Report Posted June 28, 2021 2 hours ago, HarryA said: There is a library file ( GOLANG library for SPI ) here that maybe helpful? https://github.com/stamp/CS5484 I have problems finding the page that has the {code} button to download the file; you may have to dork around with the URL a bit. Hi Harry. Thank you very much for the quick response. But I couldn't find anything in the link "GOLANG library for SPI". I too have problems finding the code option to download the code file. Quote
HarryA Posted June 28, 2021 Report Posted June 28, 2021 Try https://github.com/stamp/CS5484.git At on clicking the [code} button see download ZIP I see I am now Rank: Newbie(1/14). Does that mean all my past sins have been forgotten? Quote
Srenath Posted June 29, 2021 Author Report Posted June 29, 2021 After downlaoding the ZIP File and extracting it, I find only this inside "README" - # CS5484 CS5484 is a 4 channel energy messuring IC from cirrus and this is a GOLANG library for SPI communication with it Quote
HarryA Posted June 29, 2021 Report Posted June 29, 2021 I wonder if you could gleam some useful information from this article; it's for the CS5464. https://corgitronics.com/2014/06/30/using-the-cirrus-logic-cs5464-for-ac-current-measurement/ Quote
PhoenixX1 Posted March 2, 2023 Report Posted March 2, 2023 On 6/28/2021 at 5:53 PM, HarryA said: There is a library file ( GOLANG library for SPI ) here that maybe helpful? https://github.com/stamp/CS5484 I have problems finding the page that has the {code} button to download the file; you may have to dork around with the URL a bit. I used this library for my educational project, so I think it is still maintained and up to date. Use the term paper writing service https://papersowl.com/research-papers to find alternative data. Usually they are free to use in educational projects, I don't know how good it is if you have a commercial application of the project. But if you need to reduce the time of writing a training project, then using this library should help you a lot. I didn’t find the library on GitHub, but thanks for the answer, now it’s clear which library is needed for such a project. I'm sorry, I did not notice that the topic is old ... I was just looking for data. Quote
Steele Nickle Posted August 23, 2023 Report Posted August 23, 2023 On 6/28/2021 at 9:53 PM, HarryA said: There is a library file ( GOLANG library for SPI ) here that maybe helpful? https://github.com/stamp/CS5484 snow rider 3d I have problems finding the page that has the {code} button to download the file; you may have to dork around with the URL a bit. Is github-link broken? Quote
DorisLewis Posted January 2 Report Posted January 2 It sounds like you're facing challenges with IC configuration in CS5484 for your project. Have you considered using Wordle Unlimited to take a break and refresh your mind? Sometimes stepping away helps gather new perspectives on technical issues. Good luck with your project! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.