KV5x: HSADC input trigger via PDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KV5x: HSADC input trigger via PDB

543 Views
vicking
Contributor I

Hi there,

I'm trying to trigger HSADC scan through PDB, but it doesn't seem to be working. PDB works fine independently with a basic counter and interrupt setup. Triggering HSADC through STARTA also works fine.

When I reconfigure my HSADC settings to have PDB trigger input, it just doesnt work. Here are my settings:

  • SYNCA = 1
  • SDIS = 0x0000
  • SCTRL = 0xFFFF
  • SIM->SOPT7 |= SIM_SOPT7_HSADC0AALTTRGEN(SOPT7_HSADC0AALTTRGEN_PDB

Am I missing anything?

Thanks!

Labels (1)
0 Kudos
Reply
1 Reply

413 Views
vicking
Contributor I

I managed to get it working with XBARA input routing instead, but I'm not sure how to explain this next problem:

  • HSADC0 and HSADC1 have the exact same configurations (modes, clock time, scan type etc).
  • When I map XBARA signal from PDB0_CH0 to HSADC0A_TRIG & PDB0_CH0 to HSADC1A_TRIG , they both trigger as expected.
  • When I disable the HSADC1A_TRIG mapping and keep the HSADC0A_TRIG , the HSADC0 triggers as expected.
  • When I disable HSADC0A_TRIG mapping  and keep the HSADC1A_TRIG, this doesn't work.

Any idea why?

Thanks!

0 Kudos
Reply