Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > EOC Output

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



EOC Output
Moderator:
ANCY

Post Reply
Follow this topic



EOC Output

ch701builder posted on 01 Dec 2010 10:39 AM PST
Senior Member
12 Forum Posts

All, I am trying to see the EOC output from the Cypress Example ADC to LCD. I have tied the EOC output to a digital pin so that I can check timing on an O-Scope. All I am seeing is a logic HI. I have attached a screen shot of the CYSCH file.

Any ideas.

Keith




Re: EOC Output

ch701builder posted on 09 Dec 2010 09:06 AM PST
Senior Member
12 Forum Posts

All,

I still don't konw why the wiring of the EOC output to a pin doesn't work, .....but..... for those of you that might run into this problem, here is what I did.  I let the ADC generate an EOC interrupt, and inside the IRQ routine, I set the pin HI and LO and that seems to work.

part of main.c program

void main()
{

    CYGlobalIntEnable;           /* Enable all interrupts */
    
    ADC_DelSig_1_Start();        /* Configure and power up ADC                     */
    ADC_DelSig_1_IRQ_Enable();   /* Enable the ADC to perform an IRQ after the EOC */   
    ADC_DelSig_1_StartConvert(); /* Force ADC to initiate a conversion             */
  ........

 

part of ADC_DelSig_1_INT.c program (my inturrupt portion)

/*****************************************************************************
* Function Name: ADC_DelSig_1_ISR1
******************************************************************************
*
* Summary:
*  Handle Interrupt Service Routine. 
*
* Parameters: 
*  void
*
* Return:
*  void
*
* Reentrant:
*  No
*
*****************************************************************************/
CY_ISR( ADC_DelSig_1_ISR1)
{
    /***************************************************************************
    *  Custom Code
    *  - add user ISR code between the following #START and #END tags
    **************************************************************************/
    /* `#START MAIN_ADC_ISR1`  */
   
    /* toggle the output pin for testing purposes */

    LED2_Write(1);
    LED2_Write(0);
   

    /* `#END`  */
   
    /* Stop the conversion if Cnversion_Stop variable is set */
    if (stopConversion == 1)
    {
        ADC_DelSig_1_StopConvert();
    }          
   
    /* PSoC3 ES1, ES2 RTC ISR PATCH  */
    #if(CYDEV_CHIP_MEMBER_USED == CYDEV_CHIP_MEMBER_3A)
        #if((CYDEV_CHIP_REVISION_USED <= CYDEV_CHIP_REVISION_3A_ES2) && (ADC_DelSig_1_IRQ__ES2_PATCH ))     
            ADC_DelSig_1_ISR_PATCH();
        #endif
    #endif   
   
}

 

 

 
 



Re: EOC Output

Gautam Das posted on 26 Dec 2010 10:21 AM PST
Cypress Employee
742 Forum Posts

Hi Keith,

 

Can you please let us know the revision of the PSoC3 Silicon you are using?

Is that ES2 or ES3?

 

Regards,

dasg



Re: EOC Output

kiku posted on 28 Dec 2010 07:44 PM PST
Cypress Employee
61 Forum Posts

Hello Keith,

 

Please refer to this KB article for the issue. Basically this is a bug in the ES2 silicon and has been corrected in the ES3 Silicon.

 

Regards,

Kishore.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

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 Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve 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.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20