Bascom AVR simulator sets &H40 on PORTD PIN1CTRL and &HC0 on PORTD PIN2CTRL. It means that bits 7. are 0 and 1. PORTCFG SLRCTRL is still 0.
XMEGA E MANUAL says: "12.13.14 PINnCTRL – Pin n Control Register Bit 7 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write this bit to zero when this register is written."
BASCOM-AVR help CONFIG XPIN:
Example
Config Xpin = Portc.0 , Slewrate = Enabled , Outpull = Buskeeper , Sense = Low_level
It suggests that slewrtate is enabled individually for Portc.0
XMEGA E MANUAL says:
"12.14.4 SRLCTRL – Slew Rate Limit Control Register Bit 3 – SRLENRD: Slew Rate Limit Enable on PORTD Setting this bit will enable slew rate limiting on port D."
It means that there is only one bit for setting slew rate for whole PORTD ( bit 2 SRLENRC) and PINnCTRL register is only for setting Inverted I/O Enable, Output and Pull Configuration and Input/Sense Configuration.
I expected unchanged bit 7. and changed PORTCFG SLRCTRL.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum