Accessing PORT/GPIO registers via the IOBUS

Discussions around product based on ARM Cortex M0+ core.

Moderator: nferre

halherta
Posts: 6
Joined: Fri Jun 20, 2014 11:55 pm

Accessing PORT/GPIO registers via the IOBUS

Sat Jun 21, 2014 2:44 am

I was wondering if others attempted to access the PORT/GPIO registers via the IOBUS instead of the APB bus....the datasheet says that this is possible but the PORT base address to use is 0x60000000 instead of 0x41004400 (when using APB)...

I'd appreciate it if anyone could elaborate on this matter. Thanks!
M14
Posts: 20
Joined: Thu Mar 27, 2014 10:51 am

Re: Accessing PORT/GPIO registers via the IOBUS

Tue Jun 24, 2014 12:50 pm

Use
PORT_IOBUS->Group[group].OUTTGL.reg
instead of
PORT->Group[group].OUTTGL.reg


Be aware that the input synchronizers are clocked when the portpin is read and when accessing the port using the IOBUS,

If using the IOBUS for reading an input, set the according bit in the CTRL register so the input is sampled continuously.

Return to “SAM D20 Cortex-M0+ MCU”

Who is online

Users browsing this forum: No registered users and 1 guest