POSIF PDBG register always returns 0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I have modified the BLDC_SCALAR_HALL_XMC44 app for the XMC4800 Relax Kit. I am using PORT 14, pins 7, 6, and 5 as POSIF0.IN0B, IN1B and IN2B respectively.
I am trying to use the PDBG register to monitor the HALL inputs.

The values of the GPIO pins match the HALL signals on the oscope. Here is a dump of the GPIO PORT 14:
*(int*)0x48028e24	int	0xf3df (Hex)

As you can see P14_7=1, P14_6=1, and P14_5=0.

When I dump the POSIF registers I expect to see these inputs reflected in the HSP field of the PDBG register.
However, that register is always 0. Here are all the POSIF registers including PCONF which shows that the PORT 14 pins are configured as the inputs to the POSIF.

*(POSIF_GLOBAL_TypeDef *)0x40028000	POSIF_GLOBAL_TypeDef	{...}	
PCONF volatile uint32_t 0x50451510 (Hex)
PSUS volatile uint32_t 0
PRUNS volatile uint32_t 0
PRUNC volatile uint32_t 0
PRUN const volatile uint32_t 1
RESERVED const volatile uint32_t [3] 0x40028014
MIDR const volatile uint32_t 11059200
RESERVED1 const volatile uint32_t [3] 0x40028024
HALP const volatile uint32_t 0x32 (Hex)
HALPS volatile uint32_t 0x26 (Hex)
RESERVED2 const volatile uint32_t [2] 0x40028038
MCM const volatile uint32_t 513
MCSM volatile uint32_t 8193
MCMS volatile uint32_t 0
MCMC volatile uint32_t 0
MCMF const volatile uint32_t 0
RESERVED3 const volatile uint32_t [3] 0x40028054
QDC volatile uint32_t 0
RESERVED4 const volatile uint32_t [3] 0x40028064
PFLG const volatile uint32_t 4
PFLGE volatile uint32_t 1048594
SPFLG volatile uint32_t 0
RPFLG volatile uint32_t 0
RESERVED5 const volatile uint32_t [32] 0x40028080
PDBG const volatile uint32_t 0


Any help explaining whether the PDBG register can be relied on is appreciated.
0 Likes
0 Replies