WRITING/READING TO FROM REGISTERS

Hi

What is the C syntax for writing to ARDUINO UNO micro controller registers using poiners ?

Thanks
Elico

The same as for writing to any other memory-mapped device or memory.

Can show an exapmle for read and one for write?
Thnaks
Elico

Its just the same as for any other variable (with or without pointers).

Mark

Can you show how to use pure C syntax to access registers by their phisicall address
for read and write to them ?

Elico

elico:
Can show an exapmle for read and one for write?
Thnaks
Elico

Read and write in one (from"wiring_analog.c"

ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);