To make Pin 6 to High we write PORTH|=_BV(PH3) in mega ,how can we make the pin 6 high Arduino due board,i tried with this
REG_PIOC_SODR|=(0*01<<24) //FOR MAKING PIN 6 HIGH
REG_PIOC_CODR|=(0*01<<24) //FOR MAKING PIN 6 LOW
To make Pin 6 to High we write PORTH|=_BV(PH3) in mega ,how can we make the pin 6 high Arduino due board,i tried with this
REG_PIOC_SODR|=(0*01<<24) //FOR MAKING PIN 6 HIGH
REG_PIOC_CODR|=(0*01<<24) //FOR MAKING PIN 6 LOW
Basic rules of maths here 0*ANYTHING = 0!!
Regards,
Graham