Hardware Interrupts in Kinetis KE06Z

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

Hardware Interrupts in Kinetis KE06Z

Jump to solution
830 Views
leonardomoreno
Contributor II

Hi,

I'm using a Kinetis FRDM-KE06Z board to read temperature using the ADC.

I've succesfuly used the High Level Component to read the voltage using Interrupts. However, I've been trying to trigger the ADC by using a Hardware Interrupt, and haven't been able to obtain any reading.

I thought that using the ADC_LDD component would help. I configured it and can read the voltage, also with interrupts (same as with the High Level Component). But when I try to add hardware Interrupts (using any option, FTM2, FTM0, PIT) the board doesn't even enter the ISR. I've checked the vector_config archive and it seems to contain the pointer to the ADC interrupt, so that doesn't seem to be an issue.

Also, when selecting the options for possible trigger sources (FTM2, FTM0, PIT,...) the message "not available on processor package" appears on each and every option.

Is there a way to enable HW interrupts to trigger the ADC in the KE06Z board? My MCU is a MKE06Z128VLK4.

Thank you,

Leonardo

Tags (2)
0 Kudos
1 Solution
628 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Leonardo,

I test the "HW triggered conversion of a selected sample group, with interrupt service" example, it can be found in the Typical Usage of Component ADC_LDD.

ADC_LDD Typical Usage.png

HW triggered conversion of a selected sample group, with interrupt service.png

After configured the PIT module, the ADC interrupt can be triggered by PIT periodically.

PIT.png

I am using KDS3.2 with ProcessorExpert on my FRDM-KE06Z board.

I didn't find the description "not available on processor package", would you please show me the screenshots?

Best Regards,

Robin

View solution in original post

0 Kudos
2 Replies
629 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Leonardo,

I test the "HW triggered conversion of a selected sample group, with interrupt service" example, it can be found in the Typical Usage of Component ADC_LDD.

ADC_LDD Typical Usage.png

HW triggered conversion of a selected sample group, with interrupt service.png

After configured the PIT module, the ADC interrupt can be triggered by PIT periodically.

PIT.png

I am using KDS3.2 with ProcessorExpert on my FRDM-KE06Z board.

I didn't find the description "not available on processor package", would you please show me the screenshots?

Best Regards,

Robin

0 Kudos
628 Views
leonardomoreno
Contributor II

Interrupts.PNG

Hi Robin,

This is a screenshot of what I see in Kinetis where the sign appears in the ADC_LDD component.

However, with your help I was able to make it work using the PIT. Initializing the component independently seems to do the trick. Also, I had to choose the "Whole simple group" option. Otherwise, the code wouldn't enter the ISR.

Thank you for your help,

Leonardo

0 Kudos