Opened 2 months ago

Last modified 2 weeks ago

#30 assigned task

ATMEGA328/328P: Toggle PORTx pins

Reported by: Dmitry Salychev Owned by: Pawel
Priority: minor Milestone: mcusim 0.2
Component: avr Keywords: planned-in-0.2
Cc: Pawel

Description (last modified by Dmitry Salychev)

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 (4)

comment:1 Changed 2 months ago by Dmitry Salychev

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

comment:2 Changed 2 months ago by Dmitry Salychev

Description: modified (diff)

comment:3 Changed 2 weeks ago by Dmitry Salychev

Milestone: MCUSim-0.2MCUSim 0.2

Milestone renamed

comment:4 Changed 2 weeks ago by Dmitry Salychev

Milestone: MCUSim 0.2mcusim 0.2

Milestone renamed

Note: See TracTickets for help on using tickets.