i seek to header file of Delay for k20d50. help me plz
Do you want to a delay function for K20D50? If it's right, you can use LPMR to make it out as below show .
void LPLD_LPTMR_DelayMs(uint16 period_ms)
LPTMR0_CMR = period_ms;
LPTMR0_PSR = LPTMR_PSR_PCS(1)|LPTMR_PSR_PBYP_MASK;
LPTMR0_CSR |= LPTMR_CSR_TEN_MASK;
while (!(LPTMR0_CSR & LPTMR_CSR_TCF_MASK));
LPTMR0_CSR &= ~LPTMR_CSR_TEN_MASK;
yes .exactly ping.
this function( LPLD_LPTMR_DelayMs(uint16 period_ms)) did not work correctly . when program go to this function stop and do not rich to the next line after delay function.for example in this:
code A dose not performed.
Sorry for late reply, I suggest that you'd better debugger the project by IDE software to figure out the exactly problem.
I'm looking forward your reply.
Retrieving data ...