Opened 4 months ago

Last modified 6 weeks ago

#30 assigned task

ATMEGA328/328P: Toggle PORTx pins

Reported by: dsl Owned by: Pawel
Priority: minor Milestone: MCUSim-0.2
Component: avr Keywords: planned-in-0.2
Cc: Pawel

Description (last modified by dsl)

Writing a logic one to PINxn toggles the value of PORTxn, independent on the value of DDRxn.
Note that the SBI instruction can be used to toggle one single bit in a port.

See 14.2.2 Toggling the Pin part of the datasheet for details.

Change History (5)

comment:1 Changed 4 months ago by dsl

Summary: ATMEGA328P: Toggle PORTx pinsATMEGA328/328P: Toggle PORTx pins

comment:2 Changed 4 months ago by dsl

Description: modified (diff)

comment:3 Changed 3 months ago by dsl

Milestone: MCUSim-0.2MCUSim 0.2

Milestone renamed

comment:4 Changed 3 months ago by dsl

Milestone: MCUSim 0.2mcusim 0.2

Milestone renamed

comment:5 Changed 6 weeks ago by dsl

Milestone: mcusim 0.2MCUSim-0.2

Milestone renamed

Note: See TracTickets for help on using tickets.