EOC Output

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

0 Likes
3 Replies
Anonymous
Not applicable

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   
   
}

 

   

 

   

 
 

0 Likes
Anonymous
Not applicable

Hi Keith,

   

 

   

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

   

Is that ES2 or ES3?

   

 

   

Regards,

   

dasg

0 Likes
KishoreS_96
Employee
Employee
5 sign-ins 50 replies posted 25 replies posted

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.

0 Likes