You will probably need to change some of the I/O registers. Those are the 'variables' named PORTx/PINx/DDRx where 'x' is a letter: A, B, C, or D. Note: the Arduino UNO has no PORTA so this must be for a different processor. Each port represents a set of 8 pins. The Data Direction Register (DDRx) sets each pin to Input or Output. The PORTx register is for writing to the Output pins and the PINx register is for reading from the Input pins.
You will want to find a chart that shows what ports are connected to what pins. Not all pins of every port go to the female headers that Arduino users normally think of as 'pins'.
The ADxxx registers control the A/D converter. The TCCR1x registers are the Timer/Counter Control Registers for Timer1.
My question is i am using arduino Mega,,
there are ADC0 to 7 are same as any analog pin on Mega.
What about Pins PC0 to PC7 ??
Are they PWM or Digital or any other type??
SCL, SDA, TCK,TMS. TDO, TDI, TOSC1, TOSC2 ???
My question is i am using arduino Mega,,
there are ADC0 to 7 are same as any analog pin on Mega.
What about Pins PC0 to PC7 ??
Are they PWM or Digital or any other type??
SCL, SDA, TCK,TMS. TDO, TDI, TOSC1, TOSC2 ???