Hi,
For one of our customers, Im am trying to implement a PWM Frequency Converter from 400Hz fixed frequency to 2KHz fixed frequency using SLG46826V. However, I couldn't make it.
I have checked the PWM Frequency Conversion example, there is a PWM Block which SLG46826V doesn't have. I have checked other PWM examples. The concept is okay but, I couldn't get the DUTY adjusted. Ideally, I want to read the duty from the 400Hz PWM signal and write it to 2KHz PWM signal. How can I achieve this application using SLG46826V? I have a board with SLG46826V, and we have some in stock. Also the quantity is low, therefore the customer will program them during production. Regards,
Caner Alp Electronix
To be able to do PWM, you will have to compare the value in a counter with the duty cycle. Therefore a digital comparator, or perhaps something that can serve as an equivalent. However there are no components in the SLG46826 that can do something with the current value inside the counters, except perhaps the I2C component, which doesn't help you.
Therefore, it looks to me that is task cannot be performed by the SLG46826.
Thanks for the reply.
Which part would you suggest then? It would be nice if we can have 2 PWM signals in one IC.
My "default" GreenPAK is the SLG46620 and it has three PWM generators, so should be quite suitable for this task.
hanks for the suggestion. I have selected SLG46621V which has dual VDD. I have copied the AN-CM-271 PWM Frequency Converter application. However, I can't get it working. There are some problems when I check with the rule checker. The problems are basically the orange connections shown in the example application below.
In my application, I don't get any of those orange connections although I have configured them exactly the same way as in the example application. Are these connections supposed to be connected automatically when configured or am I missing something? The only difference I see is that the IC I selected has two different matrixes.
PWM Frequency Converter.zipRegards,Caner
For this task you need GreenPak with DCMP like SLG46140/ SLG46620
Thanks
AB
Please see the conversation above.
This is because the blocks are powered down. Connect the shared PD connection on the PWM1 to GND, and connect nCSB on SPI to GND. The orange lines will then appear.
This AN-CM-271 application note (.GP) file is developed on SLG46140 , Kindly use the same chip for understanding/working.
You are using SLG46621 and for each block you need check their properties also.
Also check the link .GP file for AN_CM_271
Thanks! I have the connections now. I still have a problem though. The SPI buffer doesn't take data.
The SPI block takes data on an nCSB pulse. In your example, I have added CNT0 to NCSB. Your CNT2 is clocked using CNT1, which has value 25, so period 26. There are 16 bits to latch, so 26*16=416, to get a period of 416, we need to set CNT0 to 415.
Then it works: