KL25z sawtooth wave

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

KL25z sawtooth wave

1,055 Views
Dom051
Contributor I

Hi, how do I display a sawtooth wave of 1khz in my Kl25z 

0 Kudos
Reply
1 Reply

1,047 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @Dom051 ,

You can use a timer to help you, for example, PIT or LPTMR.

In a 1ms period, you can divide it into 100 part. Then timer will generate interrupt every 0.01ms. In timer interrupt service routing, you put a new DAC output value.

 

Regards,

Jing

0 Kudos
Reply