MK02FN64VFM10这个芯片目前没有直接对应的例程,不过你可以参考K22的KSDK代码,里面有MDK工程。
下载KSDK1.3.0:www.freescale.com/ksdk
下载安装后,工程在路径:C:\Freescale\KSDK_1.3.0\examples\frdmk22f
具体还请参考C:\Freescale\KSDK_1.3.0\doc中Getting Started with Kinetis SDK (KSDK) v.1.3.pdf
PDB0_SC = PDB_SC_CONT_MASK // Contintuous, rather than one-shot, mode
| PDB_SC_PDBEN_MASK // PDB enabled
//| PDB_SC_PDBIE_MASK // PDB Interrupt Enable
| PDB_SC_PRESCALER(0x5) // Slow down the period of the PDB for testing
| PDB_SC_TRGSEL(0xf) // Trigger source is Software Trigger to be invoked in this file
| PDB_SC_MULT(2) // Multiplication factor 20 for the prescale divider for the counter clock
| PDB_SC_LDOK_MASK;