element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum A question of ADC on PSOC4(CY8C4244LQI-443)
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 25 subscribers
  • Views 761 views
  • Users 0 members are here
Related

A question of ADC on PSOC4(CY8C4244LQI-443)

ronniejk
ronniejk over 6 years ago

Does Pin 1.7 become unavailable for GPIO use(in my case as a Digital High impedance Input), when you use an ADC in the design? Even if reference is set as Internal 1024mv  in the ADC? Because I can see. I can not detect a High on P1.7 even if the level is 3.0V.

  • Sign in to reply
  • Cancel
  • COMPACT
    COMPACT over 6 years ago

    Please post an image of how you've configured your PSoC4 and the evaluation PCB you're using (if any).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • COMPACT
    COMPACT over 6 years ago in reply to COMPACT

    I've just kludged up a test project which consists of a Digital Input (on Pin 1.7) to a Digital Output (on Pin 1.6) and the inbuilt ADC was configured to use the internal 1.024V ref without bypass with Analog pin on Pin 2.0 as its single single-ended input.

    It built just fine.

     

    If want to use the SAR ADC with the internal 1.024V ref with bypass or external reference with bypass then you'll have to use Pin 1.7 for the bypass and use a different pin for your digital input.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ronniejk
    ronniejk over 6 years ago in reply to COMPACT

    This is not an evaluation board but an existing  product designed by me. Which has many other components including other Micro Controllers. PSOC4 is not even the main controller.

    I have configured a 3 channel ADC with 1 differential and 2 single ended channels. And ADC works fine. The PSOC4 used is CY8C4244LQI-443.

     

    No problem in compilation. It is just that after this, I am using P1.7 as a Digital Input but it permanently reads LOW Irrespective of the input and irrespective of whether I configure as Open Drain with external pull down or internal pull down or High Impedance Digital or Strong Drive. I will have to comment substantial amount of code of re-do quite a lot of code for me to check without ADC. Which I can, by creating a dummy project later.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • COMPACT
    COMPACT over 6 years ago in reply to ronniejk

    My test project works just fine with p1.7 both as a direct digital input to a digital output pin and as a digital input to the CPU which is read by the CPU and outputs its state to another digital output pin.

    image

    Pin_DigOut is configured with a resistive pullup and is connected to the Red LED on the Pioneer Kit.

    The Blue LED echoes the state of Pin_DigOut through the CPU using

     

          Pin_Blue_Write(Pin_Digin_Read());

     

    When debugging and the CPU halted, shorting P1.7 to ground turns the Red LED on and off as expected.

    When the CPU is running shorting P1.7 to ground also turns on the Blue LED as expected.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube