4 Replies Latest reply on Aug 29, 2017 2:10 AM by hegac_1629436

    How to set or clear a register bit in software?



      i use a CY8C4024LQI-S412 and i want to use the internal 1,2v reference on Pin 4.0.

      The idea is to set the register bit 24 (SW_SGRE) in the register CSD_SW_REFGEN_SEL.


      My problem is, how can i set or clear this bit?


      i tried:

               CSD_SW_REFGEN_SEL |= (1 << SW_SGRE);


      but it doesnt work.