infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: QSPI code for TC399

  1. #1
    Beginner Beginner KDN is on a distinguished road
    Join Date
    Oct 2017
    Posts
    15
    Points
    247.5

    QSPI code for TC399

    Hi,

    I am new in infineon controller, can any one provide me QSPI code for TC399 from basic level.

    Calculation for time quantum to set SPI clock at 1Mhz(controller clock frequency is 20Mhz) and how to select ECON resistor using BACON resistor.

    I want to configure QSPI5
    Last edited by KDN; Apr 11th, 2019 at 11:08 AM.

  2. #2
    Advanced Advanced cwunder is on a distinguished road
    Join Date
    Feb 2015
    Location
    USA
    Posts
    74
    Points
    1337.5
    Sorry but I have to comment that you are asking a question without really giving enough information.
    controller clock frequency is 20Mhz
    Is this the crystal frequency? As usually the peripheral PLL is used (fPLL2) and typically this is either 200MHz or 160MHz. For 200MHz, to get a 1MHz SPI Clock you could use the following settings where Q=24, A=3,B=1 and C=3.

    The ECON and BACON are configured to meet the device parameters required for communication.
    Last edited by cwunder; Apr 14th, 2019 at 12:02 PM.

  3. #3
    Beginner Beginner KDN is on a distinguished road
    Join Date
    Oct 2017
    Posts
    15
    Points
    247.5
    Hi,

    20Mhz is crystal frequency.

    Can you please write what calculation you have done for 200MHz to get Q=24, A=3,B=1 and C=3 or can you please share any doc.
    Last edited by KDN; Apr 16th, 2019 at 10:34 AM.

  4. #4
    Advanced Advanced cwunder is on a distinguished road
    Join Date
    Feb 2015
    Location
    USA
    Posts
    74
    Points
    1337.5
    Enclosed is the formula from the user's manual (TQ=0, Q=24, A=3,B=1 and C=3, fPER=200MHz):
    Click image for larger version

Name:	Picture1.png
Views:	2
Size:	55.3 KB
ID:	3948
    ?????? ?????? Picture1.png‎  
    Last edited by cwunder; Apr 16th, 2019 at 07:50 PM.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.